Implement FILE-REGULAR?.
authorChris Hanson <org/chris-hanson/cph>
Wed, 9 May 2001 14:18:50 +0000 (14:18 +0000)
committerChris Hanson <org/chris-hanson/cph>
Wed, 9 May 2001 14:18:50 +0000 (14:18 +0000)
v7/src/runtime/sfile.scm

index 0f80c61dafea98ef28e906ef0705d0a73e08dd75..071fa7f1f42b62bf8296eb656593e1991792596f 100644 (file)
@@ -1,6 +1,6 @@
 #| -*-Scheme-*-
 
-$Id: sfile.scm,v 14.24 2001/05/09 03:17:11 cph Exp $
+$Id: sfile.scm,v 14.25 2001/05/09 14:18:50 cph Exp $
 
 Copyright (c) 1988-2001 Massachusetts Institute of Technology
 
@@ -68,6 +68,9 @@ USA.
   (set! file-type-indirect
        (make-file-type (ucode-primitive file-type-indirect 1))))
 
+(define (file-regular? filename)
+  (eq? 'REGULAR (file-type-indirect filename)))
+
 (define (file-directory? filename)
   (eq? 'DIRECTORY (file-type-indirect filename)))