Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1d642d2

Browse files
committed
Closes Issue #14661: posix module: add O_EXEC, O_SEARCH, O_TTY_INIT (I add some Solaris constants too)
1 parent cf38120 commit 1d642d2

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

Modules/posixmodule.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11167,6 +11167,9 @@ all_ins(PyObject *d)
1116711167
#ifdef O_TEXT
1116811168
if (ins(d, "O_TEXT", (long)O_TEXT)) return -1;
1116911169
#endif
11170+
#ifdef O_XATTR
11171+
if (ins(d, "O_XATTR", (long)O_XATTR)) return -1;
11172+
#endif
1117011173
#ifdef O_LARGEFILE
1117111174
if (ins(d, "O_LARGEFILE", (long)O_LARGEFILE)) return -1;
1117211175
#endif
@@ -11197,6 +11200,9 @@ all_ins(PyObject *d)
1119711200
#ifdef O_CLOEXEC
1119811201
if (ins(d, "O_CLOEXEC", (long)O_CLOEXEC)) return -1;
1119911202
#endif
11203+
#ifdef O_ACCMODE
11204+
if (ins(d, "O_ACCMODE", (long)O_ACCMODE)) return -1;
11205+
#endif
1120011206
/* posix - constants for *at functions */
1120111207
#ifdef AT_SYMLINK_NOFOLLOW
1120211208
if (ins(d, "AT_SYMLINK_NOFOLLOW", (long)AT_SYMLINK_NOFOLLOW)) return -1;
@@ -11262,6 +11268,10 @@ all_ins(PyObject *d)
1126211268
/* Do not follow links. */
1126311269
if (ins(d, "O_NOFOLLOW", (long)O_NOFOLLOW)) return -1;
1126411270
#endif
11271+
#ifdef O_NOLINKS
11272+
/* Fails if link count of the named file is greater than 1 */
11273+
if (ins(d, "O_NOLINKS", (long)O_NOLINKS)) return -1;
11274+
#endif
1126511275
#ifdef O_NOATIME
1126611276
/* Do not update the access time. */
1126711277
if (ins(d, "O_NOATIME", (long)O_NOATIME)) return -1;

0 commit comments

Comments
 (0)