GETGID.2
资源名称:os_source.zip [点击查看]
上传用户:datang2001
上传日期:2007-02-01
资源大小:53269k
文件大小:1k
源码类别:
操作系统开发
开发平台:
C/C++
- ." Copyright (c) 1983 Regents of the University of California.
- ." All rights reserved. The Berkeley software License Agreement
- ." specifies the terms and conditions for redistribution.
- ."
- ." @(#)getgid.2 6.2 (Berkeley) 1/7/86
- ."
- .TH GETGID 2 "January 7, 1986"
- .UC 5
- .SH NAME
- getgid, getegid - get group identity
- .SH SYNOPSIS
- .nf
- .ft B
- #include <sys/types.h>
- #include <unistd.h>
- gid_t getgid(void)
- gid_t getegid(void)
- .fi
- .SH DESCRIPTION
- .B Getgid
- returns the real group ID of the current process,
- .B getegid
- the effective group ID.
- .PP
- The real group ID is specified at login time.
- .PP
- The effective group ID is more transient, and determines
- additional access permission during execution of a
- ``set-group-ID'' process, and it is for such processes
- that fBgetgidfP is most useful.
- .SH "SEE ALSO"
- .BR getuid (2),
- .BR setgid (2).