8000 added missing `CLONE_*` consts · python/cpython@5181126 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5181126

Browse files
committed
added missing CLONE_* consts
also, alphabetically order consts in doc
1 parent af74db5 commit 5181126

File tree

2 files changed

+22
-6
lines changed

2 files changed

+22
-6
lines changed

Doc/library/os.rst

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -776,16 +776,20 @@ process and user.
776776
Flags to the :func:`unshare` function, if the implementation supports them.
777777
See the Linux manual for the exact effect and availability.
778778

779-
.. data:: CLONE_FS
780-
CLONE_FILES
781-
CLONE_NEWNS
779+
.. data:: CLONE_FILES
782780
CLONE_NEWCGROUP
783-
CLONE_NEWUTS
784781
CLONE_NEWIPC
785-
CLONE_NEWUSER
786-
CLONE_NEWPID
787782
CLONE_NEWNET
783+
CLONE_NEWNS
784+
CLONE_NEWPID
788785
CLONE_NEWTIME
786+
CLONE_NEWUSER
787+
CLONE_NEWUTS
788+
CLONE_SIGHAND
789+
CLONE_SYSVSEM
790+
CLONE_THREAD
791+
CLONE_VM
792+
CLONE_FS
789793

790794
.. _os-newstreams:
791795

Modules/posixmodule.c

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15468,6 +15468,18 @@ all_ins(PyObject *m)
1546815468
#ifdef CLONE_NEWTIME
1546915469
if (PyModule_AddIntMacro(m, CLONE_NEWTIME)) return -1;
1547015470
#endif
15471+
#ifdef CLONE_SYSVSEM
15472+
if (PyModule_AddIntMacro(m, CLONE_SYSVSEM)) return -1;
15473+
#endif
15474+
#ifdef CLONE_THREAD
15475+
if (PyModule_AddIntMacro(m, CLONE_THREAD)) return -1;
15476+
#endif
15477+
#ifdef CLONE_SIGHAND
15478+
if (PyModule_AddIntMacro(m, CLONE_SIGHAND)) return -1;
15479+
#endif
15480+
#ifdef CLONE_VM
15481+
if (PyModule_AddIntMacro(m, CLONE_VM)) return -1;
15482+
#endif
1547115483
#endif
1547215484

1547315485
#endif

0 commit comments

Comments
 (0)
0