$manlookup

uid_t

(3type)

process/user/group identifier

Library functionsmanpages-dev 6.9.1-1also documents pid_t, gid_t, id_t
#include <sys/types.h> typedef /* ... */ pid_t; typedef /* ... */ uid_t; typedef /* ... */ gid_t; typedef /* ... */ id_t;

LIBRARY

Standard C library (libc)

DESCRIPTION

pid_t is a type used for storing process IDs, process group IDs, and session IDs. It is a signed integer type.

uid_t is a type used to hold user IDs. It is an integer type.

gid_t is a type used to hold group IDs. It is an integer type.

id_t is a type used to hold a general identifier. It is an integer type that can be used to contain a pid_t, uid_t, or gid_t.

STANDARDS

POSIX.1-2008.

HISTORY

POSIX.1-2001.

NOTES

The following headers also provide pid_t: <fcntl.h>, <sched.h>, <signal.h>, <spawn.h>, <sys/msg.h>, <sys/sem.h>, <sys/shm.h>, <sys/wait.h>, <termios.h>, <time.h>, <unistd.h>, and <utmpx.h>.

The following headers also provide uid_t: <pwd.h>, <signal.h>, <stropts.h>, <sys/ipc.h>, <sys/stat.h>, and <unistd.h>.

The following headers also provide gid_t: <grp.h>, <pwd.h>, <signal.h>, <stropts.h>, <sys/ipc.h>, <sys/stat.h>, and <unistd.h>.

The following header also provides id_t: <sys/resource.h>.

See also