diff options
Diffstat (limited to 'lib/libc/compat-43/setruid.3')
-rw-r--r-- | lib/libc/compat-43/setruid.3 | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/lib/libc/compat-43/setruid.3 b/lib/libc/compat-43/setruid.3 index b90656b..465d81e 100644 --- a/lib/libc/compat-43/setruid.3 +++ b/lib/libc/compat-43/setruid.3 @@ -55,13 +55,15 @@ function sets the real user ID (group ID) of the current process. .Sh RETURN VALUES -Upon success, these functions return 0; -otherwise \-1 is returned. -.Pp -If the user is not the super user, or the uid -specified is not the real or effective ID, these -functions return \-1. -.Pp +.Rv -std +.Sh ERRORS +The functions fail if: +.Bl -tag -width Er +.It Bq Er EPERM +The user is not the super user and the ID +specified is not the real or effective ID. +.El +.Sh COMPATIBILITY The use of these calls is not portable. Their use is discouraged; they will be removed in the future. .Sh SEE ALSO |