From b83b46d2c66df8d8c9dee501da63065d2f2d86f9 Mon Sep 17 00:00:00 2001 From: Jack Jansen Date: Thu, 15 May 1997 11:18:13 +0000 Subject: MSL errno.h has moved some errors around, and doesn't document them in comments, so we do that ourselves. --- Mac/scripts/errors.txt | 17 +++++++++++------ Mac/scripts/mkestrres-errno.h | 7 +++++++ Mac/scripts/mkestrres.py | 6 ++++++ 3 files changed, 24 insertions(+), 6 deletions(-) create mode 100644 Mac/scripts/mkestrres-errno.h diff --git a/Mac/scripts/errors.txt b/Mac/scripts/errors.txt index afdbc4d..cb802d1 100644 --- a/Mac/scripts/errors.txt +++ b/Mac/scripts/errors.txt @@ -579,12 +579,12 @@ 32 EPIPE Broken pipe 33 EDOM Numerical argument out of domain 34 ERANGE Result too large -35 EAGAIN Resource temporarily unavailable -36 EINPROGRESS Operation now in progress -37 EALREADY Operation already in progress -38 ENOTSOCK Socket operation on non-socket -39 EDESTADDRREQ Destination address required -40 EMSGSIZE Message too long +35 EFPOS File positioning error +36 ESIGPARM Signal argument error +37 ENOMEM Cannot allocate memory +38 EACCES Permission denied +39 ENOENT No such file or directory +40 ENOSYS Function not implemented 41 EPROTOTYPE Protocol wrong type for socket 42 ENOPROTOOPT Protocol not available 43 EPROTONOSUPPORT Protocol not supported @@ -624,3 +624,8 @@ 77 ENOLCK No locks available 78 ENOSYS Function not implemented 79 EFTYPE Inappropriate file type or format +136 EINPROGRESS Operation now in progress +137 EALREADY Operation already in progress +138 ENOTSOCK Socket operation on non-socket +139 EDESTADDRREQ Destination address required +140 EMSGSIZE Message too long diff --git a/Mac/scripts/mkestrres-errno.h b/Mac/scripts/mkestrres-errno.h new file mode 100644 index 0000000..702901b --- /dev/null +++ b/Mac/scripts/mkestrres-errno.h @@ -0,0 +1,7 @@ +/* These are defined in MSL errno.h, but unfortunately not documented */ +#define EFPOS 35 /* File positioning error */ +#define ESIGPARM 36 /* Signal argument error */ +#define ENOMEM 37 /* Cannot allocate memory */ +#define EACCES 38 /* Permission denied */ +#define ENOENT 39 /* No such file or directory */ +#define ENOSYS 40 /* Function not implemented */ diff --git a/Mac/scripts/mkestrres.py b/Mac/scripts/mkestrres.py index 56fec98..f9874f6 100644 --- a/Mac/scripts/mkestrres.py +++ b/Mac/scripts/mkestrres.py @@ -90,6 +90,12 @@ def main(): parse_errno_h(fp, dict) fp.close() + fss, ok = macfs.PromptGetFile("Select 2nd errno.h or cancel") + if not ok: return + fp = open(fss.as_pathname()) + parse_errno_h(fp, dict) + fp.close() + fss, ok = macfs.PromptGetFile("Where is Errors.h?") if not ok: return fp = open(fss.as_pathname()) -- cgit v0.12