diff options
author | midipix <writeonce@midipix.org> | 2015-04-05 16:48:11 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2015-04-05 16:48:11 -0400 |
commit | 20a5ca45ef2f5716e8f2dea42c7e8a6b3367619f (patch) | |
tree | c8461f68b5f3bf375e31660eb14fbb7777e2f822 /arch/nt32/bits/limits.h | |
parent | 2a9a46e0b0a1f7e0e21b1152aa2529d94c57db35 (diff) | |
download | mmglue-20a5ca45ef2f5716e8f2dea42c7e8a6b3367619f.tar.bz2 mmglue-20a5ca45ef2f5716e8f2dea42c7e8a6b3367619f.tar.xz |
nt32/bits: initial commit.
these header files should be kept in sync with their linux x86_64 counterparts,
with three minor exceptions:
1) page size (65536)
2) jmp_buf (8 pointers)
3) TIOCGPTN and TIOCSPTLCK (normal sequence)
signed-off by Z. Gilboa; see copying.midipix (9cd0746c) for additional information.
Diffstat (limited to 'arch/nt32/bits/limits.h')
-rw-r--r-- | arch/nt32/bits/limits.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/nt32/bits/limits.h b/arch/nt32/bits/limits.h new file mode 100644 index 0000000..bbac211 --- /dev/null +++ b/arch/nt32/bits/limits.h @@ -0,0 +1,8 @@ +#if defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) \ + || defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE) +#define PAGE_SIZE 65536 +#define LONG_BIT 32 +#endif + +#define LONG_MAX 0x7fffffffL +#define LLONG_MAX 0x7fffffffffffffffLL |