aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--man2/setresuid.216
1 files changed, 16 insertions, 0 deletions
diff --git a/man2/setresuid.2 b/man2/setresuid.2
index 0eb936c533..d93240e1bc 100644
--- a/man2/setresuid.2
+++ b/man2/setresuid.2
@@ -87,6 +87,22 @@ they also appear on HP-UX and some of the BSDs.
Under HP-UX and FreeBSD, the prototype is found in
.IR <unistd.h> .
Under Linux the prototype is provided by glibc since version 2.3.2.
+
+The original Linux
+.BR setresuid ()
+and
+.BR setresgid ()
+system calls supported only 16-bit user and group IDs.
+Subsequently, Linux 2.4 added
+.BR setresuid32 ()
+and
+.BR setresgid32 (),
+supporting 32-bit IDs.
+The glibc
+.BR setresuid ()
+and
+.BR setresgid ()
+wrapper functions transparently deal with the variations across kernel versions.
.SH "SEE ALSO"
.BR getresuid (2),
.BR getuid (2),