mount: -debug stuff
[meinos.git] / include / limits.h
blobfa6d5ebef994ee5f08186d5baac30a80a43bea01
1 /*
2 meinOS - A unix-like x86 microkernel operating system
3 Copyright (C) 2008 Janosch Gräf <janosch.graef@gmx.net>
5 This program is free software: you can redistribute it and/or modify
6 it under the terms of the GNU Lesser General Public License as published by
7 the Free Software Foundation, either version 3 of the License, or
8 (at your option) any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU Lesser General Public License for more details.
15 You should have received a copy of the GNU Lesser General Public License
16 along with this program. If not, see <http://www.gnu.org/licenses/>.
19 #ifndef _LIMITS_H_
20 #define _LIMITS_H_
22 // only userspace
23 #define ATEXIT_MAX (-1)
24 #define LOGIN_NAME_MAX 256
25 #define HOST_NAME_MAX 64
26 #define LOGIN_NAME_MAX 256
28 // both
29 #define NAME_MAX 256
30 #define PATH_MAX 1024
32 #define SCHAR_MIN (-128)
33 #define SCHAR_MAX 127
34 #define UCHAR_MAX 255
35 #define CHAR_MAX SCHAR_MAX
36 #define CHAR_MIN SCHAR_MIN
37 #define CHAR_BIT 8
39 #define SHRT_MIN (-32768)
40 #define SHRT_MAX 32767
41 #define USHRT_MAX 65535
43 #define LONG_MAX 0x7FFFFFFF
44 #define LONG_MIN (-0x80000000)
46 #define INT_MAX 0x7FFFFFFF
47 #define INT_MIN (-0x80000000)
49 #define ULONG_MAX 0xFFFFFFFF
50 #define UINT_MAX 0xFFFFFFFF
52 #define PAGESIZE 4096
53 #define PAGE_SIZE PAGESIZE
55 // stdio.h
56 #define FILENAME_MAX PATH_MAX
57 #define FOPEN_MAX (-1)
59 // sys/uio.h
60 #define IOV_MAX 4096
62 #endif