summaryrefslogtreecommitdiffstats
path: root/Modules/fcntlmodule.c
diff options
context:
space:
mode:
authorCharles-François Natali <neologix@free.fr>2011-11-02 17:58:25 (GMT)
committerCharles-François Natali <neologix@free.fr>2011-11-02 17:58:25 (GMT)
commit23e1ecbd66e23711d660894402178bac863bad43 (patch)
tree15469e3d13eb4276b69906bc11565152252085a6 /Modules/fcntlmodule.c
parentca897e960a4dd05283110dd84ab43838a403e5c4 (diff)
downloadcpython-23e1ecbd66e23711d660894402178bac863bad43.zip
cpython-23e1ecbd66e23711d660894402178bac863bad43.tar.gz
cpython-23e1ecbd66e23711d660894402178bac863bad43.tar.bz2
Issue #13324: fcntlmodule: Add the F_NOCACHE flag. Patch by Alex Stewart.
Diffstat (limited to 'Modules/fcntlmodule.c')
-rw-r--r--Modules/fcntlmodule.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/Modules/fcntlmodule.c b/Modules/fcntlmodule.c
index bfc5985..6b7e3fc 100644
--- a/Modules/fcntlmodule.c
+++ b/Modules/fcntlmodule.c
@@ -540,10 +540,13 @@ all_ins(PyObject* d)
if (ins(d, "F_SHLCK", (long)F_SHLCK)) return -1;
#endif
-/* OS X (and maybe others) let you tell the storage device to flush to physical media */
+/* OS X specifics */
#ifdef F_FULLFSYNC
if (ins(d, "F_FULLFSYNC", (long)F_FULLFSYNC)) return -1;
#endif
+#ifdef F_NOCACHE
+ if (ins(d, "F_NOCACHE", (long)F_NOCACHE)) return -1;
+#endif
/* For F_{GET|SET}FL */
#ifdef FD_CLOEXEC