Annotation of 43BSDTahoe/man/man2/setreuid.2, revision 1.1.1.1

1.1       root        1: .\" Copyright (c) 1980 Regents of the University of California.
                      2: .\" All rights reserved.  The Berkeley software License Agreement
                      3: .\" specifies the terms and conditions for redistribution.
                      4: .\"
                      5: .\"    @(#)setreuid.2  6.1 (Berkeley) 5/9/85
                      6: .\"
                      7: .TH SETREUID 2 "May 9, 1985"
                      8: .UC 4
                      9: .SH NAME
                     10: setreuid \- set real and effective user ID's
                     11: .SH SYNOPSIS
                     12: .ft B
                     13: .nf
                     14: setreuid(ruid, euid)
                     15: int ruid, euid;
                     16: .fi
                     17: .ft R
                     18: .SH DESCRIPTION
                     19: The real and effective user ID's of the
                     20: current process are set according to the arguments.
                     21: If
                     22: .I ruid
                     23: or 
                     24: .I euid
                     25: is \-1, the current uid is filled in by the system.
                     26: Unprivileged users may change the real user
                     27: ID to the effective user ID and vice-versa; only the super-user may
                     28: make other changes.
                     29: .SH "RETURN VALUE
                     30: Upon successful completion, a value of 0 is returned.  Otherwise,
                     31: a value of \-1 is returned and \fIerrno\fP is set to indicate the error.
                     32: .SH "ERRORS
                     33: .TP 15
                     34: [EPERM]
                     35: The current process is not the super-user and a change
                     36: other than changing the effective user-id to the real user-id
                     37: was specified.
                     38: .SH "SEE ALSO"
                     39: getuid(2), setregid(2), setuid(3)

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.