diff options
author | Dong-hee Na <donghee.na92@gmail.com> | 2019-10-28 16:31:15 +0900 |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2019-10-28 09:31:15 +0200 |
commit | 3bfc8e0fcc707d200c267ff05b052fd6a63c985a (patch) | |
tree | adc7e753effdeba3575aab6ffad8adc43e5dcde0 /Modules/fcntlmodule.c | |
parent | 85c6f8c65cd4f7219522c1f304bdfff19f785e7a (diff) | |
download | cpython-git-3bfc8e0fcc707d200c267ff05b052fd6a63c985a.tar.gz |
bpo-38602: Add fcntl.F_OFD_XXXX for fcntlmodule (GH-16956)
Diffstat (limited to 'Modules/fcntlmodule.c')
-rw-r--r-- | Modules/fcntlmodule.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Modules/fcntlmodule.c b/Modules/fcntlmodule.c index cfa1225684..1e5b0f7fae 100644 --- a/Modules/fcntlmodule.c +++ b/Modules/fcntlmodule.c @@ -495,6 +495,15 @@ all_ins(PyObject* m) #ifdef F_SETLKW if (PyModule_AddIntMacro(m, F_SETLKW)) return -1; #endif +#ifdef F_OFD_GETLK + if (PyModule_AddIntMacro(m, F_OFD_GETLK)) return -1; +#endif +#ifdef F_OFD_SETLK + if (PyModule_AddIntMacro(m, F_OFD_SETLK)) return -1; +#endif +#ifdef F_OFD_SETLKW + if (PyModule_AddIntMacro(m, F_OFD_SETLKW)) return -1; +#endif #ifdef F_GETOWN if (PyModule_AddIntMacro(m, F_GETOWN)) return -1; #endif |