diff options
author | Georg Brandl <georg@python.org> | 2007-11-24 13:56:09 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2007-11-24 13:56:09 (GMT) |
commit | b67da6ed2b182d2ef0b4e86e1dd402d27c53422d (patch) | |
tree | 8246321d090c097728e6bab65bd8d7f21b3ded09 /Modules | |
parent | ce7d10ccc4d04fd96dfd5c0d239ed81357efd3f8 (diff) | |
download | cpython-b67da6ed2b182d2ef0b4e86e1dd402d27c53422d.zip cpython-b67da6ed2b182d2ef0b4e86e1dd402d27c53422d.tar.gz cpython-b67da6ed2b182d2ef0b4e86e1dd402d27c53422d.tar.bz2 |
#1735632: add O_NOATIME constant to os module.
Also document a few other O_ constants that were missing from documentation.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/posixmodule.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index 7c25a05..5fcc521 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -8658,6 +8658,10 @@ all_ins(PyObject *d) /* Do not follow links. */ if (ins(d, "O_NOFOLLOW", (long)O_NOFOLLOW)) return -1; #endif +#ifdef O_NOATIME + /* Do not update the access time. */ + if (ins(d, "O_NOATIME", (long)O_NOATIME)) return -1; +#endif /* These come from sysexits.h */ #ifdef EX_OK |