source: trunk/minix/man/man2/getuid.2@ 11

Last change on this file since 11 was 9, checked in by Mattia Monga, 14 years ago

Minix 3.1.2a

File size: 854 bytes
Line 
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
10getuid, geteuid \- get user identity
11.SH SYNOPSIS
12.nf
13.ft B
14#include <sys/types.h>
15#include <unistd.h>
16
17uid_t getuid(void)
18uid_t geteuid(void)
19.fi
20.SH DESCRIPTION
21.B Getuid
22returns the real user ID of the current process,
23.B geteuid
24the effective user ID.
25.PP
26The real user ID identifies the person who is logged in.
27The effective user ID
28gives the process additional permissions during
29execution of \*(lqset-user-ID\*(rq mode processes, which use
30\fBgetuid\fP to determine the real-user-id of the process that
31invoked them.
32.SH "SEE ALSO"
33.BR getgid (2),
34.BR setuid (2).
Note: See TracBrowser for help on using the repository browser.