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}.
........
This commit is contained in:
Martin v. Löwis 2009-11-27 14:09:49 +00:00
parent 03f6c11f07
commit 7aed61ae46
7 changed files with 202 additions and 27 deletions

View file

@ -196,6 +196,19 @@ process and user.
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 @@ process and user.
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)