#| -*-Scheme-*-
-$Id: dosprm.scm,v 1.21 1993/11/09 04:31:37 cph Exp $
+$Id: dosprm.scm,v 1.22 1994/11/20 05:12:28 cph Exp $
-Copyright (c) 1992-1993 Massachusetts Institute of Technology
+Copyright (c) 1992-94 Massachusetts Institute of Technology
This material was developed by the Scheme project at the Massachusetts
Institute of Technology, Department of Electrical Engineering and
(mode-string false read-only true)
(inode-number false read-only true))
+(define (file-length filename)
+ (file-attributes/length (file-attributes filename)))
+
(define (file-modification-time filename)
((ucode-primitive file-mod-time 1)
(->namestring (merge-pathnames filename))))
#| -*-Scheme-*-
-$Id: infutl.scm,v 1.56 1994/03/11 05:15:08 cph Exp $
+$Id: infutl.scm,v 1.57 1994/11/20 05:13:14 cph Exp $
-Copyright (c) 1988-1994 Massachusetts Institute of Technology
+Copyright (c) 1988-94 Massachusetts Institute of Technology
This material was developed by the Scheme project at the Massachusetts
Institute of Technology, Department of Electrical Engineering and
(string=? file-marker actual-marker))
(call-with-binary-output-file (merge-pathnames ofile)
(lambda (output)
- (let ((size (file-attributes/length (file-attributes ifile))))
- (uncompress-ports input output (fix:* size 2)))))
+ (uncompress-ports input output (fix:* (file-length ifile) 2))))
(if-fail "Not a recognized compressed file:" ifile))))))
\f
(define (lookup-uncompressed-file compressed-file if-found if-not-found)
#| -*-Scheme-*-
-$Id: unxprm.scm,v 1.30 1994/06/02 21:41:07 cph Exp $
+$Id: unxprm.scm,v 1.31 1994/11/20 05:12:40 cph Exp $
Copyright (c) 1988-94 Massachusetts Institute of Technology
(mode-string false read-only true)
(inode-number false read-only true))
+(define (file-length filename)
+ (file-attributes/length (file-attributes-direct filename)))
+
(define (file-modification-time-direct filename)
((ucode-primitive file-mod-time 1)
(->namestring (merge-pathnames filename))))
#| -*-Scheme-*-
-$Id: infutl.scm,v 1.56 1994/03/11 05:15:08 cph Exp $
+$Id: infutl.scm,v 1.57 1994/11/20 05:13:14 cph Exp $
-Copyright (c) 1988-1994 Massachusetts Institute of Technology
+Copyright (c) 1988-94 Massachusetts Institute of Technology
This material was developed by the Scheme project at the Massachusetts
Institute of Technology, Department of Electrical Engineering and
(string=? file-marker actual-marker))
(call-with-binary-output-file (merge-pathnames ofile)
(lambda (output)
- (let ((size (file-attributes/length (file-attributes ifile))))
- (uncompress-ports input output (fix:* size 2)))))
+ (uncompress-ports input output (fix:* (file-length ifile) 2))))
(if-fail "Not a recognized compressed file:" ifile))))))
\f
(define (lookup-uncompressed-file compressed-file if-found if-not-found)