GETGID

Section: Linux Programmer's Manual (2)
Updated: 2019-03-06
Index JM Home Page
 

名前

getgid, getegid - グループ ID を得る  

書式

#include <unistd.h>
#include <sys/types.h>

gid_t getgid(void);
gid_t getegid(void);  

説明

getgid() は呼び出し元のプロセスの実グループ ID を返す。

getegid() は呼び出し元のプロセスの実効グループ ID を返す。  

エラー

これらの関数は常に成功する。  

準拠

POSIX.1-2001, POSIX.1-2008, 4.3BSD.  

注意

元々の Linux の getgid() と getegid() システムコールは 16 ビットのグループ ID だけに対応していた。 その後、Linux 2.4 で、32 ビットの ID に対応した getgid32() と getegid32() が追加された。 glibc の getgid() と getegid() のラッパー関数は カーネルバージョンによるこの違いを吸収している。

On Alpha, instead of a pair of getgid() and getegid() system calls, a single getxgid() system call is provided, which returns a pair of real and effective GIDs. The glibc getgid() and getegid() wrapper functions transparently deal with this. See syscall(2) for details regarding register mapping.  

関連項目

getresgid(2), setgid(2), setregid(2), credentials(7)  

この文書について

この man ページは Linux man-pages プロジェクトのリリース 5.10 の一部である。プロジェクトの説明とバグ報告に関する情報は https://www.kernel.org/doc/man-pages/ に書かれている。

関連キーワード

getgid, getegid, GETGID, グループ, pages, プロセス, プロジェクト, system, 対応, 注意

Linux マニュアル 一覧

[man1] [man2] [man3] [man4] [man5] [man6] [man7] [man8]
[a] [b] [c] [d] [e] [f] [g] [h] [i] [j] [k] [l] [m] [n] [o] [p] [q] [r] [s] [t] [u] [v] [w] [x] [y] [z]

 

Index

名前
書式
説明
エラー
準拠
注意
関連項目
この文書について

This document was created by man2html, using the manual pages.
Time: 12:08:51 GMT, June 11, 2022