getuid.2

来自「<B>Digital的Unix操作系统VAX 4.2源码</B>」· 2 代码 · 共 61 行

2
61
字号
.\" SCCSID: @(#)getuid.2	8.1	9/11/90.\" Last modified by BAM on 2-Aug-85  1000  .\".TH getuid 2.SH Namegetuid, geteuid \- get user identity.SH Syntax.nf.B #include <sys/types.h>.B #include <unistd.h>.PP.B uid = getuid().B uid_t uid;.sp.B euid = geteuid().B uid_t euid;.fi.SH Description.NXR "getuid system call".NXR "geteuid system call".NXR "real group ID" "getting".NXR "effective group ID" "getting".NXR "real user ID" "getting".NXR "effective user ID" "getting"The.PN getuidsystem call returns the real user ID of the current process,.PN geteuidthe effective user ID..PPThe real user ID identifies the person who is logged in.The effective user IDgives the process additional permissions duringexecution of \*(lqset-user-ID\*(rq mode processes, which use.PN getuidto determine the real-user-id of the process whichinvoked them..SH Environment.SS System FiveDiffers from the System V definition in thatthe return values are of type.I int,instead of .I unsigned short..SS POSIXWhen your program is compiled in POSIX mode,the.PN getuidand.PN geteuidfunctions return a value of type .I uid_t.The.PN getgidand.PN getegidfunctions return a value of type .I gid_t..SH See Alsogetgid(2), setreuid(2)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?