manual page distributed with 4.1BSD
authorKirk McKusick <mckusick@ucbvax.Berkeley.EDU>
Fri, 10 May 1985 07:39:02 +0000 (23:39 -0800)
committerKirk McKusick <mckusick@ucbvax.Berkeley.EDU>
Fri, 10 May 1985 07:39:02 +0000 (23:39 -0800)
SCCS-vsn: lib/libc/sys/getuid.2 4.1

usr/src/lib/libc/sys/getuid.2 [new file with mode: 0644]

diff --git a/usr/src/lib/libc/sys/getuid.2 b/usr/src/lib/libc/sys/getuid.2
new file mode 100644 (file)
index 0000000..9967735
--- /dev/null
@@ -0,0 +1,47 @@
+.\" Copyright (c) 1980 Regents of the University of California.
+.\" All rights reserved.  The Berkeley software License Agreement
+.\" specifies the terms and conditions for redistribution.
+.\"
+.\"    @(#)getuid.2    4.1 (Berkeley) %G%
+.\"
+.TH GETUID 2 
+.UC 4
+.SH NAME
+getuid, getgid, geteuid, getegid \- get user and group identity
+.SH SYNOPSIS
+.B getuid()
+.PP
+.B geteuid()
+.PP
+.B getgid()
+.PP
+.B getegid()
+.SH DESCRIPTION
+.I Getuid
+returns the real user ID of the current process,
+.I geteuid
+the effective user ID.
+The real user ID identifies the person who is logged in,
+in contradistinction to the effective user ID, which
+determines his access permission at the moment.
+It is thus useful to programs which operate using
+the `set user ID' mode, to find out who invoked them.
+.PP
+.I Getgid
+returns the real group ID,
+.I getegid
+the effective group ID.
+.SH "SEE ALSO"
+setuid(2)
+.SH "ASSEMBLER (PDP-11)"
+(getuid = 24.)
+.br
+.B sys getuid
+.br
+(real user ID in r0, effective user ID in r1)
+.PP
+(getgid = 47.)
+.br
+.B sys getgid
+.br
+(real group ID in r0, effective group ID in r1)