projects
/
sbcl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
0.9.8.34:
[sbcl.git]
/
src
/
code
/
unix.lisp
diff --git
a/src/code/unix.lisp
b/src/code/unix.lisp
index
2423d6c
..
f4d0ef3
100644
(file)
--- a/
src/code/unix.lisp
+++ b/
src/code/unix.lisp
@@
-239,7
+239,16
@@
SYSCALL-FORM. Repeat evaluation of SYSCALL-FORM if it is interrupted."
;;; w_ok Write permission.
;;; x_ok Execute permission.
;;; f_ok Presence of file.
;;; w_ok Write permission.
;;; x_ok Execute permission.
;;; f_ok Presence of file.
-#!-win32
+
+;;; In Windows, the MODE argument to access is defined in terms of
+;;; literal magic numbers---there are no constants to grovel. X_OK
+;;; is not defined.
+#!+win32
+(progn
+ (defconstant f_ok 0)
+ (defconstant w_ok 2)
+ (defconstant r_ok 4))
+
(defun unix-access (path mode)
(declare (type unix-pathname path)
(type (mod 8) mode))
(defun unix-access (path mode)
(declare (type unix-pathname path)
(type (mod 8) mode))