summaryrefslogtreecommitdiffstats
path: root/txr.1
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2016-05-01 18:56:11 -0700
committerKaz Kylheku <kaz@kylheku.com>2016-05-01 18:56:11 -0700
commit7f1562fbf9262270b31d1007e400dd6605d81f99 (patch)
treeb8d14ffd980000ca8a4293c279f5e4d8244df6d9 /txr.1
parent9bbc744c3b5e0584ad7c9abe244128572a692229 (diff)
downloadtxr-7f1562fbf9262270b31d1007e400dd6605d81f99.tar.gz
txr-7f1562fbf9262270b31d1007e400dd6605d81f99.tar.bz2
txr-7f1562fbf9262270b31d1007e400dd6605d81f99.zip
Adding getresuid, getresuid, getresgid and setresgid.
* configure: Test for these functions. * sysif.c (getresuid_wrap, getresgid_wrap, setresuid_wrap, setresgid_wrap): New static function. (sysif_init): Registered getresuid, setresgid, setresuid and setresgid intrinsics. * txr.1: Documented all four functions.
Diffstat (limited to 'txr.1')
-rw-r--r--txr.136
1 files changed, 36 insertions, 0 deletions
diff --git a/txr.1 b/txr.1
index 85e24742..6e43007f 100644
--- a/txr.1
+++ b/txr.1
@@ -37006,6 +37006,42 @@ is returned.
On failure, it throws an exception of type
.codn system-error .
+.coNP Functions @ getresuid and @ getresgid
+.synb
+.mets (getresuid)
+.mets (getresgid)
+.syne
+.desc
+These functions directly correspond to the POSIX C library functions
+of the same names available in some Unix operating systems.
+Each function retrieves a three element list of numeric IDs.
+The
+.code getresuid
+function retrieves the real, effective and saved user ID of
+the calling process.
+The
+.code getresgid
+function retrieves the real, effective and saved group ID of
+the calling process.
+
+.coNP Functions @ setresuid and @ setresgid
+.synb
+.mets (setresuid < real-uid < effective-uid << saved-uid )
+.mets (setresgid < real-gid < effective-gid << saved-gid )
+.syne
+.desc
+These functions directly correspond to the POSIX C library functions of the
+same names available in some Unix operating systems. They change the real,
+effective and saved user ID or group ID, respectively, of the calling process.
+
+A value of -1 for any of the IDs specifies that the ID is not to be changed.
+
+Only privileged processes may arbitrarily change IDs to different values.
+
+Unprivileged processes are restricted in the following way:
+each of the new IDs that is replaced must have a new value which is equal to
+one of the existing three IDs.
+
.SS* Unix Password Database
.coNP Structure @ passwd