[Python-checkins] r63368 - in python/trunk: Misc/NEWS Modules/fcntlmodule.c Modules/posixmodule.c
georg.brandl
python-checkins at python.org
Fri May 16 15:10:16 CEST 2008
Author: georg.brandl
Date: Fri May 16 15:10:15 2008
New Revision: 63368
Log:
#2890: support os.O_ASYNC and fcntl.FASYNC.
Modified:
python/trunk/Misc/NEWS
python/trunk/Modules/fcntlmodule.c
python/trunk/Modules/posixmodule.c
Modified: python/trunk/Misc/NEWS
==============================================================================
--- python/trunk/Misc/NEWS (original)
+++ python/trunk/Misc/NEWS Fri May 16 15:10:15 2008
@@ -30,6 +30,8 @@
Extension Modules
-----------------
+- Support os.O_ASYNC and fcntl.FASYNC if the constants exist on the platform.
+
- Support for Windows 9x has been removed from the winsound module.
- bsddb module updated to version 4.6.4.
Modified: python/trunk/Modules/fcntlmodule.c
==============================================================================
--- python/trunk/Modules/fcntlmodule.c (original)
+++ python/trunk/Modules/fcntlmodule.c Fri May 16 15:10:15 2008
@@ -510,6 +510,9 @@
if (ins(d, "F_SETLKW64", (long)F_SETLKW64)) return -1;
#endif
/* GNU extensions, as of glibc 2.2.4. */
+#ifdef FASYNC
+ if (ins(d, "FASYNC", (long)FASYNC)) return -1;
+#endif
#ifdef F_SETLEASE
if (ins(d, "F_SETLEASE", (long)F_SETLEASE)) return -1;
#endif
Modified: python/trunk/Modules/posixmodule.c
==============================================================================
--- python/trunk/Modules/posixmodule.c (original)
+++ python/trunk/Modules/posixmodule.c Fri May 16 15:10:15 2008
@@ -8756,6 +8756,11 @@
#endif
/* GNU extensions. */
+#ifdef O_ASYNC
+ /* Send a SIGIO signal whenever input or output
+ becomes available on file descriptor */
+ if (ins(d, "O_ASYNC", (long)O_ASYNC)) return -1;
+#endif
#ifdef O_DIRECT
/* Direct disk access. */
if (ins(d, "O_DIRECT", (long)O_DIRECT)) return -1;
More information about the Python-checkins
mailing list