X-Git-Url: http://git.kpe.io/?p=kmrcl.git;a=blobdiff_plain;f=os.lisp;h=9714f5f3568cf7c5e2fd897d25e126dfacfb4655;hp=7b7da44e5fa23adac19e668e0010fff7f192dfea;hb=2f5755be1ecd77d0fac647b609402ae4da99c751;hpb=7397fb7597f3fe9c658e6fb1ad67c805029dd073 diff --git a/os.lisp b/os.lisp index 7b7da44..9714f5f 100644 --- a/os.lisp +++ b/os.lisp @@ -156,7 +156,8 @@ returns (VALUES output-string pid)" (when (probe-file file) #+allegro (let ((stat (excl.osi:stat (namestring file)))) (excl.osi:stat-size stat)) - #-allegro + #+sbcl (sb-posix:stat-size (sb-posix:stat file)) + #-(or allegro sbcl) (with-open-file (in file :direction :input) (file-length in))))