X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=include%2Fsys%2Fmman.h;h=0fa32e6a0aaa8d69295ca4f7465d7e55a59e3764;hb=231b9d1880bf686c0db918cea16c355f2d6598fc;hp=6aede8bd9a7131b74ebee8202b2802579e1325ac;hpb=0b44a0315b47dd8eced9f3b7f31580cf14bbfc01;p=musl diff --git a/include/sys/mman.h b/include/sys/mman.h index 6aede8bd..0fa32e6a 100644 --- a/include/sys/mman.h +++ b/include/sys/mman.h @@ -4,6 +4,8 @@ extern "C" { #endif +#include + #define __NEED_mode_t #define __NEED_size_t #define __NEED_off_t @@ -25,12 +27,22 @@ int munlock (const void *, size_t); int mlockall (int); int munlockall (void); -/* linux extension */ +#ifdef _GNU_SOURCE void *mremap (void *, size_t, size_t, int, ...); +#endif + +#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE) +int madvise (void *, size_t, int); +#endif int shm_open (const char *, int, mode_t); int shm_unlink (const char *); +#if defined(_LARGEFILE64_SOURCE) || defined(_GNU_SOURCE) +#define mmap64 mmap +#define off64_t off_t +#endif + #ifdef __cplusplus } #endif