Annotation of 43BSDReno/lib/libc/sys/getuid.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: .\"    @(#)getuid.2    6.3 (Berkeley) 1/7/86
                      6: .\"
                      7: .TH GETUID 2 "January 7, 1986"
                      8: .UC 4
                      9: .SH NAME
                     10: getuid, geteuid \- get user identity
                     11: .SH SYNOPSIS
                     12: .nf
                     13: .ft B
                     14: #include <sys/types.h>
                     15: .PP
                     16: .ft B
                     17: .nf
                     18: uid = getuid()
                     19: uid_t uid;
                     20: .PP
                     21: .ft B
                     22: euid = geteuid()
                     23: uid_t euid;
                     24: .fi
                     25: .SH DESCRIPTION
                     26: .I Getuid
                     27: returns the real user ID of the current process,
                     28: .I geteuid
                     29: the effective user ID.
                     30: .PP
                     31: The real user ID identifies the person who is logged in.
                     32: The effective user ID
                     33: gives the process additional permissions during
                     34: execution of \*(lqset-user-ID\*(rq mode processes, which use
                     35: \fIgetuid\fP to determine the real-user-id of the process that
                     36: invoked them.
                     37: .SH "SEE ALSO"
                     38: getgid(2), setreuid(2)

unix.superglobalmegacorp.com

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