projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
_GNU_SOURCE is supposed to imply _LARGEFILE64_SOURCE
[musl]
/
include
/
sys
/
mman.h
diff --git
a/include/sys/mman.h
b/include/sys/mman.h
index
6aede8b
..
5cfafbe
100644
(file)
--- a/
include/sys/mman.h
+++ b/
include/sys/mman.h
@@
-25,12
+25,22
@@
int munlock (const void *, size_t);
int mlockall (int);
int munlockall (void);
int mlockall (int);
int munlockall (void);
-/* linux extension */
+#ifdef _GNU_SOURCE
void *mremap (void *, size_t, size_t, int, ...);
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 *);
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
#ifdef __cplusplus
}
#endif