getgid.2
来自「<B>Digital的Unix操作系统VAX 4.2源码</B>」· 2 代码 · 共 42 行
2
42 行
.\" SCCSID: @(#)getgid.2 2.1 3/10/87.TH getgid 2.SH Namegetgid, getegid \- get group identity.SH Syntax.nf.B #include <sys/types.h>.B #include <unistd.h>.PP.B gid = getgid().B gid_t gid;.PP.B egid = getegid().B gid_t egid;.fi.SH Description.NXR "getgid system call".NXR "getegid system call".NXR "real group ID" "getting".NXR "effective group ID" "getting"The.PN getgidsystem call returns the real group ID of the current process, and the.PN getegidcall returns the effective group ID..PPThe real group ID is specified at login time..PPThe effective group ID is more transient and determinesadditional access permission during execution of a``set-group-ID'' process. The.PN getgidcall is most useful with processes that are ``set-group-ID.''.SH EnvironmentDiffers from the System V definition in thatthe return values are of type.I int, instead of type .I unsigned short..SH See Alsogetuid(2), setregid(2), setgid(3)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?