X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fapi%2Fsys_mman.c;h=62b17229284359c70454e881be9c5eb09835b72d;hb=38d7f0fab3f1c3a0fb702c25b32560fb1e1ed2b7;hp=73e53c631d48b9a68726a3479aee4ad54e8b9d00;hpb=3c60f40d564ec78f1403eff277095640aed3f01c;p=libc-test diff --git a/src/api/sys_mman.c b/src/api/sys_mman.c index 73e53c6..62b1722 100644 --- a/src/api/sys_mman.c +++ b/src/api/sys_mman.c @@ -1,4 +1,5 @@ #include +#include "options.h" #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) -#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) @@ -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;} +#ifdef POSIX_SHARED_MEMORY_OBJECTS {int(*p)(const char*,int,mode_t) = shm_open;} {int(*p)(const char*) = shm_unlink;} +#endif }