[Python-checkins] cpython: Issue #13324: fcntlmodule: Add the F_NOCACHE flag. Patch by Alex Stewart.
charles-francois.natali
python-checkins at python.org
Wed Nov 2 18:59:18 CET 2011
http://hg.python.org/cpython/rev/cee6fdd6436d
changeset: 73304:cee6fdd6436d
user: Charles-François Natali <neologix at free.fr>
date: Wed Nov 02 18:58:25 2011 +0100
summary:
Issue #13324: fcntlmodule: Add the F_NOCACHE flag. Patch by Alex Stewart.
files:
Misc/ACKS | 1 +
Modules/fcntlmodule.c | 5 ++++-
2 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/Misc/ACKS b/Misc/ACKS
--- a/Misc/ACKS
+++ b/Misc/ACKS
@@ -919,6 +919,7 @@
Oliver Steele
Greg Stein
Chris Stern
+Alex Stewart
Victor Stinner
Richard Stoakley
Peter Stoehr
diff --git a/Modules/fcntlmodule.c b/Modules/fcntlmodule.c
--- a/Modules/fcntlmodule.c
+++ b/Modules/fcntlmodule.c
@@ -540,10 +540,13 @@
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
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list