Merged revisions 76550 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r76550 | martin.v.loewis | 2009-11-27 14:56:01 +0100 (Fr, 27 Nov 2009) | 2 lines
Issue #6508: Add posix.{getresuid,getresgid,setresuid,setresgid}.
........
diff --git a/Doc/library/os.rst b/Doc/library/os.rst
index c64c5ad..588a752 100644
--- a/Doc/library/os.rst
+++ b/Doc/library/os.rst
@@ -196,6 +196,19 @@
Return the parent's process id. Availability: Unix.
+.. function:: getresgid()
+
+ Return a tuple (ruid, euid, suid) denoting the current process's
+ real, effective, and saved user ids. Availability: Unix.
+
+ .. versionadded:: 2.7/3.2
+
+.. function:: getresuid()
+
+ Return a tuple (rgid, egid, sgid) denoting the current process's
+ real, effective, and saved user ids. Availability: Unix.
+
+ .. versionadded:: 2.7/3.2
.. function:: getuid()
@@ -267,15 +280,28 @@
for the semantics. Availability: Unix.
-.. function:: setreuid(ruid, euid)
-
- Set the current process's real and effective user ids. Availability: Unix.
-
-
.. function:: setregid(rgid, egid)
Set the current process's real and effective group ids. Availability: Unix.
+.. function:: setresgid(rgid, egid, sgid)
+
+ Set the current process's real, effective, and saved group ids.
+ Availability: Unix.
+
+ .. versionadded:: 2.7/3.2
+
+.. function:: setresuid(ruid, euid, suid)
+
+ Set the current process's real, effective, and saved user ids.
+ Availibility: Unix.
+
+ .. versionadded:: 2.7/3.2
+
+.. function:: setreuid(ruid, euid)
+
+ Set the current process's real and effective user ids. Availability: Unix.
+
.. function:: getsid(pid)