mips: FIx clone3 implementation (BZ 31325)
[glibc.git] / sysdeps / unix / sysv / linux / mips / mmap_info.h
blob07c9e3a0443b8f8cc9cde7847c05d71b8d284ef9
1 /* mips64n32 uses __NR_mmap for mmap64 while still having sizeof (off_t)
2 smaller than sizeof (off64_t). So it allows mapping large offsets
3 using mmap64 than 32-bit archs which uses __NR_mmap2. */
5 static inline uint64_t
6 mmap64_maximum_offset (long int page_shift)
8 #if _MIPS_SIM == _ABIN32 || _MIPS_SIM == _ABI64
9 return UINT64_MAX;
10 #else
11 return (UINT64_C(1) << (page_shift + (8 * sizeof (off_t)))) - 1;
12 #endif