summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2009-12-02 20:46:48 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2009-12-02 20:46:48 (GMT)
commitb7572f08f48c4b29c137c7b62f10be9436b6efa3 (patch)
tree326485f0f49c4ab74c9d70c9a205c1dd5853c742 /Doc/library
parent8a10ecc051b0932a8386050675862e98db5a5691 (diff)
downloadcpython-b7572f08f48c4b29c137c7b62f10be9436b6efa3.zip
cpython-b7572f08f48c4b29c137c7b62f10be9436b6efa3.tar.gz
cpython-b7572f08f48c4b29c137c7b62f10be9436b6efa3.tar.bz2
Merged revisions 76636 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r76636 | antoine.pitrou | 2009-12-02 21:37:54 +0100 (mer., 02 déc. 2009) | 5 lines 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/library')
-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 29e7899..7c96bfe 100644
--- a/Doc/library/os.rst
+++ b/Doc/library/os.rst
@@ -161,6 +161,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:: 3.2
+
+
.. function:: getlogin()
Return the name of the user logged in on the controlling terminal of the