Raymond Toy pushed to branch issue-386-generate-def-unix-error at cmucl / cmucl
Commits:
-
3566cce0
by Raymond Toy at 2025-02-28T19:57:44-08:00
2 changed files:
Changes:
... | ... | @@ -19,6 +19,8 @@ cat bin/errno-template.lisp > $OUTPUT |
19 | 19 | case `uname -s` in
|
20 | 20 | Linux) ERRNO_FILES=/usr/include/asm-generic/errno*.h
|
21 | 21 | ;;
|
22 | + Darwin) ERRNO_FILES=/usr/include/sys/errno.h
|
|
23 | + ;;
|
|
22 | 24 | esac
|
23 | 25 | |
24 | 26 | awk '/^#define[ \t]+(E[A-Z0-9]+)[ \t]+([A-Z0-9]+).*$/ {
|
... | ... | @@ -44,7 +44,7 @@ |
44 | 44 | ;;;
|
45 | 45 | (def-unix-error ESUCCESS 0 _N"Successful")
|
46 | 46 | |
47 | -#-linux
|
|
47 | +#-(or linux darwin)
|
|
48 | 48 | (progn
|
49 | 49 | (def-unix-error EPERM 1 _N"Operation not permitted")
|
50 | 50 | (def-unix-error ENOENT 2 _N"No such file or directory")
|
... | ... | @@ -86,7 +86,7 @@ |
86 | 86 | )
|
87 | 87 | |
88 | 88 | ;;;
|
89 | -#-(or linux svr4)
|
|
89 | +#-(or linux svr4 darwin)
|
|
90 | 90 | (progn
|
91 | 91 | ;;; non-blocking and interrupt i/o
|
92 | 92 | (def-unix-error EWOULDBLOCK 35 _N"Operation would block")
|