Commit 1d40f6921ead7244bc203e59a92e2ffaf50d0a76

Thomas de Grivel 2018-06-10T08:45:09

a unistd-stream is a ub8-stream

diff --git a/unistd-stream.lisp b/unistd-stream.lisp
index e37a39d..f04881f 100644
--- a/unistd-stream.lisp
+++ b/unistd-stream.lisp
@@ -21,7 +21,7 @@
 (deftype fixnum+ (&optional (start 0))
   `(integer ,start ,most-positive-fixnum))
 
-(defclass unistd-stream (stream)
+(defclass unistd-stream (ub8-stream)
   ((fd :initarg :fd
        :reader stream-fd
        :type file-descriptor)
@@ -51,9 +51,6 @@
                            (logior fcntl:+o-nonblock+ flags)))
        (setf (slot-value stream 'blocking-p) value)))))
 
-(defmethod stream-element-type ((stream unistd-stream))
-  '(unsigned-byte 8))
-
 (defmethod stream-close ((stream unistd-stream))
   (when (stream-open-p stream)
     (unistd:close (stream-fd stream))))