summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2009-12-02 20:37:54 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2009-12-02 20:37:54 (GMT)
commit30b3b35cbac52719e44d8457fd9a7be09e6edd2c (patch)
tree595a8572a948775e3dcb4017fa13240dd5baf251 /Doc
parentf2bf0d2a51f305f7df9d6199f580b488f1aa5135 (diff)
downloadcpython-30b3b35cbac52719e44d8457fd9a7be09e6edd2c.zip
cpython-30b3b35cbac52719e44d8457fd9a7be09e6edd2c.tar.gz
cpython-30b3b35cbac52719e44d8457fd9a7be09e6edd2c.tar.bz2
Issue #7333: The `posix` module gains an `initgroups()` function providing
access to the initgroups(3) C library call on Unix systems which implement it. Patch by Jean-Paul Calderone.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/os.rst9
1 files changed, 9 insertions, 0 deletions
diff --git a/Doc/library/os.rst b/Doc/library/os.rst
index 0036845..fac37b0 100644
--- a/Doc/library/os.rst
+++ b/Doc/library/os.rst
@@ -136,6 +136,15 @@ process and user.
Availability: Unix.
+.. function:: initgroups(username, gid)
+
+ Call the system initgroups() to initialize the group access list with all of
+ the groups of which the specified username is a member, plus the specified
+ group id. Availability: Unix.
+
+ .. versionadded:: 2.7
+
+
.. function:: getlogin()
Return the name of the user logged in on the controlling terminal of the