summaryrefslogtreecommitdiffstats
path: root/Mac/scripts
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>1997-05-15 11:18:13 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>1997-05-15 11:18:13 (GMT)
commitb83b46d2c66df8d8c9dee501da63065d2f2d86f9 (patch)
treebe08dec8f4d8be752be4873cbe9109446c2beb6e /Mac/scripts
parent4346716962881713cbdbf59eb901b35dae31f042 (diff)
downloadcpython-b83b46d2c66df8d8c9dee501da63065d2f2d86f9.zip
cpython-b83b46d2c66df8d8c9dee501da63065d2f2d86f9.tar.gz
cpython-b83b46d2c66df8d8c9dee501da63065d2f2d86f9.tar.bz2
MSL errno.h has moved some errors around, and doesn't document
them in comments, so we do that ourselves.
Diffstat (limited to 'Mac/scripts')
-rw-r--r--Mac/scripts/errors.txt17
-rw-r--r--Mac/scripts/mkestrres-errno.h7
-rw-r--r--Mac/scripts/mkestrres.py6
3 files changed, 24 insertions, 6 deletions
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())