The manual
ginnOS
The reference: libc, the libraries and the kernel
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
14typedef __SIZE_TYPE__ size_t;
15typedef __PTRDIFF_TYPE__ ssize_t;
16typedef int pid_t;
17typedef unsigned int uid_t;
18typedef unsigned int gid_t;
19typedef unsigned int mode_t;
20typedef __INT64_TYPE__ off_t;
21typedef unsigned int ino_t;
22typedef unsigned int dev_t;
23typedef unsigned int nlink_t;
24typedef unsigned int blksize_t;
25typedef unsigned int blkcnt_t;
26typedef long time_t;
27typedef long suseconds_t; // microseconds (struct timeval)
28typedef unsigned int id_t; // a pid, group or user id (getpriority)
29typedef long clock_t;
__INT64_TYPE__ off_t
Definition types.h:20
__PTRDIFF_TYPE__ ssize_t
Definition types.h:15
int pid_t
Definition types.h:16
long clock_t
Definition types.h:29
unsigned int blksize_t
Definition types.h:24
unsigned int uid_t
Definition types.h:17
unsigned int blkcnt_t
Definition types.h:25
unsigned int gid_t
Definition types.h:18
long time_t
Definition types.h:26
unsigned int id_t
Definition types.h:28
unsigned int dev_t
Definition types.h:22
unsigned int ino_t
Definition types.h:21
__SIZE_TYPE__ size_t
Definition types.h:14
unsigned int mode_t
Definition types.h:19
unsigned int nlink_t
Definition types.h:23
long suseconds_t
Definition types.h:27