X-Git-Url: http://git.kpe.io/?p=kmrcl.git;a=blobdiff_plain;f=os.lisp;h=feeefc82b87486f922b4a34c00885cc0a4e177ae;hp=7b7da44e5fa23adac19e668e0010fff7f192dfea;hb=251043d4c96c996a35cd48c4452b03fbef2ea21a;hpb=03712fbb06acbb103602bae10f41aeae7fa05127 diff --git a/os.lisp b/os.lisp index 7b7da44..feeefc8 100644 --- a/os.lisp +++ b/os.lisp @@ -7,8 +7,6 @@ ;;;; Programmer: Kevin M. Rosenberg ;;;; Date Started: Jul 2003 ;;;; -;;;; $Id$ -;;;; ;;;; ************************************************************************* (in-package #:kmrcl) @@ -156,7 +154,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))))