[Python-checkins] r84179 - in python/branches/py3k: Misc/ACKS Misc/NEWS Modules/errnomodule.c
antoine.pitrou
python-checkins at python.org
Wed Aug 18 23:05:19 CEST 2010
Author: antoine.pitrou
Date: Wed Aug 18 23:05:19 2010
New Revision: 84179
Log:
Issue #5737: Add Solaris-specific mnemonics in the errno module. Patch by
Matthew Ahrens.
Modified:
python/branches/py3k/Misc/ACKS
python/branches/py3k/Misc/NEWS
python/branches/py3k/Modules/errnomodule.c
Modified: python/branches/py3k/Misc/ACKS
==============================================================================
--- python/branches/py3k/Misc/ACKS (original)
+++ python/branches/py3k/Misc/ACKS Wed Aug 18 23:05:19 2010
@@ -14,6 +14,7 @@
David Abrahams
Jim Ahlstrom
Farhan Ahmad
+Matthew Ahrens
Nir Aides
Yaniv Aknin
Jyrki Alakuijala
Modified: python/branches/py3k/Misc/NEWS
==============================================================================
--- python/branches/py3k/Misc/NEWS (original)
+++ python/branches/py3k/Misc/NEWS Wed Aug 18 23:05:19 2010
@@ -63,6 +63,9 @@
Extensions
----------
+- Issue #5737: Add Solaris-specific mnemonics in the errno module. Patch by
+ Matthew Ahrens.
+
- Restore GIL in nis_cat in case of error.
- Issue #665761: ``functools.reduce()`` will no longer mask exceptions
Modified: python/branches/py3k/Modules/errnomodule.c
==============================================================================
--- python/branches/py3k/Modules/errnomodule.c (original)
+++ python/branches/py3k/Modules/errnomodule.c Wed Aug 18 23:05:19 2010
@@ -82,7 +82,8 @@
/*
* The names and comments are borrowed from linux/include/errno.h,
- * which should be pretty all-inclusive
+ * which should be pretty all-inclusive. However, the Solaris specific
+ * names and comments are borrowed from sys/errno.h in Solaris.
*/
#ifdef ENODEV
@@ -797,6 +798,26 @@
inscode(d, ds, de, "WSAN", WSAN, "Error WSAN");
#endif
+ /* Solaris-specific errnos */
+#ifdef ECANCELED
+ inscode(d, ds, de, "ECANCELED", ECANCELED, "Operation canceled");
+#endif
+#ifdef ENOTSUP
+ inscode(d, ds, de, "ENOTSUP", ENOTSUP, "Operation not supported");
+#endif
+#ifdef EOWNERDEAD
+ inscode(d, ds, de, "EOWNERDEAD", EOWNERDEAD, "Process died with the lock");
+#endif
+#ifdef ENOTRECOVERABLE
+ inscode(d, ds, de, "ENOTRECOVERABLE", ENOTRECOVERABLE, "Lock is not recoverable");
+#endif
+#ifdef ELOCKUNMAPPED
+ inscode(d, ds, de, "ELOCKUNMAPPED", ELOCKUNMAPPED, "Locked lock was unmapped");
+#endif
+#ifdef ENOTACTIVE
+ inscode(d, ds, de, "ENOTACTIVE", ENOTACTIVE, "Facility is not active");
+#endif
+
Py_DECREF(de);
return m;
}
More information about the Python-checkins
mailing list