mirror of
git://sourceware.org/git/glibc.git
synced 2025-02-23 13:09:58 +08:00
Reviewing the sets of headers for which conformtest has expectations for various standards showed up cases where headers had expectations for standards not including those headers, or were missing expectations for a standard that did include the header. This patch fixes easy cases of this (largely disabling tests for standards for which they are inapplicable). Tested x86_64. * conform/data/aio.h-data [XPG3 || XPG4]: Disable whole file. * conform/data/arpa/inet.h-data [XPG3]: Likewise. * conform/data/dlfcn.h-data [XPG3 || XPG4]: Likewise. * conform/data/fmtmsg.h-data [XPG3]: Likewise. * conform/data/libgen.h-data [XPG3]: Likewise. * conform/data/mqueue.h-data [XPG3 || XPG4]: Likewise. * conform/data/ndbm.h-data [XPG3]: Likewise. * conform/data/net/if.h-data [XPG3 || XPG4 || UNIX98]: Likewise. * conform/data/netdb.h-data [XPG3]: Likewise. * conform/data/netinet/in.h-data [XPG3]: Likewise. * conform/data/poll.h-data [XPG3]: Likewise. * conform/data/spawn.h-data [XPG3 || XPG4 || UNIX98]: Likewise. * conform/data/strings.h-data [XPG3]: Likewise. * conform/data/stropts.h-data [XPG3]: Likewise. * conform/data/sys/mman.h-data [XPG3]: Likewise. * conform/data/sys/resource.h-data [XPG3]: Likewise. * conform/data/sys/select.h-data [XPG3 || XPG4 || UNIX98]: Likewise. * conform/data/sys/statvfs.h-data [XPG3]: Likewise. * conform/data/sys/time.h-data [XPG3]: Likewise. * conform/data/sys/timeb.h-data [XPG3]: Likewise. * conform/data/sys/uio.h-data [XPG3]: Likewise. * conform/data/sys/un.h-data [XPG3]: Likewise. * conform/data/syslog.h-data [XPG3]: Likewise. * conform/data/ucontext.h-data [XPG3]: Likewise. * conform/data/utmpx.h-data [XPG3]: Likewise. * conform/data/varargs.h-data [UNIX98]: Enable file.
63 lines
1.6 KiB
Plaintext
63 lines
1.6 KiB
Plaintext
#if !defined ISO && !defined ISO99 && !defined ISO11 && !defined XPG3
|
|
constant PROT_READ
|
|
constant PROT_WRITE
|
|
constant PROT_EXEC
|
|
constant PROT_NONE
|
|
|
|
constant MAP_SHARED
|
|
constant MAP_PRIVATE
|
|
constant MAP_FIXED
|
|
|
|
constant MS_ASYNC
|
|
constant MS_SYNC
|
|
constant MS_INVALIDATE
|
|
|
|
constant MCL_CURRENT
|
|
constant MCL_FUTURE
|
|
|
|
constant MAP_FAILED
|
|
|
|
# if !defined POSIX && !defined XPG3 && !defined XPG4 && !defined UNIX98
|
|
constant POSIX_MADV_NORMAL
|
|
constant POSIX_MADV_SEQUENTIAL
|
|
constant POSIX_MADV_RANDOM
|
|
constant POSIX_MADV_WILLNEED
|
|
constant POSIX_MADV_DONTNEED
|
|
|
|
optional-constant POSIX_TYPED_MEM_ALLOCATE
|
|
optional-constant POSIX_TYPED_MEM_ALLOCATE_CONTIG
|
|
optional-constant POSIX_TYPED_MEM_MAP_ALLOCATABLE
|
|
|
|
type mode_t
|
|
|
|
optional-type {struct posix_typedmem_info}
|
|
optional-element {struct posix_typedmem_info} size_t posix_tmi_length
|
|
|
|
function int posix_madvise (void*, size_t, int)
|
|
optional-function int posix_mem_offset (const void*, size_t, off_t*, size_t*, int*)
|
|
optional-function int posix_typed_mem_get_info (int, struct posix_typed_mem_info*)
|
|
optional-function int posix_typed_mem_open (const char*, int, int)
|
|
# endif
|
|
|
|
type size_t
|
|
type off_t
|
|
|
|
function int mlock (const void*, size_t)
|
|
function int mlockall (int)
|
|
function {void*} mmap (void*, size_t, int, int, int, off_t)
|
|
function int mprotect (void*, size_t, int)
|
|
function int msync (void*, size_t, int)
|
|
function int munlock (const void*, size_t)
|
|
function int munlockall (void)
|
|
function int munmap (void*, size_t)
|
|
function int shm_open (const char*, int, mode_t)
|
|
function int shm_unlink (const char*)
|
|
|
|
allow shm_*
|
|
allow MAP_*
|
|
allow MCL_*
|
|
allow MS_*
|
|
allow PROT_*
|
|
allow *_t
|
|
#endif
|