FreeNOS
types.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2009 Niek Linnenbank
3  *
4  * This program is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation, either version 3 of the License, or
7  * (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program. If not, see <http://www.gnu.org/licenses/>.
16  */
17 
18 #ifndef __LIBPOSIX_TYPES_H
19 #define __LIBPOSIX_TYPES_H
20 
21 #include <Types.h>
22 
32 typedef ProcessID pid_t;
33 
35 typedef Size size_t;
36 
38 typedef slong ssize_t;
39 
41 typedef DeviceID dev_t;
42 
44 typedef uint ino_t;
45 
47 typedef uint mode_t;
48 
50 typedef u16 uid_t;
51 
53 typedef u16 gid_t;
54 
56 typedef Size nlink_t;
57 
59 typedef sint off_t;
60 
62 typedef sint blkcnt_t;
63 
65 typedef sint blksize_t;
66 
68 typedef u64 time_t;
69 
75 #endif /* __LIBPOSIX_TYPES_H */
size_t
Size size_t
Used for sizes of objects.
Definition: types.h:35
off_t
sint off_t
Used for file sizes.
Definition: types.h:59
gid_t
u16 gid_t
Used for group IDs.
Definition: types.h:53
nlink_t
Size nlink_t
Used for link counts.
Definition: types.h:56
Types.h
ProcessID
u32 ProcessID
Process Identification Number.
Definition: Types.h:140
mode_t
uint mode_t
Used for some file attributes.
Definition: types.h:47
uint
unsigned int uint
Unsigned integer number.
Definition: Types.h:44
time_t
u64 time_t
Used for time in seconds.
Definition: types.h:68
u64
unsigned long long u64
Unsigned 64-bit number.
Definition: Types.h:50
slong
signed long slong
Signed long number.
Definition: Types.h:74
uid_t
u16 uid_t
Used for user IDs.
Definition: types.h:50
u16
unsigned short u16
Unsigned 16-bit number.
Definition: Types.h:56
ino_t
uint ino_t
Used for file serial numbers.
Definition: types.h:44
Size
unsigned int Size
Any sane size indicator cannot go negative.
Definition: Types.h:128
pid_t
ProcessID pid_t
Used for process IDs and process group IDs.
Definition: types.h:32
ssize_t
slong ssize_t
Used for a count of bytes or an error indication.
Definition: types.h:38
sint
signed int sint
Signed integer number.
Definition: Types.h:71
DeviceID
Describes a device ID number.
Definition: Types.h:145
dev_t
DeviceID dev_t
Used for device IDs.
Definition: types.h:41
blkcnt_t
sint blkcnt_t
Used for file block counts.
Definition: types.h:62
blksize_t
sint blksize_t
Used for block sizes.
Definition: types.h:65