Commit 5b62199b authored by Georg Brandl's avatar Georg Brandl

#1735632: add O_NOATIME constant to os module.

Also document a few other O_ constants that were missing from documentation.
parent 4cfdd3fe
...@@ -703,14 +703,7 @@ platforms. For descriptions of their availability and use, consult ...@@ -703,14 +703,7 @@ platforms. For descriptions of their availability and use, consult
.. data:: O_BINARY .. data:: O_BINARY
O_NOINHERIT
Option for the *flag* argument to the :func:`open` function. This can be
bit-wise OR'd together with those listed above. Availability: Windows.
.. % XXX need to check on the availability of this one.
.. data:: O_NOINHERIT
O_SHORT_LIVED O_SHORT_LIVED
O_TEMPORARY O_TEMPORARY
O_RANDOM O_RANDOM
...@@ -721,6 +714,15 @@ platforms. For descriptions of their availability and use, consult ...@@ -721,6 +714,15 @@ platforms. For descriptions of their availability and use, consult
bit-wise OR'd together. Availability: Windows. bit-wise OR'd together. Availability: Windows.
.. data:: O_DIRECT
O_DIRECTORY
O_NOFOLLOW
O_NOATIME
Options for the *flag* argument to the :func:`open` function. These are
GNU extensions and not present if they are not defined by the C library.
.. data:: SEEK_SET .. data:: SEEK_SET
SEEK_CUR SEEK_CUR
SEEK_END SEEK_END
......
...@@ -8658,6 +8658,10 @@ all_ins(PyObject *d) ...@@ -8658,6 +8658,10 @@ all_ins(PyObject *d)
/* Do not follow links. */ /* Do not follow links. */
if (ins(d, "O_NOFOLLOW", (long)O_NOFOLLOW)) return -1; if (ins(d, "O_NOFOLLOW", (long)O_NOFOLLOW)) return -1;
#endif #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 */ /* These come from sysexits.h */
#ifdef EX_OK #ifdef EX_OK
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment