From: Kevin M. Rosenberg Date: Tue, 23 Feb 2010 17:43:37 +0000 (-0700) Subject: Add file-size for sbcl X-Git-Tag: v1.101~3 X-Git-Url: http://git.kpe.io/?p=kmrcl.git;a=commitdiff_plain;h=2f5755be1ecd77d0fac647b609402ae4da99c751 Add file-size for sbcl --- 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))))