projects
/
libc-test
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
math: only report at most one <2ulp error for acosh and asinh
[libc-test]
/
src
/
api
/
sys_mman.c
diff --git
a/src/api/sys_mman.c
b/src/api/sys_mman.c
index
73e53c6
..
62b1722
100644
(file)
--- a/
src/api/sys_mman.c
+++ b/
src/api/sys_mman.c
@@
-1,4
+1,5
@@
#include <sys/mman.h>
#include <sys/mman.h>
+#include "options.h"
#define T(t) (t*)0;
#define F(t,n) {t *y = &x.n;}
#define C(n) switch(n){case n:;}
#define T(t) (t*)0;
#define F(t,n) {t *y = &x.n;}
#define C(n) switch(n){case n:;}
@@
-29,7
+30,7
@@
C(POSIX_MADV_RANDOM)
C(POSIX_MADV_SEQUENTIAL)
C(POSIX_MADV_WILLNEED)
C(POSIX_MADV_SEQUENTIAL)
C(POSIX_MADV_WILLNEED)
-#ifdef
X_TYM
+#ifdef
POSIX_TYPED_MEMORY_OBJECTS
C(POSIX_TYPED_MEM_ALLOCATE)
C(POSIX_TYPED_MEM_ALLOCATE_CONTIG)
C(POSIX_TYPED_MEM_MAP_ALLOCATABLE)
C(POSIX_TYPED_MEM_ALLOCATE)
C(POSIX_TYPED_MEM_ALLOCATE_CONTIG)
C(POSIX_TYPED_MEM_MAP_ALLOCATABLE)
@@
-53,6
+54,8
@@
int(*p)(const char*,int,int) = posix_typed_mem_open;
{int(*p)(void) = munlockall;}
{int(*p)(void*,size_t) = munmap;}
{int(*p)(void*,size_t,int) = posix_madvise;}
{int(*p)(void) = munlockall;}
{int(*p)(void*,size_t) = munmap;}
{int(*p)(void*,size_t,int) = posix_madvise;}
+#ifdef POSIX_SHARED_MEMORY_OBJECTS
{int(*p)(const char*,int,mode_t) = shm_open;}
{int(*p)(const char*) = shm_unlink;}
{int(*p)(const char*,int,mode_t) = shm_open;}
{int(*p)(const char*) = shm_unlink;}
+#endif
}
}