summaryrefslogtreecommitdiffstats
path: root/Modules/posixmodule.c
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2008-05-16 13:10:15 (GMT)
committerGeorg Brandl <georg@python.org>2008-05-16 13:10:15 (GMT)
commit5049a858baf3500af5d4eb12838f028aabefc35b (patch)
tree196f2c8b004f26a074def3cd654766c5eb821f02 /Modules/posixmodule.c
parentca21c65a237f1fbeb6b71ad124c31e9b59a41c98 (diff)
downloadcpython-5049a858baf3500af5d4eb12838f028aabefc35b.zip
cpython-5049a858baf3500af5d4eb12838f028aabefc35b.tar.gz
cpython-5049a858baf3500af5d4eb12838f028aabefc35b.tar.bz2
#2890: support os.O_ASYNC and fcntl.FASYNC.
Diffstat (limited to 'Modules/posixmodule.c')
-rw-r--r--Modules/posixmodule.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
index 6a72166..a4bbac5 100644
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -8756,6 +8756,11 @@ all_ins(PyObject *d)
#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;