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
33
35typedef Size size_t;
36
38typedef slong ssize_t;
39
42
44typedef uint ino_t;
45
47typedef uint mode_t;
48
50typedef u16 uid_t;
51
53typedef u16 gid_t;
54
56typedef Size nlink_t;
57
59typedef sint off_t;
60
62typedef sint blkcnt_t;
63
66
68typedef u64 time_t;
69
75#endif /* __LIBPOSIX_TYPES_H */
DeviceID dev_t
Used for device IDs.
Definition types.h:41
uint ino_t
Used for file serial numbers.
Definition types.h:44
ProcessID pid_t
Used for process IDs and process group IDs.
Definition types.h:32
Size nlink_t
Used for link counts.
Definition types.h:56
u64 time_t
Used for time in seconds.
Definition types.h:68
slong ssize_t
Used for a count of bytes or an error indication.
Definition types.h:38
uint mode_t
Used for some file attributes.
Definition types.h:47
sint off_t
Used for file sizes.
Definition types.h:59
u16 gid_t
Used for group IDs.
Definition types.h:53
u16 uid_t
Used for user IDs.
Definition types.h:50
Size size_t
Used for sizes of objects.
Definition types.h:35
sint blksize_t
Used for block sizes.
Definition types.h:65
sint blkcnt_t
Used for file block counts.
Definition types.h:62
u32 ProcessID
Process Identification Number.
Definition Types.h:140
unsigned int uint
Unsigned integer number.
Definition Types.h:44
unsigned short u16
Unsigned 16-bit number.
Definition Types.h:56
unsigned int Size
Any sane size indicator cannot go negative.
Definition Types.h:128
unsigned long long u64
Unsigned 64-bit number.
Definition Types.h:50
signed int sint
Signed integer number.
Definition Types.h:71
signed long slong
Signed long number.
Definition Types.h:74
Describes a device ID number.
Definition Types.h:146