Closes Issue #14661: posix module: add O_EXEC, O_SEARCH, O_TTY_INIT (I add some Solaris constants too)
This commit is contained in:
parent
cf381206fc
commit
1d642d2af1
|
@ -11167,6 +11167,9 @@ all_ins(PyObject *d)
|
||||||
#ifdef O_TEXT
|
#ifdef O_TEXT
|
||||||
if (ins(d, "O_TEXT", (long)O_TEXT)) return -1;
|
if (ins(d, "O_TEXT", (long)O_TEXT)) return -1;
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef O_XATTR
|
||||||
|
if (ins(d, "O_XATTR", (long)O_XATTR)) return -1;
|
||||||
|
#endif
|
||||||
#ifdef O_LARGEFILE
|
#ifdef O_LARGEFILE
|
||||||
if (ins(d, "O_LARGEFILE", (long)O_LARGEFILE)) return -1;
|
if (ins(d, "O_LARGEFILE", (long)O_LARGEFILE)) return -1;
|
||||||
#endif
|
#endif
|
||||||
|
@ -11197,6 +11200,9 @@ all_ins(PyObject *d)
|
||||||
#ifdef O_CLOEXEC
|
#ifdef O_CLOEXEC
|
||||||
if (ins(d, "O_CLOEXEC", (long)O_CLOEXEC)) return -1;
|
if (ins(d, "O_CLOEXEC", (long)O_CLOEXEC)) return -1;
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef O_ACCMODE
|
||||||
|
if (ins(d, "O_ACCMODE", (long)O_ACCMODE)) return -1;
|
||||||
|
#endif
|
||||||
/* posix - constants for *at functions */
|
/* posix - constants for *at functions */
|
||||||
#ifdef AT_SYMLINK_NOFOLLOW
|
#ifdef AT_SYMLINK_NOFOLLOW
|
||||||
if (ins(d, "AT_SYMLINK_NOFOLLOW", (long)AT_SYMLINK_NOFOLLOW)) return -1;
|
if (ins(d, "AT_SYMLINK_NOFOLLOW", (long)AT_SYMLINK_NOFOLLOW)) return -1;
|
||||||
|
@ -11262,6 +11268,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_NOLINKS
|
||||||
|
/* Fails if link count of the named file is greater than 1 */
|
||||||
|
if (ins(d, "O_NOLINKS", (long)O_NOLINKS)) return -1;
|
||||||
|
#endif
|
||||||
#ifdef O_NOATIME
|
#ifdef O_NOATIME
|
||||||
/* Do not update the access time. */
|
/* Do not update the access time. */
|
||||||
if (ins(d, "O_NOATIME", (long)O_NOATIME)) return -1;
|
if (ins(d, "O_NOATIME", (long)O_NOATIME)) return -1;
|
||||||
|
|
Loading…
Reference in New Issue