Scroll to navigation

GETGID(2) Manual do Programador do Linux GETGID(2)

NOME

getgid, getegid - obtém a identidade do grupo

SINOPSE

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

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

DESCRIÇÃO

getgid() returns the real group ID of the calling process.

getegid() returns the effective group ID of the calling process.

ERROS

Estas funções são sempre bem sucedidas.

DE ACORDO COM

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

NOTAS

The original Linux getgid() and getegid() system calls supported only 16-bit group IDs. Subsequently, Linux 2.4 added getgid32() and getegid32(), supporting 32-bit IDs. The glibc getgid() and getegid() wrapper functions transparently deal with the variations across kernel versions.

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.

VEJA TAMBÉM

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

COLOFÃO

Esta página faz parte da versão 5.10 do projeto Linux man-pages. Uma descrição do projeto, informações sobre relatórios de bugs e a versão mais recente desta página podem ser encontradas em https://www.kernel.org/doc/man-pages/.

TRADUÇÃO

A tradução para português brasileiro desta página man foi criada porAndré Luiz Fassone <lonely_wolf@ig.com.br>eRicardo C.O.Freitas <english.quest@best-service.com>

Esta tradução é uma documentação livre; leia aLicença Pública Geral GNU Versão 3ou posterior para as condições de direitos autorais.Nenhuma responsabilidade é aceita.

Se você encontrar algum erro na tradução desta página de manual,envie um e-mail paraa lista de discussão de tradutores.

6 março 2019 Linux