diff options
author | Rich Felker <dalias@aerifal.cx> | 2011-02-15 00:33:23 -0500 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2011-02-15 00:33:23 -0500 |
commit | 1355fdca7cb923c93f9011d8e9dcf49e1a67e537 (patch) | |
tree | bdff256e69dbeb5b5fcab7a2afc549d496d956f0 /arch/i386/bits/limits.h | |
parent | 8f4865c8d25e508154a1cb89291f79489a4b3b4c (diff) | |
download | musl-1355fdca7cb923c93f9011d8e9dcf49e1a67e537.tar.gz musl-1355fdca7cb923c93f9011d8e9dcf49e1a67e537.tar.bz2 musl-1355fdca7cb923c93f9011d8e9dcf49e1a67e537.tar.xz musl-1355fdca7cb923c93f9011d8e9dcf49e1a67e537.zip |
preparing build system to handle ports - step 1
Diffstat (limited to 'arch/i386/bits/limits.h')
-rw-r--r-- | arch/i386/bits/limits.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/arch/i386/bits/limits.h b/arch/i386/bits/limits.h new file mode 100644 index 00000000..f5778579 --- /dev/null +++ b/arch/i386/bits/limits.h @@ -0,0 +1,33 @@ +#if defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) \ + || defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) +#define PIPE_BUF 4096 +#define PAGESIZE 4096 +#define PAGE_SIZE PAGESIZE +#define FILESIZEBITS 64 +#define NAME_MAX 255 +#define SYMLINK_MAX 255 +#define PATH_MAX 4096 +#define NZERO 20 +#define NGROUPS_MAX 32 +#define ARG_MAX 131072 +#define IOV_MAX 1024 +#define SYMLOOP_MAX 40 +#define WORD_BIT 32 +#define LONG_BIT 32 +#endif + +#define SHRT_MIN (-1-0x7fff) +#define SHRT_MAX 0x7fff +#define USHRT_MAX 0xffff + +#define INT_MIN (-1-0x7fffffff) +#define INT_MAX 0x7fffffff +#define UINT_MAX 0xffffffff + +#define LONG_MIN (-1-0x7fffffffL) +#define LONG_MAX 0x7fffffffL +#define ULONG_MAX 0xffffffffL + +#define LLONG_MIN (-1-0x7fffffffffffffffLL) +#define LLONG_MAX 0x7fffffffffffffffLL +#define ULLONG_MAX 0xffffffffffffffffULL |