]> granicus.if.org Git - python/commitdiff
MSL errno.h has moved some errors around, and doesn't document
authorJack Jansen <jack.jansen@cwi.nl>
Thu, 15 May 1997 11:18:13 +0000 (11:18 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Thu, 15 May 1997 11:18:13 +0000 (11:18 +0000)
them in comments, so we do that ourselves.

Mac/scripts/errors.txt
Mac/scripts/mkestrres-errno.h [new file with mode: 0644]
Mac/scripts/mkestrres.py

index afdbc4de8f42a2d537aa7b9a99ca4428669a8119..cb802d1efd6e262a950eaa77193b0204fdbd142d 100644 (file)
 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
 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 (file)
index 0000000..702901b
--- /dev/null
@@ -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 */
index 56fec9899009671b8ee0caf8ee7482c5a46baa5a..f9874f6ed90b85f0f2485384b42df9148fd8949f 100644 (file)
@@ -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())