The manual
ginnOS
The reference: libc, the libraries and the kernel
Toggle main menu visibility
Loading...
Searching...
No Matches
types.h
Go to the documentation of this file.
1
#pragma once
2
3
/**
4
* @file sys/types.h
5
* @brief basic system types. the other headers take their types from here,
6
* so each type has one definition.
7
*
8
* the sizes that the kernel ABI fixes (struct stat, struct timespec) are the
9
* same on i686 and x86_64: the ids and modes are 32 bits, file offsets
10
* (off_t) 64 bits; time_t and clock_t are long (the width of the kernel's
11
* long).
12
*/
13
14
typedef
__SIZE_TYPE__
size_t
;
15
typedef
__PTRDIFF_TYPE__
ssize_t
;
16
typedef
int
pid_t
;
17
typedef
unsigned
int
uid_t
;
18
typedef
unsigned
int
gid_t
;
19
typedef
unsigned
int
mode_t
;
20
typedef
__INT64_TYPE__
off_t
;
21
typedef
unsigned
int
ino_t
;
22
typedef
unsigned
int
dev_t
;
23
typedef
unsigned
int
nlink_t
;
24
typedef
unsigned
int
blksize_t
;
25
typedef
unsigned
int
blkcnt_t
;
26
typedef
long
time_t
;
27
typedef
long
suseconds_t
;
// microseconds (struct timeval)
28
typedef
unsigned
int
id_t
;
// a pid, group or user id (getpriority)
29
typedef
long
clock_t
;
off_t
__INT64_TYPE__ off_t
Definition
types.h:20
ssize_t
__PTRDIFF_TYPE__ ssize_t
Definition
types.h:15
pid_t
int pid_t
Definition
types.h:16
clock_t
long clock_t
Definition
types.h:29
blksize_t
unsigned int blksize_t
Definition
types.h:24
uid_t
unsigned int uid_t
Definition
types.h:17
blkcnt_t
unsigned int blkcnt_t
Definition
types.h:25
gid_t
unsigned int gid_t
Definition
types.h:18
time_t
long time_t
Definition
types.h:26
id_t
unsigned int id_t
Definition
types.h:28
dev_t
unsigned int dev_t
Definition
types.h:22
ino_t
unsigned int ino_t
Definition
types.h:21
size_t
__SIZE_TYPE__ size_t
Definition
types.h:14
mode_t
unsigned int mode_t
Definition
types.h:19
nlink_t
unsigned int nlink_t
Definition
types.h:23
suseconds_t
long suseconds_t
Definition
types.h:27
src
libc
include
sys
types.h
Generated by
1.18.0