The sys/types.h header file defines a collection of typedef symbols
and structures.
Table 1. sys/types.h: _OE_SOCKETS
or _ALL_SOURCEu_char |
unsigned char |
u_int |
unsigned int |
ushort |
unsigned short |
u_short |
unsigned short |
u_long |
unsigned long |
Table 2. sys/types.h:
_OE_SOCKETS or _XOPEN_SOURCE_EXTENDED 1in_addr_t |
Internet address |
ip_addr_t |
Internet address |
caddr_t |
Used for message data pointer |
Table 3. sys/types.h:
_OPEN_THREADSpthread_t |
Identify a thread |
pthread_attr_t |
Identify a thread attribute object |
pthread_mutex_t |
Mutexes |
pthread_mutexattr_t |
Identify a mutex attribute object |
pthread_cond_t |
Condition variables |
pthread_condattr_t |
Identify a condition attribute object |
pthread_key_t |
Thread-specific data keys |
pthread_once_t |
Dynamic package initialization |
Table 4. sys/types.h:
_POSIX_SOURCEdev_t |
Device numbers |
gid_t |
Group IDs |
ino_t |
File serial numbers |
mode_t |
Some file attributes |
nlink_t |
Link counts |
off_t |
File sizes, long |
pid_t |
Process IDs and process group ids |
size_t |
unsigned long |
ssize_t |
Signed long |
uid_t |
user IDs |
time_t |
Time values |
clock_t |
Time values, int |
sigset_t |
Signal set |
cc_t |
cc_t |
tty control chars |
|
speed_t |
tty baud rate |
tcflag_t |
tty modes |
mtm_t |
Mount requests |
rdev_t |
Device numbers |
Table 5. sys/types.h:
_XOPEN_SOURCEkey_t |
Interprocess communications, long |
Table 6. sys/types.h:
_XOPEN_SOURCE 500blksize_t |
Block sizes |
blkcnt_t |
File block counts |
fsblkcnt_t |
Filesystem block counts |
fsfilcnt_t |
File serial numbers |
suseconds_t |
Time values in range [-1,1,000,000] |
Table 7. sys/types.h:
_XOPEN_SOURCE_EXTENDED 1id_t |
General identifier, can contain a pid_t or a gid_t |
useconds_t |
Microseconds |
sa_family_t |
Address family |
in_port_t |
AF_INET port |