diff options
author | Georg Brandl <georg@python.org> | 2012-03-17 16:58:12 +0100 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2012-03-17 16:58:12 +0100 |
commit | ffd4830f6ab0942a463772a01a91f051bfa2d376 (patch) | |
tree | 14d5f982ed3d51197f0dd69370d3f6002aec8e1e /Modules/fcntlmodule.c | |
parent | 206a0cc1b0f2545eef212be6210b4bf7008815ba (diff) | |
parent | 5d6d9423be73e8c6f3f18fa3e006573fc5836236 (diff) | |
download | cpython-ffd4830f6ab0942a463772a01a91f051bfa2d376.tar.gz |
merge with 3.2
Diffstat (limited to 'Modules/fcntlmodule.c')
-rw-r--r-- | Modules/fcntlmodule.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Modules/fcntlmodule.c b/Modules/fcntlmodule.c index bfc59855dd..6b7e3fc6e1 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 |