X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcode%2Fstream.lisp;h=925daa75d798f4313118a9b0fd876ba36b02e7d6;hb=add57c72c932fbf70c8ba8297154936c908b410e;hp=90467672fa6224bd29ecc7c9b723039896907453;hpb=f1a812d381347b942b50626aae3224dad98340af;p=sbcl.git diff --git a/src/code/stream.lisp b/src/code/stream.lisp index 9046767..925daa7 100644 --- a/src/code/stream.lisp +++ b/src/code/stream.lisp @@ -629,6 +629,14 @@ ((null streams) res) (when (null (cdr streams)) (setq res (stream-element-type (car streams))))))) + (:file-position + (if arg1 + (let ((res (or (eql arg1 :start) (eql arg1 0)))) + (dolist (stream streams res) + (setq res (file-position stream arg1)))) + (let ((res 0)) + (dolist (stream streams res) + (setq res (file-position stream)))))) (:close (set-closed-flame stream)) (t