summaryrefslogtreecommitdiffstats
path: root/Modules/posixmodule.c
diff options
context:
space:
mode:
authorSkip Montanaro <skip@pobox.com>2005-05-16 02:42:22 (GMT)
committerSkip Montanaro <skip@pobox.com>2005-05-16 02:42:22 (GMT)
commit5ff14927209fe4a6c3085bf600e4ef80bdf6ff4d (patch)
treee88a2a8af8007bf281600f7f9f8665ba393de38f /Modules/posixmodule.c
parent7726dc0a8e2951e1fd75353e7d8c16284d0d4653 (diff)
downloadcpython-5ff14927209fe4a6c3085bf600e4ef80bdf6ff4d.zip
cpython-5ff14927209fe4a6c3085bf600e4ef80bdf6ff4d.tar.gz
cpython-5ff14927209fe4a6c3085bf600e4ef80bdf6ff4d.tar.bz2
Add O_SHLOCK & O_EXLOCK. Closes patch #1103951.
Diffstat (limited to 'Modules/posixmodule.c')
-rw-r--r--Modules/posixmodule.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
index 1ca131e..79d5e71 100644
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -7718,6 +7718,12 @@ all_ins(PyObject *d)
#ifdef O_LARGEFILE
if (ins(d, "O_LARGEFILE", (long)O_LARGEFILE)) return -1;
#endif
+#ifdef O_SHLOCK
+ if (ins(d, "O_SHLOCK", (long)O_SHLOCK)) return -1;
+#endif
+#ifdef O_EXLOCK
+ if (ins(d, "O_EXLOCK", (long)O_EXLOCK)) return -1;
+#endif
/* MS Windows */
#ifdef O_NOINHERIT