r5410: *** empty log message ***
authorKevin M. Rosenberg <kevin@rosenberg.net>
Wed, 30 Jul 2003 23:01:46 +0000 (23:01 +0000)
committerKevin M. Rosenberg <kevin@rosenberg.net>
Wed, 30 Jul 2003 23:01:46 +0000 (23:01 +0000)
io-openmcl.lisp [new file with mode: 0644]
io.lisp
kmrcl.asd

diff --git a/io-openmcl.lisp b/io-openmcl.lisp
new file mode 100644 (file)
index 0000000..a42e98c
--- /dev/null
@@ -0,0 +1,12 @@
+(in-package #:kmrcl)
+
+(defun open-device-stream (path direction)
+  (let* ((mode (ecase direction
+                (:input #$O_RDONLY)
+                (:output #$O_WRONLY)
+                (:io #$O_RDWR)))
+        (fd (ccl::fd-open (ccl::native-translated-namestring path) mode)))
+    (if (< fd 0)
+       (ccl::signal-file-error fd path)
+       (ccl::make-fd-stream fd :direction direction))))
+
diff --git a/io.lisp b/io.lisp
index 9c591c7ca368558de15c90e67e47f52fc0fd59dd..4134bd669966f63104bd06416be4ebfe069f3c24 100644 (file)
--- a/io.lisp
+++ b/io.lisp
@@ -7,7 +7,7 @@
 ;;;; Programmer:    Kevin M. Rosenberg
 ;;;; Date Started:  Apr 2000
 ;;;;
-;;;; $Id: io.lisp,v 1.13 2003/07/30 22:23:25 kevin Exp $
+;;;; $Id: io.lisp,v 1.14 2003/07/30 23:01:46 kevin Exp $
 ;;;;
 ;;;; This file, part of KMRCL, is Copyright (c) 2002 by Kevin M. Rosenberg
 ;;;;
   #-allegro (write-string (write-to-string n) s))
 
 
-#+openmcl
-(defun open-device-stream (path direction)
-  (let* ((mode (ecase direction
-                (:input #$O_RDONLY)
-                (:output #$O_WRONLY)
-                (:io #$O_RDWR)))
-        (fd (ccl::fd-open (ccl::native-translated-namestring path) mode)))
-    (if (< fd 0)
-       (ccl::signal-file-error fd path)
-       (ccl::make-fd-stream fd :direction direction))))
-
 
 (defun null-output-stream ()
   #-openmcl
index a14a6e36c3b2fc605137c5bdb7d4d62d8f97f961..e62e5c9f10518124e69fffdb9656a5511294de6c 100644 (file)
--- a/kmrcl.asd
+++ b/kmrcl.asd
@@ -7,7 +7,7 @@
 ;;;; Programmer:    Kevin M. Rosenberg
 ;;;; Date Started:  Apr 2000
 ;;;;
-;;;; $Id: kmrcl.asd,v 1.43 2003/07/23 22:07:48 kevin Exp $
+;;;; $Id: kmrcl.asd,v 1.44 2003/07/30 23:01:46 kevin Exp $
 ;;;;
 ;;;; This file, part of KMRCL, is Copyright (c) 2002 by Kevin M. Rosenberg
 ;;;;
@@ -37,7 +37,8 @@
      (:file "functions" :depends-on ("macros"))
      (:file "lists" :depends-on ("macros"))
      (:file "seqs" :depends-on ("macros"))
-     (:file "io" :depends-on ("macros"))
+     (:file "io-openmcl" :depends-on ("macros"))
+     (:file "io" :depends-on ("macros" "io-openmcl"))
      (:file "console" :depends-on ("macros"))
      (:file "strings" :depends-on ("macros" "seqs"))
      (:file "strmatch" :depends-on ("strings"))