diff options
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/cmathmodule.c | 2 | ||||
-rw-r--r-- | Modules/fcntlmodule.c | 3 | ||||
-rw-r--r-- | Modules/posixmodule.c | 5 |
3 files changed, 9 insertions, 1 deletions
diff --git a/Modules/cmathmodule.c b/Modules/cmathmodule.c index d6d1f27..109f2cc 100644 --- a/Modules/cmathmodule.c +++ b/Modules/cmathmodule.c @@ -920,7 +920,7 @@ cmath_phase(PyObject *self, PyObject *args) errno = 0; PyFPE_START_PROTECT("arg function", return 0) phi = c_atan2(z); - PyFPE_END_PROTECT(r) + PyFPE_END_PROTECT(phi) if (errno != 0) return math_error(); else diff --git a/Modules/fcntlmodule.c b/Modules/fcntlmodule.c index 6447e56..c5d41f2 100644 --- a/Modules/fcntlmodule.c +++ b/Modules/fcntlmodule.c @@ -510,6 +510,9 @@ all_ins(PyObject* d) 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 diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index 99efa56..33bcbd5 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -7212,6 +7212,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; |