conformtest: Fix XPG standard naming.

The conform/ tests test -D_XOPEN_SOURCE under the name "XPG3", and
-D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED under the name "XPG4".

That naming is misleading.  _XOPEN_SOURCE_EXTENDED actually means
XPG4.2, including UX-shaded interfaces.  _XOPEN_SOURCE actually means
XPG4, or XPG4.2 without UX-shaded interfaces.  (Prior XPG versions
also used _XOPEN_SOURCE, but without any versioning of the values of
the macro, so XPG4.2 without UX-shaded interfaces is the only sensible
set of interfaces for glibc to expose given _XOPEN_SOURCE=1 without
_XOPEN_SOURCE_EXTENDED defined.)

This patch fixes the naming in the conform/ tests, so that what is now
called XPG4 is changed to XPG42, and what is now called XPG3 is
changed to XPG4.

Tested for x86_64 (and verified the complete set of expectations is
unchanged by the patch beyond the intended renaming).

	* conform/GlibcConform.pm (XPG4): Rename standard to XPG42.
	(XPG3): Rename standard to XPG4.
	* conform/Makefile: Likewise.
	* conform/list-header-symbols.pl: Likewise.
	* conform/data/aio.h-data: Likewise.
	* conform/data/arpa/inet.h-data: Likewise.
	* conform/data/complex.h-data: Likewise.
	* conform/data/ctype.h-data: Likewise.
	* conform/data/dlfcn.h-data: Likewise.
	* conform/data/fcntl.h-data: Likewise.
	* conform/data/fenv.h-data: Likewise.
	* conform/data/float.h-data: Likewise.
	* conform/data/fmtmsg.h-data: Likewise.
	* conform/data/ftw.h-data: Likewise.
	* conform/data/grp.h-data: Likewise.
	* conform/data/inttypes.h-data: Likewise.
	* conform/data/iso646.h-data: Likewise.
	* conform/data/langinfo.h-data: Likewise.
	* conform/data/libgen.h-data: Likewise.
	* conform/data/limits.h-data: Likewise.
	* conform/data/locale.h-data: Likewise.
	* conform/data/math.h-data: Likewise.
	* conform/data/mqueue.h-data: Likewise.
	* conform/data/ndbm.h-data: Likewise.
	* conform/data/net/if.h-data: Likewise.
	* conform/data/netdb.h-data: Likewise.
	* conform/data/netinet/in.h-data: Likewise.
	* conform/data/poll.h-data: Likewise.
	* conform/data/pthread.h-data: Likewise.
	* conform/data/pwd.h-data: Likewise.
	* conform/data/sched.h-data: Likewise.
	* conform/data/search.h-data: Likewise.
	* conform/data/semaphore.h-data: Likewise.
	* conform/data/signal.h-data: Likewise.
	* conform/data/spawn.h-data: Likewise.
	* conform/data/stdbool.h-data: Likewise.
	* conform/data/stdint.h-data: Likewise.
	* conform/data/stdio.h-data: Likewise.
	* conform/data/stdlib.h-data: Likewise.
	* conform/data/string.h-data: Likewise.
	* conform/data/strings.h-data: Likewise.
	* conform/data/stropts.h-data: Likewise.
	* conform/data/sys/mman.h-data: Likewise.
	* conform/data/sys/resource.h-data: Likewise.
	* conform/data/sys/select.h-data: Likewise.
	* conform/data/sys/socket.h-data: Likewise.
	* conform/data/sys/stat.h-data: Likewise.
	* conform/data/sys/statvfs.h-data: Likewise.
	* conform/data/sys/time.h-data: Likewise.
	* conform/data/sys/timeb.h-data: Likewise.
	* conform/data/sys/types.h-data: Likewise.
	* conform/data/sys/uio.h-data: Likewise.
	* conform/data/sys/un.h-data: Likewise.
	* conform/data/sys/wait.h-data: Likewise.
	* conform/data/syslog.h-data: Likewise.
	* conform/data/termios.h-data: Likewise.
	* conform/data/tgmath.h-data: Likewise.
	* conform/data/time.h-data: Likewise.
	* conform/data/ucontext.h-data: Likewise.
	* conform/data/unistd.h-data: Likewise.
	* conform/data/utmpx.h-data: Likewise.
	* conform/data/varargs.h-data: Likewise.
	* conform/data/wchar.h-data: Likewise.
	* conform/data/wctype.h-data: Likewise.
This commit is contained in:
Joseph Myers 2017-04-27 20:29:35 +00:00
parent 6ef8a2c76a
commit 0516e24d18
64 changed files with 291 additions and 224 deletions

View File

@ -1,3 +1,70 @@
2017-04-27 Joseph Myers <joseph@codesourcery.com>
* conform/GlibcConform.pm (XPG4): Rename standard to XPG42.
(XPG3): Rename standard to XPG4.
* conform/Makefile: Likewise.
* conform/list-header-symbols.pl: Likewise.
* conform/data/aio.h-data: Likewise.
* conform/data/arpa/inet.h-data: Likewise.
* conform/data/complex.h-data: Likewise.
* conform/data/ctype.h-data: Likewise.
* conform/data/dlfcn.h-data: Likewise.
* conform/data/fcntl.h-data: Likewise.
* conform/data/fenv.h-data: Likewise.
* conform/data/float.h-data: Likewise.
* conform/data/fmtmsg.h-data: Likewise.
* conform/data/ftw.h-data: Likewise.
* conform/data/grp.h-data: Likewise.
* conform/data/inttypes.h-data: Likewise.
* conform/data/iso646.h-data: Likewise.
* conform/data/langinfo.h-data: Likewise.
* conform/data/libgen.h-data: Likewise.
* conform/data/limits.h-data: Likewise.
* conform/data/locale.h-data: Likewise.
* conform/data/math.h-data: Likewise.
* conform/data/mqueue.h-data: Likewise.
* conform/data/ndbm.h-data: Likewise.
* conform/data/net/if.h-data: Likewise.
* conform/data/netdb.h-data: Likewise.
* conform/data/netinet/in.h-data: Likewise.
* conform/data/poll.h-data: Likewise.
* conform/data/pthread.h-data: Likewise.
* conform/data/pwd.h-data: Likewise.
* conform/data/sched.h-data: Likewise.
* conform/data/search.h-data: Likewise.
* conform/data/semaphore.h-data: Likewise.
* conform/data/signal.h-data: Likewise.
* conform/data/spawn.h-data: Likewise.
* conform/data/stdbool.h-data: Likewise.
* conform/data/stdint.h-data: Likewise.
* conform/data/stdio.h-data: Likewise.
* conform/data/stdlib.h-data: Likewise.
* conform/data/string.h-data: Likewise.
* conform/data/strings.h-data: Likewise.
* conform/data/stropts.h-data: Likewise.
* conform/data/sys/mman.h-data: Likewise.
* conform/data/sys/resource.h-data: Likewise.
* conform/data/sys/select.h-data: Likewise.
* conform/data/sys/socket.h-data: Likewise.
* conform/data/sys/stat.h-data: Likewise.
* conform/data/sys/statvfs.h-data: Likewise.
* conform/data/sys/time.h-data: Likewise.
* conform/data/sys/timeb.h-data: Likewise.
* conform/data/sys/types.h-data: Likewise.
* conform/data/sys/uio.h-data: Likewise.
* conform/data/sys/un.h-data: Likewise.
* conform/data/sys/wait.h-data: Likewise.
* conform/data/syslog.h-data: Likewise.
* conform/data/termios.h-data: Likewise.
* conform/data/tgmath.h-data: Likewise.
* conform/data/time.h-data: Likewise.
* conform/data/ucontext.h-data: Likewise.
* conform/data/unistd.h-data: Likewise.
* conform/data/utmpx.h-data: Likewise.
* conform/data/varargs.h-data: Likewise.
* conform/data/wchar.h-data: Likewise.
* conform/data/wctype.h-data: Likewise.
2017-04-26 Joseph Myers <joseph@codesourcery.com> 2017-04-26 Joseph Myers <joseph@codesourcery.com>
* scripts/build-many-glibcs.py (Context.checkout): Default gcc * scripts/build-many-glibcs.py (Context.checkout): Default gcc

View File

@ -29,8 +29,8 @@ $CFLAGS{"ISO"} = "-ansi";
$CFLAGS{"ISO99"} = "-std=c99"; $CFLAGS{"ISO99"} = "-std=c99";
$CFLAGS{"ISO11"} = "-std=c11"; $CFLAGS{"ISO11"} = "-std=c11";
$CFLAGS{"POSIX"} = "-D_POSIX_C_SOURCE=199506L -ansi"; $CFLAGS{"POSIX"} = "-D_POSIX_C_SOURCE=199506L -ansi";
$CFLAGS{"XPG3"} = "-ansi -D_XOPEN_SOURCE"; $CFLAGS{"XPG4"} = "-ansi -D_XOPEN_SOURCE";
$CFLAGS{"XPG4"} = "-ansi -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED"; $CFLAGS{"XPG42"} = "-ansi -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED";
$CFLAGS{"UNIX98"} = "-ansi -D_XOPEN_SOURCE=500"; $CFLAGS{"UNIX98"} = "-ansi -D_XOPEN_SOURCE=500";
$CFLAGS{"XOPEN2K"} = "-std=c99 -D_XOPEN_SOURCE=600"; $CFLAGS{"XOPEN2K"} = "-std=c99 -D_XOPEN_SOURCE=600";
$CFLAGS{"XOPEN2K8"} = "-std=c99 -D_XOPEN_SOURCE=700"; $CFLAGS{"XOPEN2K8"} = "-std=c99 -D_XOPEN_SOURCE=700";

View File

@ -25,7 +25,7 @@ include ../Makeconfig
conformtest-headers-data := $(wildcard data/*.h-data) \ conformtest-headers-data := $(wildcard data/*.h-data) \
$(wildcard data/*/*.h-data) $(wildcard data/*/*.h-data)
conformtest-standards := ISO ISO99 ISO11 POSIX XPG3 XPG4 UNIX98 XOPEN2K \ conformtest-standards := ISO ISO99 ISO11 POSIX XPG4 XPG42 UNIX98 XOPEN2K \
POSIX2008 XOPEN2K8 POSIX2008 XOPEN2K8
conformtest-headers-ISO := assert.h ctype.h errno.h float.h limits.h locale.h \ conformtest-headers-ISO := assert.h ctype.h errno.h float.h limits.h locale.h \
@ -43,17 +43,17 @@ conformtest-headers-POSIX := $(conformtest-headers-ISO) aio.h dirent.h \
sys/mman.h sys/stat.h sys/times.h sys/types.h \ sys/mman.h sys/stat.h sys/times.h sys/types.h \
sys/utsname.h sys/wait.h tar.h termios.h \ sys/utsname.h sys/wait.h tar.h termios.h \
unistd.h utime.h wordexp.h unistd.h utime.h wordexp.h
# Missing XPG3 expectations for: regexp.h wchar.h. # Missing XPG4 expectations for: regexp.h wchar.h.
conformtest-headers-XPG3 := $(conformtest-headers-ISO) cpio.h dirent.h \ conformtest-headers-XPG4 := $(conformtest-headers-ISO) cpio.h dirent.h \
fcntl.h fnmatch.h ftw.h glob.h grp.h iconv.h \ fcntl.h fnmatch.h ftw.h glob.h grp.h iconv.h \
langinfo.h monetary.h nl_types.h pwd.h regex.h \ langinfo.h monetary.h nl_types.h pwd.h regex.h \
search.h sys/ipc.h sys/msg.h sys/sem.h sys/shm.h \ search.h sys/ipc.h sys/msg.h sys/sem.h sys/shm.h \
sys/stat.h sys/times.h sys/types.h sys/utsname.h \ sys/stat.h sys/times.h sys/types.h sys/utsname.h \
sys/wait.h tar.h termios.h ulimit.h unistd.h \ sys/wait.h tar.h termios.h ulimit.h unistd.h \
utime.h varargs.h wordexp.h utime.h varargs.h wordexp.h
# Missing XPG4 expectations for: re_comp.h regexp.h wchar.h. # Missing XPG42 expectations for: re_comp.h regexp.h wchar.h.
# XPG4 includes XTI, but xti.h is outside the scope of these tests. # XPG42 includes XTI, but xti.h is outside the scope of these tests.
conformtest-headers-XPG4 := $(conformtest-headers-XPG3) arpa/inet.h fmtmsg.h \ conformtest-headers-XPG42 := $(conformtest-headers-XPG4) arpa/inet.h fmtmsg.h \
libgen.h ndbm.h netdb.h netinet/in.h poll.h \ libgen.h ndbm.h netdb.h netinet/in.h poll.h \
strings.h stropts.h sys/mman.h sys/resource.h \ strings.h stropts.h sys/mman.h sys/resource.h \
sys/socket.h sys/statvfs.h sys/time.h sys/timeb.h \ sys/socket.h sys/statvfs.h sys/time.h sys/timeb.h \
@ -150,25 +150,25 @@ $(conformtest-header-list-tests): $(objpfx)header-list-%.out: \
# Pre-standard C feature no longer supported by GCC (obsoleted in # Pre-standard C feature no longer supported by GCC (obsoleted in
# newer POSIX standards). # newer POSIX standards).
test-xfail-XPG3/varargs.h/conform = yes
test-xfail-XPG4/varargs.h/conform = yes test-xfail-XPG4/varargs.h/conform = yes
test-xfail-XPG42/varargs.h/conform = yes
test-xfail-UNIX98/varargs.h/conform = yes test-xfail-UNIX98/varargs.h/conform = yes
# Header not provided by glibc. # Header not provided by glibc.
test-xfail-XPG4/ndbm.h/conform = yes test-xfail-XPG42/ndbm.h/conform = yes
test-xfail-UNIX98/ndbm.h/conform = yes test-xfail-UNIX98/ndbm.h/conform = yes
test-xfail-XOPEN2K/ndbm.h/conform = yes test-xfail-XOPEN2K/ndbm.h/conform = yes
test-xfail-XOPEN2K8/ndbm.h/conform = yes test-xfail-XOPEN2K8/ndbm.h/conform = yes
# Unsorted expected failures. # Unsorted expected failures.
test-xfail-XPG3/signal.h/conform = yes
test-xfail-XPG3/sys/wait.h/conform = yes
test-xfail-XPG4/arpa/inet.h/conform = yes
test-xfail-XPG4/netdb.h/conform = yes
test-xfail-XPG4/netinet/in.h/conform = yes
test-xfail-XPG4/signal.h/conform = yes test-xfail-XPG4/signal.h/conform = yes
test-xfail-XPG4/sys/wait.h/conform = yes test-xfail-XPG4/sys/wait.h/conform = yes
test-xfail-XPG4/ucontext.h/conform = yes test-xfail-XPG42/arpa/inet.h/conform = yes
test-xfail-XPG42/netdb.h/conform = yes
test-xfail-XPG42/netinet/in.h/conform = yes
test-xfail-XPG42/signal.h/conform = yes
test-xfail-XPG42/sys/wait.h/conform = yes
test-xfail-XPG42/ucontext.h/conform = yes
test-xfail-POSIX/sys/wait.h/conform = yes test-xfail-POSIX/sys/wait.h/conform = yes
test-xfail-UNIX98/arpa/inet.h/conform = yes test-xfail-UNIX98/arpa/inet.h/conform = yes
test-xfail-UNIX98/netdb.h/conform = yes test-xfail-UNIX98/netdb.h/conform = yes
@ -223,9 +223,9 @@ linknamespace-libs-xsi = $(linknamespace-libs-posix) \
linknamespace-libs-ISO = $(linknamespace-libs-isoc) linknamespace-libs-ISO = $(linknamespace-libs-isoc)
linknamespace-libs-ISO99 = $(linknamespace-libs-isoc) linknamespace-libs-ISO99 = $(linknamespace-libs-isoc)
linknamespace-libs-ISO11 = $(linknamespace-libs-isoc) linknamespace-libs-ISO11 = $(linknamespace-libs-isoc)
linknamespace-libs-XPG3 = $(linknamespace-libs-isoc) \ linknamespace-libs-XPG4 = $(linknamespace-libs-isoc) \
$(common-objpfx)crypt/libcrypt.a $(common-objpfx)crypt/libcrypt.a
linknamespace-libs-XPG4 = $(linknamespace-libs-XPG3) linknamespace-libs-XPG42 = $(linknamespace-libs-XPG4)
linknamespace-libs-POSIX = $(linknamespace-libs-thr) linknamespace-libs-POSIX = $(linknamespace-libs-thr)
linknamespace-libs-UNIX98 = $(linknamespace-libs-xsi) linknamespace-libs-UNIX98 = $(linknamespace-libs-xsi)
linknamespace-libs-XOPEN2K = $(linknamespace-libs-xsi) linknamespace-libs-XOPEN2K = $(linknamespace-libs-xsi)
@ -255,12 +255,12 @@ $(linknamespace-header-tests): $(objpfx)%/linknamespace.out: \
# Pre-standard C feature no longer supported by GCC (obsoleted in # Pre-standard C feature no longer supported by GCC (obsoleted in
# newer POSIX standards). # newer POSIX standards).
test-xfail-XPG3/varargs.h/linknamespace = yes
test-xfail-XPG4/varargs.h/linknamespace = yes test-xfail-XPG4/varargs.h/linknamespace = yes
test-xfail-XPG42/varargs.h/linknamespace = yes
test-xfail-UNIX98/varargs.h/linknamespace = yes test-xfail-UNIX98/varargs.h/linknamespace = yes
# Header not provided by glibc. # Header not provided by glibc.
test-xfail-XPG4/ndbm.h/linknamespace = yes test-xfail-XPG42/ndbm.h/linknamespace = yes
test-xfail-UNIX98/ndbm.h/linknamespace = yes test-xfail-UNIX98/ndbm.h/linknamespace = yes
test-xfail-XOPEN2K/ndbm.h/linknamespace = yes test-xfail-XOPEN2K/ndbm.h/linknamespace = yes
test-xfail-XOPEN2K8/ndbm.h/linknamespace = yes test-xfail-XOPEN2K8/ndbm.h/linknamespace = yes

View File

@ -1,4 +1,4 @@
#if !defined ISO && !defined ISO99 && !defined ISO11 && !defined XPG3 && !defined XPG4 #if !defined ISO && !defined ISO99 && !defined ISO11 && !defined XPG4 && !defined XPG42
type {struct aiocb} type {struct aiocb}
// Test elements of the AIO control struct. // Test elements of the AIO control struct.

View File

@ -1,4 +1,4 @@
#if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX && !defined XPG3 #if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX && !defined XPG4
// in_port_t should have exactly 16 bits // in_port_t should have exactly 16 bits
type in_port_t type in_port_t
// in_addr_t should have exactly 32 bits // in_addr_t should have exactly 32 bits

View File

@ -1,4 +1,4 @@
#if !defined ISO && !defined POSIX && !defined XPG3 && !defined XPG4 && !defined UNIX98 #if !defined ISO && !defined POSIX && !defined XPG4 && !defined XPG42 && !defined UNIX98
macro complex macro complex
macro _Complex_I macro _Complex_I
optional-macro imaginary optional-macro imaginary

View File

@ -12,7 +12,7 @@ function int isxdigit (int)
function int tolower (int) function int tolower (int)
function int toupper (int) function int toupper (int)
#if !defined ISO && !defined POSIX && !defined XPG3 && !defined XPG4 && !defined UNIX98 #if !defined ISO && !defined POSIX && !defined XPG4 && !defined XPG42 && !defined UNIX98
function int isblank (int) function int isblank (int)
#endif #endif

View File

@ -1,4 +1,4 @@
#if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX && !defined XPG3 && !defined XPG4 #if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX && !defined XPG4 && !defined XPG42
macro RTLD_LAZY macro RTLD_LAZY
macro RTLD_NOW macro RTLD_NOW
macro RTLD_GLOBAL macro RTLD_GLOBAL

View File

@ -7,7 +7,7 @@ constant F_SETFL
constant F_GETLK constant F_GETLK
constant F_SETLK constant F_SETLK
constant F_SETLKW constant F_SETLKW
#if !defined POSIX && !defined XPG3 && !defined XPG4 && !defined UNIX98 #if !defined POSIX && !defined XPG4 && !defined XPG42 && !defined UNIX98
constant F_GETOWN constant F_GETOWN
constant F_SETOWN constant F_SETOWN
#endif #endif
@ -36,7 +36,7 @@ constant O_TRUNC
constant O_APPEND constant O_APPEND
constant O_NONBLOCK constant O_NONBLOCK
constant O_SYNC constant O_SYNC
#if !defined XPG3 && !defined XPG4 #if !defined XPG4 && !defined XPG42
constant O_DSYNC constant O_DSYNC
constant O_RSYNC constant O_RSYNC
#endif #endif

View File

@ -1,4 +1,4 @@
#if !defined ISO && !defined POSIX && !defined XPG3 && !defined XPG4 && !defined UNIX98 #if !defined ISO && !defined POSIX && !defined XPG4 && !defined XPG42 && !defined UNIX98
type fenv_t type fenv_t
type fexcept_t type fexcept_t

View File

@ -38,7 +38,7 @@ macro-constant FLT_MIN <= 1.0E-37
macro-constant DBL_MIN <= 1.0E-37 macro-constant DBL_MIN <= 1.0E-37
macro-constant LDBL_MIN <= 1.0E-37 macro-constant LDBL_MIN <= 1.0E-37
#if !defined ISO && !defined XPG3 && !defined XPG4 && !defined POSIX && !defined UNIX98 #if !defined ISO && !defined XPG4 && !defined XPG42 && !defined POSIX && !defined UNIX98
macro-int-constant DECIMAL_DIG >= 10 macro-int-constant DECIMAL_DIG >= 10
macro-int-constant FLT_EVAL_METHOD macro-int-constant FLT_EVAL_METHOD
#endif #endif

View File

@ -1,4 +1,4 @@
#if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX && !defined POSIX2008 && !defined XPG3 #if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX && !defined POSIX2008 && !defined XPG4
macro MM_HARD macro MM_HARD
constant MM_HARD constant MM_HARD

View File

@ -1,5 +1,5 @@
#if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX && !defined POSIX2008 #if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX && !defined POSIX2008
# ifndef XPG3 # ifndef XPG4
type {struct FTW} type {struct FTW}
element {struct FTW} int base element {struct FTW} int base
element {struct FTW} int level element {struct FTW} int level
@ -8,12 +8,12 @@ element {struct FTW} int level
macro FTW_F macro FTW_F
macro FTW_D macro FTW_D
macro FTW_DNR macro FTW_DNR
# if !defined XPG3 && !defined XPG4 # if !defined XPG4 && !defined XPG42
macro FTW_DP macro FTW_DP
# endif # endif
macro FTW_NS macro FTW_NS
# ifndef XPG3 # ifndef XPG4
macro FTW_SL macro FTW_SL
macro FTW_SLN macro FTW_SLN
@ -24,7 +24,7 @@ macro FTW_CHDIR
# endif # endif
function int ftw (const char*, int (*) (const char *, const struct stat*, int), int) function int ftw (const char*, int (*) (const char *, const struct stat*, int), int)
# ifndef XPG3 # ifndef XPG4
function int nftw (const char*, int (*) (const char *, const struct stat*, int, struct FTW *), int, int) function int nftw (const char*, int (*) (const char *, const struct stat*, int, struct FTW *), int, int)
# endif # endif

View File

@ -19,7 +19,7 @@ function {struct group*} getgrgid (gid_t)
function {struct group*} getgrnam (const char*) function {struct group*} getgrnam (const char*)
function int getgrgid_r (gid_t, struct group*, char *, size_t, struct group**) function int getgrgid_r (gid_t, struct group*, char *, size_t, struct group**)
function int getgrnam_r (const char *, struct group *, char *, size_t, struct group**) function int getgrnam_r (const char *, struct group *, char *, size_t, struct group**)
# if !defined XPG3 && !defined POSIX && !defined POSIX2008 # if !defined XPG4 && !defined POSIX && !defined POSIX2008
function {struct group*} getgrent (void) function {struct group*} getgrent (void)
function void endgrent (void) function void endgrent (void)
function void setgrent (void) function void setgrent (void)

View File

@ -1,4 +1,4 @@
#if !defined ISO && !defined POSIX && !defined XPG3 && !defined XPG4 && !defined UNIX98 #if !defined ISO && !defined POSIX && !defined XPG4 && !defined XPG42 && !defined UNIX98
#include "stdint.h-data" #include "stdint.h-data"
type imaxdiv_t type imaxdiv_t

View File

@ -1,4 +1,4 @@
#if !defined ISO && !defined POSIX && !defined XPG3 && !defined XPG4 #if !defined ISO && !defined POSIX && !defined XPG4 && !defined XPG42
macro and macro and
macro and_eq macro and_eq
macro bitand macro bitand

View File

@ -55,7 +55,7 @@ constant YESEXPR
constant NOEXPR constant NOEXPR
constant CRNCYSTR constant CRNCYSTR
# if defined XPG3 || defined XPG4 || defined UNIX98 # if defined XPG4 || defined XPG42 || defined UNIX98
constant YESSTR constant YESSTR
constant NOSTR constant NOSTR
# endif # endif

View File

@ -1,4 +1,4 @@
#if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX && !defined POSIX2008 && !defined XPG3 #if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX && !defined POSIX2008 && !defined XPG4
function {char*} basename (char*) function {char*} basename (char*)
function {char*} dirname (char*) function {char*} dirname (char*)

View File

@ -32,12 +32,12 @@ allow AIO_LISTIO_MAX
allow AIO_MAX allow AIO_MAX
allow AIO_PRIO_DELTA_MAX allow AIO_PRIO_DELTA_MAX
allow ARG_MAX allow ARG_MAX
#if !defined POSIX && !defined XPG3 #if !defined POSIX && !defined XPG4
allow ATEXIT_MAX allow ATEXIT_MAX
#endif #endif
allow CHILD_MAX allow CHILD_MAX
allow DELAYTIMER_MAX allow DELAYTIMER_MAX
#if !defined POSIX && !defined POSIX2008 && !defined XPG3 #if !defined POSIX && !defined POSIX2008 && !defined XPG4
allow IOV_MAX allow IOV_MAX
#endif #endif
allow LOGIN_NAME_MAX allow LOGIN_NAME_MAX
@ -56,18 +56,18 @@ allow RTSIG_MAX
allow SEM_NSEMS_MAX allow SEM_NSEMS_MAX
allow SEM_VALUE_MAX allow SEM_VALUE_MAX
allow SIGQUEUE_MAX allow SIGQUEUE_MAX
#if !defined POSIX && !defined XPG3 && !defined XPG4 && !defined UNIX98 #if !defined POSIX && !defined XPG4 && !defined XPG42 && !defined UNIX98
allow SS_REPL_MAX allow SS_REPL_MAX
#endif #endif
allow STREAM_MAX allow STREAM_MAX
#if !defined POSIX && !defined XPG3 && !defined XPG4 && !defined UNIX98 #if !defined POSIX && !defined XPG4 && !defined XPG42 && !defined UNIX98
allow SYMLOOP_MAX allow SYMLOOP_MAX
#endif #endif
allow TIMER_MAX allow TIMER_MAX
allow TTY_NAME_MAX allow TTY_NAME_MAX
allow TZNAME_MAX allow TZNAME_MAX
#if !defined POSIX && !defined XPG3 && !defined XPG4 #if !defined POSIX && !defined XPG4 && !defined XPG42
allow FILESIZEBITS allow FILESIZEBITS
#endif #endif
allow LINK_MAX allow LINK_MAX
@ -76,7 +76,7 @@ allow MAX_INPUT
allow NAME_MAX allow NAME_MAX
allow PATH_MAX allow PATH_MAX
allow PIPE_BUF allow PIPE_BUF
#if !defined POSIX && !defined XPG3 && !defined XPG4 && !defined UNIX98 #if !defined POSIX && !defined XPG4 && !defined XPG42 && !defined UNIX98
allow POSIX_ALLOC_SIZE_MIN allow POSIX_ALLOC_SIZE_MIN
allow POSIX_REC_INCR_XFER_SIZE allow POSIX_REC_INCR_XFER_SIZE
allow POSIX_REC_MAX_XFER_SIZE allow POSIX_REC_MAX_XFER_SIZE
@ -88,7 +88,7 @@ macro-constant BC_BASE_MAX >= _POSIX2_BC_BASE_MAX
macro-constant BC_DIM_MAX >= _POSIX2_BC_DIM_MAX macro-constant BC_DIM_MAX >= _POSIX2_BC_DIM_MAX
macro-constant BC_SCALE_MAX >= _POSIX2_BC_SCALE_MAX macro-constant BC_SCALE_MAX >= _POSIX2_BC_SCALE_MAX
macro-constant BC_STRING_MAX >= _POSIX2_BC_STRING_MAX macro-constant BC_STRING_MAX >= _POSIX2_BC_STRING_MAX
#if !defined POSIX && !defined XPG3 && !defined XPG4 #if !defined POSIX && !defined XPG4 && !defined XPG42
macro CHARCLASS_NAME_MAX macro CHARCLASS_NAME_MAX
#endif #endif
macro-constant COLL_WEIGHTS_MAX >= _POSIX2_COLL_WEIGHTS_MAX macro-constant COLL_WEIGHTS_MAX >= _POSIX2_COLL_WEIGHTS_MAX
@ -102,7 +102,7 @@ constant _POSIX_CLOCKRES_MIN == 20000000
constant _POSIX_AIO_LISTIO_MAX == 2 constant _POSIX_AIO_LISTIO_MAX == 2
constant _POSIX_AIO_MAX == 1 constant _POSIX_AIO_MAX == 1
constant _POSIX_ARG_MAX == 4096 constant _POSIX_ARG_MAX == 4096
#if !defined POSIX && !defined XPG3 && !defined XPG4 && !defined UNIX98 #if !defined POSIX && !defined XPG4 && !defined XPG42 && !defined UNIX98
constant _POSIX_CHILD_MAX == 25 constant _POSIX_CHILD_MAX == 25
#else #else
constant _POSIX_CHILD_MAX == 6 constant _POSIX_CHILD_MAX == 6
@ -115,12 +115,12 @@ constant _POSIX_MAX_INPUT == 255
constant _POSIX_MQ_OPEN_MAX == 8 constant _POSIX_MQ_OPEN_MAX == 8
constant _POSIX_MQ_PRIO_MAX == 32 constant _POSIX_MQ_PRIO_MAX == 32
constant _POSIX_NAME_MAX == 14 constant _POSIX_NAME_MAX == 14
#if !defined POSIX && !defined XPG3 && !defined XPG4 && !defined UNIX98 #if !defined POSIX && !defined XPG4 && !defined XPG42 && !defined UNIX98
constant _POSIX_NGROUPS_MAX == 8 constant _POSIX_NGROUPS_MAX == 8
#else #else
constant _POSIX_NGROUPS_MAX == 0 constant _POSIX_NGROUPS_MAX == 0
#endif #endif
#if !defined POSIX && !defined XPG3 && !defined XPG4 && !defined UNIX98 #if !defined POSIX && !defined XPG4 && !defined XPG42 && !defined UNIX98
constant _POSIX_OPEN_MAX == 20 constant _POSIX_OPEN_MAX == 20
#else #else
constant _POSIX_OPEN_MAX == 16 constant _POSIX_OPEN_MAX == 16
@ -134,7 +134,7 @@ constant _POSIX_SEM_VALUE_MAX == 32767
constant _POSIX_SIGQUEUE_MAX == 32 constant _POSIX_SIGQUEUE_MAX == 32
constant _POSIX_SSIZE_MAX == 32767 constant _POSIX_SSIZE_MAX == 32767
constant _POSIX_STREAM_MAX == 8 constant _POSIX_STREAM_MAX == 8
#if !defined POSIX && !defined XPG3 && !defined XPG4 && !defined UNIX98 #if !defined POSIX && !defined XPG4 && !defined XPG42 && !defined UNIX98
optional-constant _POSIX_SS_REPL_MAX == 4 optional-constant _POSIX_SS_REPL_MAX == 4
optional-constant _POSIX_SYMLINK_MAX == 255 optional-constant _POSIX_SYMLINK_MAX == 255
optional-constant _POSIX_SYMLOOP_MAX == 8 optional-constant _POSIX_SYMLOOP_MAX == 8
@ -144,7 +144,7 @@ constant _POSIX_THREAD_KEYS_MAX == 128
constant _POSIX_THREAD_THREADS_MAX == 64 constant _POSIX_THREAD_THREADS_MAX == 64
constant _POSIX_TIMER_MAX == 32 constant _POSIX_TIMER_MAX == 32
constant _POSIX_TTY_NAME_MAX == 9 constant _POSIX_TTY_NAME_MAX == 9
#if !defined POSIX && !defined XPG3 && !defined XPG4 && !defined UNIX98 #if !defined POSIX && !defined XPG4 && !defined XPG42 && !defined UNIX98
constant _POSIX_TZNAME_MAX == 6 constant _POSIX_TZNAME_MAX == 6
#else #else
constant _POSIX_TZNAME_MAX == 3 constant _POSIX_TZNAME_MAX == 3
@ -153,14 +153,14 @@ macro-constant _POSIX2_BC_BASE_MAX == 99
macro-constant _POSIX2_BC_DIM_MAX == 2048 macro-constant _POSIX2_BC_DIM_MAX == 2048
macro-constant _POSIX2_BC_SCALE_MAX == 99 macro-constant _POSIX2_BC_SCALE_MAX == 99
macro-constant _POSIX2_BC_STRING_MAX == 1000 macro-constant _POSIX2_BC_STRING_MAX == 1000
#if !defined POSIX && !defined XPG3 && !defined XPG4 && !defined UNIX98 #if !defined POSIX && !defined XPG4 && !defined XPG42 && !defined UNIX98
constant _POSIX2_CHARCLASS_NAME_MAX == 14 constant _POSIX2_CHARCLASS_NAME_MAX == 14
#endif #endif
macro-constant _POSIX2_COLL_WEIGHTS_MAX == 2 macro-constant _POSIX2_COLL_WEIGHTS_MAX == 2
macro-constant _POSIX2_EXPR_NEST_MAX == 32 macro-constant _POSIX2_EXPR_NEST_MAX == 32
macro-constant _POSIX2_LINE_MAX == 2048 macro-constant _POSIX2_LINE_MAX == 2048
macro-constant _POSIX2_RE_DUP_MAX == 255 macro-constant _POSIX2_RE_DUP_MAX == 255
#if !defined POSIX && !defined POSIX2008 && !defined XPG3 #if !defined POSIX && !defined POSIX2008 && !defined XPG4
optional-constant _XOPEN_IOV_MAX == 16 optional-constant _XOPEN_IOV_MAX == 16
#endif #endif
@ -188,12 +188,12 @@ optional-constant NL_TEXTMAX
optional-constant NZERO >= 20 optional-constant NZERO >= 20
# endif # endif
#endif #endif
#if defined XPG3 || defined XPG4 || defined UNIX98 #if defined XPG4 || defined XPG42 || defined UNIX98
optional-constant TMP_MAX >= 10000 optional-constant TMP_MAX >= 10000
#endif #endif
allow *_MAX allow *_MAX
#if !defined POSIX && !defined XPG3 && !defined XPG4 && !defined UNIX98 #if !defined POSIX && !defined XPG4 && !defined XPG42 && !defined UNIX98
allow *_MIN allow *_MIN
#endif #endif
allow *_t allow *_t

View File

@ -17,7 +17,7 @@ element {struct lconv} char p_cs_precedes
element {struct lconv} char p_sep_by_space element {struct lconv} char p_sep_by_space
element {struct lconv} char p_sign_posn element {struct lconv} char p_sign_posn
element {struct lconv} {char*} thousands_sep element {struct lconv} {char*} thousands_sep
#if !defined ISO && !defined POSIX && !defined XPG3 && !defined XPG4 && !defined UNIX98 #if !defined ISO && !defined POSIX && !defined XPG4 && !defined XPG42 && !defined UNIX98
element {struct lconv} char int_n_cs_precedes element {struct lconv} char int_n_cs_precedes
element {struct lconv} char int_n_sep_by_space element {struct lconv} char int_n_sep_by_space
element {struct lconv} char int_n_sign_posn element {struct lconv} char int_n_sign_posn

View File

@ -1,7 +1,7 @@
macro-constant HUGE_VAL {double} macro-constant HUGE_VAL {double}
#if !defined ISO && !defined POSIX #if !defined ISO && !defined POSIX
# if !defined XPG3 && !defined XPG4 && !defined UNIX98 # if !defined XPG4 && !defined XPG42 && !defined UNIX98
macro fpclassify macro fpclassify
macro isfinite macro isfinite
macro isinf macro isinf
@ -17,7 +17,7 @@ macro isunordered
type float_t type float_t
type double_t type double_t
# endif # endif
# if defined XPG3 || defined XPG4 || defined UNIX98 # if defined XPG4 || defined XPG42 || defined UNIX98
function int isnan (double) function int isnan (double)
# endif # endif
@ -38,7 +38,7 @@ constant M_SQRT1_2
constant MAXFLOAT constant MAXFLOAT
# endif # endif
# if !defined XPG3 && !defined XPG4 && !defined UNIX98 # if !defined XPG4 && !defined XPG42 && !defined UNIX98
macro-constant HUGE_VALF {float} macro-constant HUGE_VALF {float}
macro-constant HUGE_VALL {long double} macro-constant HUGE_VALL {long double}
macro-constant INFINITY {float} macro-constant INFINITY {float}
@ -69,13 +69,13 @@ function double asin (double)
function double atan (double) function double atan (double)
function double atan2 (double, double) function double atan2 (double, double)
function double ceil (double) function double ceil (double)
#if !defined ISO && !defined POSIX && !defined XPG3 && !defined XPG4 && !defined UNIX98 #if !defined ISO && !defined POSIX && !defined XPG4 && !defined XPG42 && !defined UNIX98
function double copysign (double, double) function double copysign (double, double)
#endif #endif
function double cos (double) function double cos (double)
function double cosh (double) function double cosh (double)
function double exp (double) function double exp (double)
#if !defined ISO && !defined POSIX && !defined XPG3 && !defined XPG4 && !defined UNIX98 #if !defined ISO && !defined POSIX && !defined XPG4 && !defined XPG42 && !defined UNIX98
function double exp2 (double) function double exp2 (double)
#endif #endif
function double fabs (double) function double fabs (double)
@ -85,7 +85,7 @@ function double frexp (double, int*)
function double ldexp (double, int) function double ldexp (double, int)
function double log (double) function double log (double)
function double log10 (double) function double log10 (double)
#if !defined ISO && !defined POSIX && !defined XPG3 && !defined XPG4 && !defined UNIX98 #if !defined ISO && !defined POSIX && !defined XPG4 && !defined XPG42 && !defined UNIX98
function double log2 (double) function double log2 (double)
#endif #endif
function double modf (double, double*) function double modf (double, double*)
@ -99,7 +99,7 @@ function double tanh (double)
function double erf (double) function double erf (double)
function double erfc (double) function double erfc (double)
#endif #endif
#if defined XPG3 || defined XPG4 || defined UNIX98 #if defined XPG4 || defined XPG42 || defined UNIX98
function double gamma (double) function double gamma (double)
#endif #endif
#if !defined ISO && !defined POSIX #if !defined ISO && !defined POSIX
@ -110,7 +110,7 @@ function double j1 (double)
function double jn (int, double) function double jn (int, double)
# endif # endif
function double lgamma (double) function double lgamma (double)
# if !defined XPG3 && !defined XPG4 && !defined UNIX98 # if !defined XPG4 && !defined XPG42 && !defined UNIX98
function double tgamma (double) function double tgamma (double)
# endif # endif
# if !defined ISO99 && !defined ISO11 && !defined POSIX && !defined POSIX2008 # if !defined ISO99 && !defined ISO11 && !defined POSIX && !defined POSIX2008
@ -118,7 +118,7 @@ function double y0 (double)
function double y1 (double) function double y1 (double)
function double yn (int, double) function double yn (int, double)
# endif # endif
# if !defined XPG3 # if !defined XPG4
function double acosh (double) function double acosh (double)
function double asinh (double) function double asinh (double)
function double atanh (double) function double atanh (double)
@ -128,13 +128,13 @@ function int ilogb (double)
function double log1p (double) function double log1p (double)
function double logb (double) function double logb (double)
function double nextafter (double, double) function double nextafter (double, double)
# if !defined XPG4 && !defined UNIX98 # if !defined XPG42 && !defined UNIX98
function double nexttoward (double, long double) function double nexttoward (double, long double)
function double nearbyint (double) function double nearbyint (double)
# endif # endif
function double remainder (double, double) function double remainder (double, double)
function double rint (double) function double rint (double)
# if !defined XPG4 && !defined UNIX98 # if !defined XPG42 && !defined UNIX98
function double round (double) function double round (double)
function double trunc (double) function double trunc (double)
function long lrint (double) function long lrint (double)
@ -143,10 +143,10 @@ function long lround (double)
function {long long} llround (double) function {long long} llround (double)
function double remquo (double, double, int*) function double remquo (double, double, int*)
# endif # endif
# if defined XPG4 || defined UNIX98 || defined XOPEN2K # if defined XPG42 || defined UNIX98 || defined XOPEN2K
function double scalb (double, double) function double scalb (double, double)
# endif # endif
# if !defined XPG4 && !defined UNIX98 # if !defined XPG42 && !defined UNIX98
function double scalbn (double, int) function double scalbn (double, int)
function double scalbln (double, long) function double scalbln (double, long)
function double fdim (double, double) function double fdim (double, double)
@ -163,7 +163,7 @@ allow signgam
# endif # endif
#endif #endif
#if !defined ISO && !defined POSIX && !defined XPG3 && !defined XPG4 && !defined UNIX98 #if !defined ISO && !defined POSIX && !defined XPG4 && !defined XPG42 && !defined UNIX98
function float acosf (float) function float acosf (float)
function float asinf (float) function float asinf (float)
function float atanf (float) function float atanf (float)
@ -330,6 +330,6 @@ allow tanhl
#if !defined ISO && !defined ISO99 && !defined ISO11 #if !defined ISO && !defined ISO99 && !defined ISO11
allow *_t allow *_t
#endif #endif
#if !defined ISO && !defined POSIX && !defined XPG3 && !defined XPG4 && !defined UNIX98 #if !defined ISO && !defined POSIX && !defined XPG4 && !defined XPG42 && !defined UNIX98
allow FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]* allow FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*
#endif #endif

View File

@ -1,4 +1,4 @@
#if !defined ISO && !defined ISO99 && !defined ISO11 && !defined XPG3 && !defined XPG4 #if !defined ISO && !defined ISO99 && !defined ISO11 && !defined XPG4 && !defined XPG42
// should test for not an array type. // should test for not an array type.
type mqd_t type mqd_t

View File

@ -1,4 +1,4 @@
#if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX && !defined POSIX2008 && !defined XPG3 #if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX && !defined POSIX2008 && !defined XPG4
type datum type datum
element datum {void*} dptr element datum {void*} dptr
element datum size_t dsize element datum size_t dsize

View File

@ -1,4 +1,4 @@
#if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX && !defined XPG3 && !defined XPG4 && !defined UNIX98 #if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX && !defined XPG4 && !defined XPG42 && !defined UNIX98
type {struct if_nameindex} type {struct if_nameindex}
element {struct if_nameindex} {unsigned int} if_index element {struct if_nameindex} {unsigned int} if_index

View File

@ -1,4 +1,4 @@
#if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX && !defined XPG3 #if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX && !defined XPG4
optional-type in_port_t optional-type in_port_t
optional-type in_addr_t optional-type in_addr_t
@ -45,7 +45,7 @@ macro NO_RECOVERY
macro TRY_AGAIN macro TRY_AGAIN
#endif #endif
#if !defined XPG4 && !defined UNIX98 #if !defined XPG42 && !defined UNIX98
type {struct addrinfo} type {struct addrinfo}
element {struct addrinfo} int ai_flags element {struct addrinfo} int ai_flags
element {struct addrinfo} int ai_family element {struct addrinfo} int ai_family
@ -86,7 +86,7 @@ function void endhostent (void)
function void endnetent (void) function void endnetent (void)
function void endprotoent (void) function void endprotoent (void)
function void endservent (void) function void endservent (void)
#if !defined XPG4 && !defined UNIX98 #if !defined XPG42 && !defined UNIX98
function void freeaddrinfo (struct addrinfo*) function void freeaddrinfo (struct addrinfo*)
function {const char*} gai_strerror (int) function {const char*} gai_strerror (int)
function int getaddrinfo (const char*, const char*, const struct addrinfo*, struct addrinfo**) function int getaddrinfo (const char*, const char*, const struct addrinfo*, struct addrinfo**)
@ -94,7 +94,7 @@ function int getaddrinfo (const char*, const char*, const struct addrinfo*, stru
function {struct hostent*} gethostbyaddr (const void*, socklen_t, int) function {struct hostent*} gethostbyaddr (const void*, socklen_t, int)
function {struct hostent*} gethostbyname (const char*) function {struct hostent*} gethostbyname (const char*)
function {struct hostent*} gethostent (void) function {struct hostent*} gethostent (void)
#if !defined XPG4 && !defined UNIX98 #if !defined XPG42 && !defined UNIX98
function int getnameinfo (const struct sockaddr*, socklen_t, char*, socklen_t, char*, socklen_t, int) function int getnameinfo (const struct sockaddr*, socklen_t, char*, socklen_t, char*, socklen_t, int)
#endif #endif
function {struct netent*} getnetbyaddr (uint32_t, int) function {struct netent*} getnetbyaddr (uint32_t, int)

View File

@ -1,4 +1,4 @@
#if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX && !defined XPG3 #if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX && !defined XPG4
type in_port_t type in_port_t
type in_addr_t type in_addr_t

View File

@ -1,4 +1,4 @@
#if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX && !defined XPG3 #if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX && !defined XPG4
type {struct pollfd} type {struct pollfd}
element {struct pollfd} int fd element {struct pollfd} int fd
element {struct pollfd} {short int} events element {struct pollfd} {short int} events

View File

@ -1,4 +1,4 @@
#if !defined ISO && !defined ISO99 && !defined ISO11 && !defined XPG3 && !defined XPG4 #if !defined ISO && !defined ISO99 && !defined ISO11 && !defined XPG4 && !defined XPG42
constant PTHREAD_CANCEL_ASYNCHRONOUS constant PTHREAD_CANCEL_ASYNCHRONOUS
constant PTHREAD_CANCEL_ENABLE constant PTHREAD_CANCEL_ENABLE
constant PTHREAD_CANCEL_DEFERRED constant PTHREAD_CANCEL_DEFERRED

View File

@ -23,7 +23,7 @@ function {struct passwd*} getpwnam (const char*)
function {struct passwd*} getpwuid (uid_t) function {struct passwd*} getpwuid (uid_t)
function int getpwnam_r (const char*, struct passwd*, char*, size_t, struct passwd**) function int getpwnam_r (const char*, struct passwd*, char*, size_t, struct passwd**)
function int getpwuid_r (uid_t, struct passwd*, char*, size_t, struct passwd**) function int getpwuid_r (uid_t, struct passwd*, char*, size_t, struct passwd**)
# if !defined XPG3 && !defined POSIX && !defined POSIX2008 # if !defined XPG4 && !defined POSIX && !defined POSIX2008
function void endpwent (void) function void endpwent (void)
function {struct passwd*} getpwent (void) function {struct passwd*} getpwent (void)
function void setpwent (void) function void setpwent (void)

View File

@ -1,4 +1,4 @@
#if !defined ISO && !defined ISO99 && !defined ISO11 && !defined XPG3 && !defined XPG4 #if !defined ISO && !defined ISO99 && !defined ISO11 && !defined XPG4 && !defined XPG42
# if defined POSIX || defined UNIX98 # if defined POSIX || defined UNIX98
# include "time.h-data" # include "time.h-data"
# else # else

View File

@ -17,12 +17,12 @@ constant leaf
function int hcreate (size_t) function int hcreate (size_t)
function void hdestroy (void) function void hdestroy (void)
function {ENTRY*} hsearch (ENTRY, ACTION) function {ENTRY*} hsearch (ENTRY, ACTION)
#ifndef XPG3 #ifndef XPG4
function void insque (void*, void*) function void insque (void*, void*)
#endif #endif
function {void*} lfind (const void*, const void*, size_t*, size_t, int (*)(const void*, const void*)) function {void*} lfind (const void*, const void*, size_t*, size_t, int (*)(const void*, const void*))
function {void*} lsearch (const void*, void*, size_t*, size_t, int (*)(const void*, const void*)) function {void*} lsearch (const void*, void*, size_t*, size_t, int (*)(const void*, const void*))
#ifndef XPG3 #ifndef XPG4
function void remque (void*) function void remque (void*)
#endif #endif
function {void*} tdelete (const void*, void**, int(*)(const void*, const void*)) function {void*} tdelete (const void*, void**, int(*)(const void*, const void*))

View File

@ -1,4 +1,4 @@
#if !defined ISO && !defined ISO99 && !defined ISO11 && !defined XPG3 && !defined XPG4 #if !defined ISO && !defined ISO99 && !defined ISO11 && !defined XPG4 && !defined XPG42
type sem_t type sem_t
constant SEM_FAILED constant SEM_FAILED

View File

@ -81,18 +81,18 @@ macro-int-constant SIGSTOP {int} > 0
macro-int-constant SIGTSTP {int} > 0 macro-int-constant SIGTSTP {int} > 0
macro-int-constant SIGTTIN {int} > 0 macro-int-constant SIGTTIN {int} > 0
macro-int-constant SIGTTOU {int} > 0 macro-int-constant SIGTTOU {int} > 0
# ifndef XPG3 # ifndef XPG4
macro-int-constant SIGBUS {int} > 0 macro-int-constant SIGBUS {int} > 0
# endif # endif
# if !defined POSIX && !defined XPG3 # if !defined POSIX && !defined XPG4
macro-int-constant SIGPOLL {int} > 0 macro-int-constant SIGPOLL {int} > 0
macro-int-constant SIGPROF {int} > 0 macro-int-constant SIGPROF {int} > 0
macro-int-constant SIGSYS {int} > 0 macro-int-constant SIGSYS {int} > 0
# endif # endif
# if !defined POSIX && !defined XPG3 && !defined POSIX2008 # if !defined POSIX && !defined XPG4 && !defined POSIX2008
macro-int-constant SIGTRAP {int} > 0 macro-int-constant SIGTRAP {int} > 0
# endif # endif
# if !defined POSIX && !defined XPG3 # if !defined POSIX && !defined XPG4
macro-int-constant SIGURG {int} > 0 macro-int-constant SIGURG {int} > 0
macro-int-constant SIGVTALRM {int} > 0 macro-int-constant SIGVTALRM {int} > 0
macro-int-constant SIGXCPU {int} > 0 macro-int-constant SIGXCPU {int} > 0
@ -147,7 +147,7 @@ element {struct sigstack} int ss_onstack
element {struct sigstack} {void*} ss_sp element {struct sigstack} {void*} ss_sp
# endif # endif
# ifndef XPG3 # ifndef XPG4
type siginfo_t type siginfo_t
element siginfo_t int si_signo element siginfo_t int si_signo
@ -162,12 +162,12 @@ element siginfo_t {void*} si_addr
element siginfo_t int si_status element siginfo_t int si_status
element siginfo_t long si_band element siginfo_t long si_band
# endif # endif
# ifndef XPG4 # ifndef XPG42
element siginfo_t {union sigval} si_value element siginfo_t {union sigval} si_value
# endif # endif
# endif # endif
# if !defined POSIX && !defined XPG3 # if !defined POSIX && !defined XPG4
constant ILL_ILLOPC constant ILL_ILLOPC
constant ILL_ILLOPN constant ILL_ILLOPN
constant ILL_ILLADR constant ILL_ILLADR
@ -202,7 +202,7 @@ constant POLL_ERR
constant POLL_PRI constant POLL_PRI
constant POLL_HUP constant POLL_HUP
# endif # endif
# if !defined POSIX && !defined XPG3 && !defined POSIX2008 # if !defined POSIX && !defined XPG4 && !defined POSIX2008
constant TRAP_BRKPT constant TRAP_BRKPT
constant TRAP_TRACE constant TRAP_TRACE
# endif # endif
@ -219,7 +219,7 @@ function int kill (pid_t, int)
# if !defined POSIX && !defined POSIX2008 # if !defined POSIX && !defined POSIX2008
function int killpg (pid_t, int) function int killpg (pid_t, int)
# endif # endif
# if !defined XPG3 && !defined XPG4 # if !defined XPG4 && !defined XPG42
function int pthread_kill (pthread_t, int) function int pthread_kill (pthread_t, int)
function int pthread_sigmask (int, const sigset_t*, sigset_t*) function int pthread_sigmask (int, const sigset_t*, sigset_t*)
# endif # endif
@ -242,7 +242,7 @@ function int sigpause (int)
# endif # endif
function int sigpending (sigset_t*) function int sigpending (sigset_t*)
function int sigprocmask (int, const sigset_t*, sigset_t*) function int sigprocmask (int, const sigset_t*, sigset_t*)
# if !defined XPG3 && !defined XPG4 # if !defined XPG4 && !defined XPG42
function int sigqueue (pid_t, int, const union sigval) function int sigqueue (pid_t, int, const union sigval)
# endif # endif
# if !defined POSIX && !defined POSIX2008 # if !defined POSIX && !defined POSIX2008
@ -253,11 +253,11 @@ function void (*sigset (int, void(*)(int)))(int)
function int sigstack (struct sigstack*, struct sigstack*) function int sigstack (struct sigstack*, struct sigstack*)
# endif # endif
function int sigsuspend (const sigset_t*) function int sigsuspend (const sigset_t*)
# if !defined XPG3 && !defined XPG4 # if !defined XPG4 && !defined XPG42
function int sigtimedwait (const sigset_t*, siginfo_t*, const struct timespec*) function int sigtimedwait (const sigset_t*, siginfo_t*, const struct timespec*)
# endif # endif
function int sigwait (const sigset_t*, int*) function int sigwait (const sigset_t*, int*)
# if !defined XPG3 && !defined XPG4 # if !defined XPG4 && !defined XPG42
function int sigwaitinfo (const sigset_t*, siginfo_t*) function int sigwaitinfo (const sigset_t*, siginfo_t*)
# endif # endif
# if defined XOPEN2K8 || defined POSIX2008 # if defined XOPEN2K8 || defined POSIX2008
@ -269,19 +269,19 @@ function void psignal (int, const char*)
// poorfnmatch implementation doesn't grok the right form. // poorfnmatch implementation doesn't grok the right form.
allow sa_* allow sa_*
allow SA_* allow SA_*
# ifndef XPG3 # ifndef XPG4
allow si_* allow si_*
allow SI_* allow SI_*
# endif # endif
# if !defined XPG3 && !defined XPG4 # if !defined XPG4 && !defined XPG42
allow sigev_* allow sigev_*
allow SIGEV_* allow SIGEV_*
allow sival_* allow sival_*
# endif # endif
# if !defined POSIX && !defined XPG3 && !defined XPG4 # if !defined POSIX && !defined XPG4 && !defined XPG42
allow uc_* allow uc_*
# endif # endif
# if !defined POSIX && !defined XPG3 # if !defined POSIX && !defined XPG4
allow BUS_* allow BUS_*
allow CLD_* allow CLD_*
allow FPE_* allow FPE_*
@ -289,7 +289,7 @@ allow ILL_*
allow POLL_* allow POLL_*
allow SEGV_* allow SEGV_*
# endif # endif
# if !defined POSIX && !defined XPG3 && !defined POSIX2008 # if !defined POSIX && !defined XPG4 && !defined POSIX2008
allow SS_* allow SS_*
allow SV_* allow SV_*
allow TRAP_* allow TRAP_*

View File

@ -1,4 +1,4 @@
#if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX && !defined XPG3 && !defined XPG4 && !defined UNIX98 #if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX && !defined XPG4 && !defined XPG42 && !defined UNIX98
type posix_spawnattr_t type posix_spawnattr_t
type posix_spawn_file_actions_t type posix_spawn_file_actions_t
# if defined XOPEN2K8 || defined POSIX2008 # if defined XOPEN2K8 || defined POSIX2008

View File

@ -1,4 +1,4 @@
#if !defined ISO && !defined POSIX && !defined XPG3 && !defined XPG4 && !defined UNIX98 #if !defined ISO && !defined POSIX && !defined XPG4 && !defined XPG42 && !defined UNIX98
macro bool macro bool
macro-int-constant true {int} == 1 macro-int-constant true {int} == 1
macro-int-constant false {int} == 0 macro-int-constant false {int} == 0

View File

@ -1,4 +1,4 @@
#if !defined ISO && !defined POSIX && !defined XPG3 && !defined XPG4 && !defined UNIX98 #if !defined ISO && !defined POSIX && !defined XPG4 && !defined XPG42 && !defined UNIX98
// The requirements for some types and corresponding macros are from POSIX. // The requirements for some types and corresponding macros are from POSIX.
type int8_t type int8_t
type int16_t type int16_t

View File

@ -52,7 +52,7 @@ type ssize_t
function void clearerr (FILE*) function void clearerr (FILE*)
#if !defined ISO && !defined ISO99 && !defined ISO11 #if !defined ISO && !defined ISO99 && !defined ISO11
function {char*} ctermid (char*) function {char*} ctermid (char*)
# if defined XPG3 || defined XPG4 || defined UNIX98 # if defined XPG4 || defined XPG42 || defined UNIX98
function {char*} cuserid (char*) function {char*} cuserid (char*)
# endif # endif
#endif #endif
@ -109,13 +109,13 @@ function int getchar_unlocked (void)
function ssize_t getdelim (char**, size_t*, int, FILE*) function ssize_t getdelim (char**, size_t*, int, FILE*)
function ssize_t getline (char**, size_t*, FILE*) function ssize_t getline (char**, size_t*, FILE*)
#endif #endif
#if defined XPG3 || defined XPG4 || defined UNIX98 #if defined XPG4 || defined XPG42 || defined UNIX98
function int getopt (int, char *const[], const char *) function int getopt (int, char *const[], const char *)
#endif #endif
#if !defined ISO11 #if !defined ISO11
function {char*} gets (char*) function {char*} gets (char*)
#endif #endif
#if defined XPG3 || defined XPG4 || defined UNIX98 #if defined XPG4 || defined XPG42 || defined UNIX98
function int getw (FILE*) function int getw (FILE*)
#endif #endif
#if defined XOPEN2K8 || defined POSIX2008 #if defined XOPEN2K8 || defined POSIX2008
@ -136,7 +136,7 @@ function int putc_unlocked (int, FILE*)
function int putchar_unlocked (int) function int putchar_unlocked (int)
#endif #endif
function int puts (const char*) function int puts (const char*)
#if defined XPG3 || defined XPG4 || defined UNIX98 #if defined XPG4 || defined XPG42 || defined UNIX98
function int putw (int, FILE*) function int putw (int, FILE*)
#endif #endif
function int remove (const char*) function int remove (const char*)
@ -148,12 +148,12 @@ function void rewind (FILE*)
function int scanf (const char*, ...) function int scanf (const char*, ...)
function void setbuf (FILE*, char*) function void setbuf (FILE*, char*)
function int setvbuf (FILE*, char*, int, size_t) function int setvbuf (FILE*, char*, int, size_t)
#if !defined ISO && !defined POSIX && !defined XPG3 && !defined XPG4 #if !defined ISO && !defined POSIX && !defined XPG4 && !defined XPG42
function int snprintf (char*, size_t, const char*, ...) function int snprintf (char*, size_t, const char*, ...)
#endif #endif
function int sprintf (char *, const char *, ...) function int sprintf (char *, const char *, ...)
function int sscanf (const char*, const char*, ...) function int sscanf (const char*, const char*, ...)
#if defined XPG3 || defined XPG4 || defined UNIX98 || defined XOPEN2K || defined XOPEN2K8 #if defined XPG4 || defined XPG42 || defined UNIX98 || defined XOPEN2K || defined XOPEN2K8
function {char*} tempnam (const char*, const char*) function {char*} tempnam (const char*, const char*)
#endif #endif
function {FILE*} tmpfile (void) function {FILE*} tmpfile (void)
@ -163,18 +163,18 @@ function int ungetc (int, FILE*)
function int vdprintf (int, const char*, va_list) function int vdprintf (int, const char*, va_list)
#endif #endif
function int vfprintf (FILE*, const char*, va_list) function int vfprintf (FILE*, const char*, va_list)
#if !defined ISO && !defined POSIX && !defined XPG3 && !defined XPG4 && !defined UNIX98 #if !defined ISO && !defined POSIX && !defined XPG4 && !defined XPG42 && !defined UNIX98
function int vfscanf (FILE*, const char*, va_list) function int vfscanf (FILE*, const char*, va_list)
#endif #endif
function int vprintf (const char*, va_list) function int vprintf (const char*, va_list)
#if !defined ISO && !defined POSIX && !defined XPG3 && !defined XPG4 && !defined UNIX98 #if !defined ISO && !defined POSIX && !defined XPG4 && !defined XPG42 && !defined UNIX98
function int vscanf (const char*, va_list) function int vscanf (const char*, va_list)
#endif #endif
#if !defined ISO && !defined POSIX && !defined XPG3 && !defined XPG4 #if !defined ISO && !defined POSIX && !defined XPG4 && !defined XPG42
function int vsnprintf (char*, size_t, const char*, va_list) function int vsnprintf (char*, size_t, const char*, va_list)
#endif #endif
function int vsprintf (char*, const char*, va_list) function int vsprintf (char*, const char*, va_list)
#if !defined ISO && !defined POSIX && !defined XPG3 && !defined XPG4 && !defined UNIX98 #if !defined ISO && !defined POSIX && !defined XPG4 && !defined XPG42 && !defined UNIX98
function int vsscanf (const char*, const char*, va_list) function int vsscanf (const char*, const char*, va_list)
#endif #endif

View File

@ -32,10 +32,10 @@ macro WSTOPSIG
macro WTERMSIG macro WTERMSIG
#endif #endif
#if !defined ISO && !defined XPG3 && !defined XPG4 && !defined UNIX98 && !defined POSIX #if !defined ISO && !defined XPG4 && !defined XPG42 && !defined UNIX98 && !defined POSIX
function void _Exit (int) function void _Exit (int)
#endif #endif
#if !defined ISO && !defined ISO99 && !defined ISO11 && !defined XPG3 && !defined POSIX && !defined POSIX2008 #if !defined ISO && !defined ISO99 && !defined ISO11 && !defined XPG4 && !defined POSIX && !defined POSIX2008
function long a64l (const char*) function long a64l (const char*)
#endif #endif
function void abort (void) function void abort (void)
@ -50,7 +50,7 @@ function int at_quick_exit (void (*) (void))
function double atof (const char*) function double atof (const char*)
function int atoi (const char*) function int atoi (const char*)
function {long int} atol (const char*) function {long int} atol (const char*)
#if !defined ISO && !defined POSIX && !defined XPG3 && !defined XPG4 && !defined UNIX98 #if !defined ISO && !defined POSIX && !defined XPG4 && !defined XPG42 && !defined UNIX98
function {long long} atoll (const char*) function {long long} atoll (const char*)
#endif #endif
function {void*} bsearch (const void*, const void*, size_t, size_t, int(*)(const void*, const void*)) function {void*} bsearch (const void*, const void*, size_t, size_t, int(*)(const void*, const void*))
@ -59,32 +59,32 @@ function div_t div (int, int)
#if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX && !defined POSIX2008 #if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX && !defined POSIX2008
function double drand48 (void) function double drand48 (void)
#endif #endif
#if defined XPG4 || defined UNIX98 || defined XOPEN2K #if defined XPG42 || defined UNIX98 || defined XOPEN2K
function {char*} ecvt (double, int, int*, int*) function {char*} ecvt (double, int, int*, int*)
#endif #endif
#if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX && !defined POSIX2008 #if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX && !defined POSIX2008
function double erand48 (unsigned short int[3]) function double erand48 (unsigned short int[3])
#endif #endif
function void exit (int) function void exit (int)
#if defined XPG4 || defined UNIX98 || defined XOPEN2K #if defined XPG42 || defined UNIX98 || defined XOPEN2K
function {char*} fcvt (double, int, int*, int*) function {char*} fcvt (double, int, int*, int*)
#endif #endif
function void free (void*) function void free (void*)
#if defined XPG4 || defined UNIX98 || defined XOPEN2K #if defined XPG42 || defined UNIX98 || defined XOPEN2K
function {char*} gcvt (double, int, char*) function {char*} gcvt (double, int, char*)
#endif #endif
function {char*} getenv (const char*) function {char*} getenv (const char*)
#if !defined ISO && !defined ISO99 && !defined ISO11 && !defined XPG3 && !defined POSIX #if !defined ISO && !defined ISO99 && !defined ISO11 && !defined XPG4 && !defined POSIX
function int getsubopt (char**, char *const*, char**) function int getsubopt (char**, char *const*, char**)
#endif #endif
#if !defined ISO && !defined ISO99 && !defined ISO11 && !defined XPG3 && !defined POSIX && !defined POSIX2008 #if !defined ISO && !defined ISO99 && !defined ISO11 && !defined XPG4 && !defined POSIX && !defined POSIX2008
function int grantpt (int) function int grantpt (int)
function {char*} initstate (unsigned int, char*, size_t) function {char*} initstate (unsigned int, char*, size_t)
#endif #endif
#if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX && !defined POSIX2008 #if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX && !defined POSIX2008
function {long int} jrand48 (unsigned short int[3]) function {long int} jrand48 (unsigned short int[3])
#endif #endif
#if !defined ISO && !defined ISO99 && !defined ISO11 && !defined XPG3 && !defined POSIX && !defined POSIX2008 #if !defined ISO && !defined ISO99 && !defined ISO11 && !defined XPG4 && !defined POSIX && !defined POSIX2008
function {char*} l64a (long) function {char*} l64a (long)
#endif #endif
function {long int} labs (long int) function {long int} labs (long int)
@ -92,7 +92,7 @@ function {long int} labs (long int)
function void lcong48 (unsigned short int[7]) function void lcong48 (unsigned short int[7])
#endif #endif
function ldiv_t ldiv (long int, long int) function ldiv_t ldiv (long int, long int)
#if !defined ISO && !defined POSIX && !defined XPG3 && !defined XPG4 && !defined UNIX98 #if !defined ISO && !defined POSIX && !defined XPG4 && !defined XPG42 && !defined UNIX98
function {long long} llabs (long long) function {long long} llabs (long long)
function lldiv_t lldiv (long long, long long) function lldiv_t lldiv (long long, long long)
#endif #endif
@ -106,10 +106,10 @@ function int mbtowc (wchar_t*, const char*, size_t)
#if defined XOPEN2K8 || defined POSIX2008 #if defined XOPEN2K8 || defined POSIX2008
function {char*} mkdtemp (char*) function {char*} mkdtemp (char*)
#endif #endif
#if !defined ISO && !defined ISO99 && !defined ISO11 && !defined XPG3 && !defined POSIX && !defined XOPEN2K8 && !defined POSIX2008 #if !defined ISO && !defined ISO99 && !defined ISO11 && !defined XPG4 && !defined POSIX && !defined XOPEN2K8 && !defined POSIX2008
function {char*} mktemp (char*) function {char*} mktemp (char*)
#endif #endif
#if !defined ISO && !defined ISO99 && !defined ISO11 && !defined XPG3 && !defined POSIX #if !defined ISO && !defined ISO99 && !defined ISO11 && !defined XPG4 && !defined POSIX
function int mkstemp (char*) function int mkstemp (char*)
#endif #endif
#if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX && !defined POSIX2008 #if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX && !defined POSIX2008
@ -122,7 +122,7 @@ function int posix_memalign (void**, size_t, size_t)
#if defined XOPEN2K || defined XOPEN2K8 #if defined XOPEN2K || defined XOPEN2K8
function int posix_openpt (int) function int posix_openpt (int)
#endif #endif
#if !defined ISO && !defined ISO99 && !defined ISO11 && !defined XPG3 && !defined POSIX && !defined POSIX2008 #if !defined ISO && !defined ISO99 && !defined ISO11 && !defined XPG4 && !defined POSIX && !defined POSIX2008
function {char*} ptsname (int) function {char*} ptsname (int)
#endif #endif
#if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX && !defined POSIX2008 #if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX && !defined POSIX2008
@ -136,54 +136,54 @@ function int rand (void)
#if defined POSIX || defined UNIX98 || defined XOPEN2K || defined XOPEN2K8 || defined POSIX2008 #if defined POSIX || defined UNIX98 || defined XOPEN2K || defined XOPEN2K8 || defined POSIX2008
function int rand_r (unsigned int*) function int rand_r (unsigned int*)
#endif #endif
#if !defined ISO && !defined ISO99 && !defined ISO11 && !defined XPG3 && !defined POSIX && !defined POSIX2008 #if !defined ISO && !defined ISO99 && !defined ISO11 && !defined XPG4 && !defined POSIX && !defined POSIX2008
function long random (void) function long random (void)
#endif #endif
function {void*} realloc (void*, size_t) function {void*} realloc (void*, size_t)
#if !defined ISO && !defined ISO99 && !defined ISO11 && !defined XPG3 && !defined POSIX && !defined POSIX2008 #if !defined ISO && !defined ISO99 && !defined ISO11 && !defined XPG4 && !defined POSIX && !defined POSIX2008
function {char*} realpath (const char*, char*) function {char*} realpath (const char*, char*)
#endif #endif
#if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX && !defined POSIX2008 #if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX && !defined POSIX2008
function {unsigned short int*} seed48 (unsigned short int[3]) function {unsigned short int*} seed48 (unsigned short int[3])
#endif #endif
#if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX && !defined XPG3 && !defined XPG4 && !defined UNIX98 #if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX && !defined XPG4 && !defined XPG42 && !defined UNIX98
function int setenv (const char*, const char*, int) function int setenv (const char*, const char*, int)
#endif #endif
#if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX && !defined POSIX2008 #if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX && !defined POSIX2008
function void setkey (const char*) function void setkey (const char*)
#endif #endif
#if !defined ISO && !defined ISO99 && !defined ISO11 && !defined XPG3 && !defined POSIX && !defined POSIX2008 #if !defined ISO && !defined ISO99 && !defined ISO11 && !defined XPG4 && !defined POSIX && !defined POSIX2008
function {char*} setstate (char*) function {char*} setstate (char*)
#endif #endif
function void srand (unsigned int) function void srand (unsigned int)
#if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX && !defined POSIX2008 #if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX && !defined POSIX2008
function void srand48 (long int) function void srand48 (long int)
#endif #endif
#if !defined ISO && !defined ISO99 && !defined ISO11 && !defined XPG3 && !defined POSIX && !defined POSIX2008 #if !defined ISO && !defined ISO99 && !defined ISO11 && !defined XPG4 && !defined POSIX && !defined POSIX2008
function void srandom (unsigned) function void srandom (unsigned)
#endif #endif
function double strtod (const char*, char**) function double strtod (const char*, char**)
#if !defined ISO && !defined POSIX && !defined XPG3 && !defined XPG4 && !defined UNIX98 #if !defined ISO && !defined POSIX && !defined XPG4 && !defined XPG42 && !defined UNIX98
function float strtof (const char*, char**) function float strtof (const char*, char**)
function {long double} strtold (const char*, char**) function {long double} strtold (const char*, char**)
#endif #endif
function {long int} strtol (const char*, char**, int) function {long int} strtol (const char*, char**, int)
function {unsigned long int} strtoul (const char*, char**, int) function {unsigned long int} strtoul (const char*, char**, int)
#if !defined ISO && !defined POSIX && !defined XPG3 && !defined XPG4 && !defined UNIX98 #if !defined ISO && !defined POSIX && !defined XPG4 && !defined XPG42 && !defined UNIX98
function {long long int} strtoll (const char*, char**, int) function {long long int} strtoll (const char*, char**, int)
function {unsigned long long int} strtoull (const char*, char**, int) function {unsigned long long int} strtoull (const char*, char**, int)
#endif #endif
function int system (const char*) function int system (const char*)
#if defined XPG4 || defined UNIX98 #if defined XPG42 || defined UNIX98
function int ttyslot (void) function int ttyslot (void)
#endif #endif
#if !defined ISO && !defined ISO99 && !defined ISO11 && !defined XPG3 && !defined POSIX && !defined POSIX2008 #if !defined ISO && !defined ISO99 && !defined ISO11 && !defined XPG4 && !defined POSIX && !defined POSIX2008
function int unlockpt (int) function int unlockpt (int)
#endif #endif
#if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX && !defined XPG3 && !defined XPG4 && !defined UNIX98 #if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX && !defined XPG4 && !defined XPG42 && !defined UNIX98
function int unsetenv (const char*) function int unsetenv (const char*)
#endif #endif
#if defined XPG4 || defined UNIX98 #if defined XPG42 || defined UNIX98
function {void*} valloc (size_t) function {void*} valloc (size_t)
#endif #endif
function size_t wcstombs (char*, const wchar_t*, size_t) function size_t wcstombs (char*, const wchar_t*, size_t)

View File

@ -27,7 +27,7 @@ function int strcoll_l (const char*, const char*, locale_t)
#endif #endif
function {char*} strcpy (char*, const char*) function {char*} strcpy (char*, const char*)
function size_t strcspn (const char*, const char*) function size_t strcspn (const char*, const char*)
#if !defined ISO && !defined ISO99 & !defined ISO11 && !defined XPG3 && !defined POSIX && !defined POSIX2008 #if !defined ISO && !defined ISO99 & !defined ISO11 && !defined XPG4 && !defined POSIX && !defined POSIX2008
function {char*} strdup (const char*) function {char*} strdup (const char*)
#endif #endif
function {char*} strerror (int) function {char*} strerror (int)

View File

@ -1,4 +1,4 @@
#if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX && !defined XPG3 #if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX && !defined XPG4
# if !defined XOPEN2K8 && !defined POSIX2008 # if !defined XOPEN2K8 && !defined POSIX2008
function int bcmp (const void*, const void*, size_t) function int bcmp (const void*, const void*, size_t)
function void bcopy (const void*, void*, size_t) function void bcopy (const void*, void*, size_t)

View File

@ -1,4 +1,4 @@
#if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX && !defined XPG3 #if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX && !defined XPG4
type {struct bandinfo} type {struct bandinfo}
element {struct bandinfo} {unsigned char} bi_pri element {struct bandinfo} {unsigned char} bi_pri

View File

@ -1,4 +1,4 @@
#if !defined ISO && !defined ISO99 && !defined ISO11 && !defined XPG3 #if !defined ISO && !defined ISO99 && !defined ISO11 && !defined XPG4
constant PROT_READ constant PROT_READ
constant PROT_WRITE constant PROT_WRITE
constant PROT_EXEC constant PROT_EXEC
@ -17,7 +17,7 @@ constant MCL_FUTURE
constant MAP_FAILED constant MAP_FAILED
# if !defined POSIX && !defined XPG3 && !defined XPG4 && !defined UNIX98 # if !defined POSIX && !defined XPG4 && !defined XPG42 && !defined UNIX98
constant POSIX_MADV_NORMAL constant POSIX_MADV_NORMAL
constant POSIX_MADV_SEQUENTIAL constant POSIX_MADV_SEQUENTIAL
constant POSIX_MADV_RANDOM constant POSIX_MADV_RANDOM

View File

@ -1,4 +1,4 @@
#if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX && !defined POSIX2008 && !defined XPG3 #if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX && !defined POSIX2008 && !defined XPG4
constant PRIO_PROCESS constant PRIO_PROCESS
constant PRIO_PGRP constant PRIO_PGRP
constant PRIO_USER constant PRIO_USER

View File

@ -1,4 +1,4 @@
#if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX && !defined XPG3 && !defined XPG4 && !defined UNIX98 #if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX && !defined XPG4 && !defined XPG42 && !defined UNIX98
type time_t type time_t
type suseconds_t type suseconds_t
@ -14,7 +14,7 @@ element {struct timespec} time_t tv_sec
xfail[x86_64-x32-linux]-element {struct timespec} long tv_nsec xfail[x86_64-x32-linux]-element {struct timespec} long tv_nsec
type fd_set type fd_set
#if defined XPG3 || defined XPG4 || defined UNIX98 #if defined XPG4 || defined XPG42 || defined UNIX98
element fd_set long fds_bits [] element fd_set long fds_bits []
#endif #endif

View File

@ -1,4 +1,4 @@
#if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX && !defined XPG3 #if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX && !defined XPG4
type socklen_t type socklen_t
type sa_family_t type sa_family_t
@ -113,7 +113,7 @@ function int setsockopt (int, int, int, const void*, socklen_t)
function int shutdown (int, int) function int shutdown (int, int)
function int socket (int, int, int) function int socket (int, int, int)
function int socketpair (int, int, int, int[2]) function int socketpair (int, int, int, int[2])
#if !defined XPG4 && !defined UNIX98 #if !defined XPG42 && !defined UNIX98
function int sockatmark (int) function int sockatmark (int)
#endif #endif

View File

@ -1,6 +1,6 @@
#if !defined ISO && !defined ISO99 && !defined ISO11 #if !defined ISO && !defined ISO99 && !defined ISO11
#if !defined POSIX && !defined POSIX2008 && !defined XPG3 && !defined XPG4 #if !defined POSIX && !defined POSIX2008 && !defined XPG4 && !defined XPG42
type blkcnt_t type blkcnt_t
type blksize_t type blksize_t
#endif #endif
@ -46,9 +46,9 @@ element {struct stat} {struct timespec} st_atim
element {struct stat} {struct timespec} st_mtim element {struct stat} {struct timespec} st_mtim
element {struct stat} {struct timespec} st_ctim element {struct stat} {struct timespec} st_ctim
#endif #endif
#if !defined XPG3 && !defined POSIX && !defined POSIX2008 #if !defined XPG4 && !defined POSIX && !defined POSIX2008
# ifdef XPG4 # ifdef XPG42
// The XPG4 use of "long" for these fields is not compatible with the // The XPG42 use of "long" for these fields is not compatible with the
// use of typedefs in future standards to support values outside the // use of typedefs in future standards to support values outside the
// range of "long". // range of "long".
xfail-element {struct stat} long st_blksize xfail-element {struct stat} long st_blksize
@ -73,7 +73,7 @@ constant S_IFCHR
constant S_IFIFO constant S_IFIFO
constant S_IFREG constant S_IFREG
constant S_IFDIR constant S_IFDIR
# ifndef XPG3 # ifndef XPG4
constant S_IFLNK constant S_IFLNK
constant S_IFSOCK constant S_IFSOCK
# endif # endif
@ -93,7 +93,7 @@ constant S_IWOTH
constant S_IXOTH constant S_IXOTH
constant S_ISUID constant S_ISUID
constant S_ISGID constant S_ISGID
#if !defined XPG3 && !defined POSIX && !defined POSIX2008 #if !defined XPG4 && !defined POSIX && !defined POSIX2008
constant S_ISVTX constant S_ISVTX
#endif #endif
@ -102,7 +102,7 @@ macro S_ISCHR
macro S_ISDIR macro S_ISDIR
macro S_ISFIFO macro S_ISFIFO
macro S_ISREG macro S_ISREG
#if !defined XPG3 && !defined POSIX #if !defined XPG4 && !defined POSIX
macro S_ISLNK macro S_ISLNK
macro S_ISSOCK macro S_ISSOCK
#endif #endif
@ -111,7 +111,7 @@ macro S_ISSOCK
optional-macro S_TYPEISMQ optional-macro S_TYPEISMQ
optional-macro S_TYPEISSEM optional-macro S_TYPEISSEM
optional-macro S_TYPEISSHM optional-macro S_TYPEISSHM
# if !defined POSIX && !defined XPG3 && !defined XPG4 && !defined UNIX98 # if !defined POSIX && !defined XPG4 && !defined XPG42 && !defined UNIX98
optional-macro S_TYPEISTMO optional-macro S_TYPEISTMO
# endif # endif
@ -121,7 +121,7 @@ constant UTIME_OMIT
# endif # endif
function int chmod (const char*, mode_t) function int chmod (const char*, mode_t)
# ifndef XPG3 # ifndef XPG4
function int fchmod (int, mode_t) function int fchmod (int, mode_t)
# endif # endif
# if defined XOPEN2K8 || defined POSIX2008 # if defined XOPEN2K8 || defined POSIX2008
@ -132,7 +132,7 @@ function int fstat (int, struct stat*)
function int fstatat (int, const char*, struct stat*, int) function int fstatat (int, const char*, struct stat*, int)
function int futimens (int, const struct timespec[2]) function int futimens (int, const struct timespec[2])
# endif # endif
#if !defined XPG3 && !defined POSIX #if !defined XPG4 && !defined POSIX
function int lstat (const char*, struct stat*) function int lstat (const char*, struct stat*)
#endif #endif
function int mkdir (const char*, mode_t) function int mkdir (const char*, mode_t)
@ -143,7 +143,7 @@ function int mkfifo (const char*, mode_t)
# if defined XOPEN2K8 || defined POSIX2008 # if defined XOPEN2K8 || defined POSIX2008
function int mkfifoat (int, const char*, mode_t) function int mkfifoat (int, const char*, mode_t)
# endif # endif
# if !defined XPG3 && !defined POSIX && !defined POSIX2008 # if !defined XPG4 && !defined POSIX && !defined POSIX2008
function int mknod (const char*, mode_t, dev_t) function int mknod (const char*, mode_t, dev_t)
# endif # endif
# ifdef XOPEN2K8 # ifdef XOPEN2K8

View File

@ -1,4 +1,4 @@
#if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX && !defined XPG3 #if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX && !defined XPG4
type {struct statvfs} type {struct statvfs}
element {struct statvfs} {unsigned long} f_bsize element {struct statvfs} {unsigned long} f_bsize

View File

@ -1,4 +1,4 @@
#if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX && !defined POSIX2008 && !defined XPG3 #if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX && !defined POSIX2008 && !defined XPG4
type {struct timeval} type {struct timeval}
element {struct timeval} time_t tv_sec element {struct timeval} time_t tv_sec

View File

@ -1,4 +1,4 @@
#if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX && !defined XPG3 && !defined POSIX2008 && !defined XOPEN2K8 #if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX && !defined XPG4 && !defined POSIX2008 && !defined XOPEN2K8
type {struct timeb} type {struct timeb}
element {struct timeb} time_t time element {struct timeb} time_t time

View File

@ -1,11 +1,11 @@
#if !defined ISO && !defined ISO99 && !defined ISO11 #if !defined ISO && !defined ISO99 && !defined ISO11
#if !defined POSIX #if !defined POSIX
# if !defined XPG3 && !defined XPG4 # if !defined XPG4 && !defined XPG42
type blkcnt_t type blkcnt_t
type blksize_t type blksize_t
# endif # endif
type clock_t type clock_t
# if !defined XPG3 && !defined XPG4 # if !defined XPG4 && !defined XPG42
type clockid_t type clockid_t
# endif # endif
#endif #endif
@ -26,7 +26,7 @@ type mode_t
type nlink_t type nlink_t
type off_t type off_t
type pid_t type pid_t
#if !defined XPG3 && !defined XPG4 #if !defined XPG4 && !defined XPG42
type pthread_attr_t type pthread_attr_t
#if !defined POSIX && !defined UNIX98 #if !defined POSIX && !defined UNIX98
type pthread_barrier_t type pthread_barrier_t

View File

@ -1,4 +1,4 @@
#if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX && !defined XPG3 && !defined POSIX2008 #if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX && !defined XPG4 && !defined POSIX2008
type {struct iovec} type {struct iovec}
element {struct iovec} {void*} iov_base element {struct iovec} {void*} iov_base

View File

@ -1,4 +1,4 @@
#if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX && !defined XPG3 #if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX && !defined XPG4
type {struct sockaddr_un} type {struct sockaddr_un}
element {struct sockaddr_un} sa_family_t sun_family element {struct sockaddr_un} sa_family_t sun_family

View File

@ -48,7 +48,7 @@ element siginfo_t long si_band
element siginfo_t {union sigval} si_value element siginfo_t {union sigval} si_value
#endif #endif
#if !defined POSIX && !defined XPG3 && !defined XOPEN2K8 && !defined POSIX2008 #if !defined POSIX && !defined XPG4 && !defined XOPEN2K8 && !defined POSIX2008
type {struct rusage} type {struct rusage}
element {struct rusage} {struct timeval} ru_utime element {struct rusage} {struct timeval} ru_utime

View File

@ -1,4 +1,4 @@
#if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX && !defined POSIX2008 && !defined XPG3 #if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX && !defined POSIX2008 && !defined XPG4
constant LOG_PID constant LOG_PID
constant LOG_CONS constant LOG_CONS
constant LOG_NDELAY constant LOG_NDELAY

View File

@ -144,7 +144,7 @@ function int tcdrain (int)
function int tcflow (int, int) function int tcflow (int, int)
function int tcflush (int, int) function int tcflush (int, int)
function int tcgetattr (int, struct termios*) function int tcgetattr (int, struct termios*)
#if !defined POSIX && !defined XPG3 #if !defined POSIX && !defined XPG4
function pid_t tcgetsid (int) function pid_t tcgetsid (int)
#endif #endif
function int tcsendbreak (int, int) function int tcsendbreak (int, int)

View File

@ -1,4 +1,4 @@
#if !defined ISO && !defined POSIX && !defined XPG3 && !defined XPG4 && !defined UNIX98 #if !defined ISO && !defined POSIX && !defined XPG4 && !defined XPG42 && !defined UNIX98
#include "math.h-data" #include "math.h-data"
#include "complex.h-data" #include "complex.h-data"

View File

@ -5,7 +5,7 @@ macro CLOCKS_PER_SEC {clock_t}
macro-int-constant TIME_UTC > 0 macro-int-constant TIME_UTC > 0
#endif #endif
#if !defined ISO && !defined ISO99 && !defined XPG3 && !defined XPG4 #if !defined ISO && !defined ISO99 && !defined XPG4 && !defined XPG42
type {struct timespec} type {struct timespec}
element {struct timespec} time_t tv_sec element {struct timespec} time_t tv_sec
@ -46,7 +46,7 @@ function int timespec_get (struct timespec *, int)
# if !defined XOPEN2K && !defined XOPEN2K8 && !defined POSIX2008 # if !defined XOPEN2K && !defined XOPEN2K8 && !defined POSIX2008
symbol CLK_TCK symbol CLK_TCK
# endif # endif
# if !defined XPG3 && !defined XPG4 # if !defined XPG4 && !defined XPG42
# if !defined POSIX && !defined UNIX98 # if !defined POSIX && !defined UNIX98
constant CLOCK_PROCESS_CPUTIME_ID constant CLOCK_PROCESS_CPUTIME_ID
constant CLOCK_THREAD_CPUTIME_ID constant CLOCK_THREAD_CPUTIME_ID
@ -73,31 +73,31 @@ type locale_t
tag {struct sigevent} tag {struct sigevent}
# endif # endif
# if !defined XPG3 && !defined POSIX && !defined POSIX2008 # if !defined XPG4 && !defined POSIX && !defined POSIX2008
variable int getdate_err variable int getdate_err
# endif # endif
function {char*} asctime_r (const struct tm*, char*) function {char*} asctime_r (const struct tm*, char*)
#if !defined POSIX && !defined XPG3 && !defined XPG4 && !defined UNIX98 #if !defined POSIX && !defined XPG4 && !defined XPG42 && !defined UNIX98
function int clock_getcpuclockid (pid_t, clockid_t*) function int clock_getcpuclockid (pid_t, clockid_t*)
#endif #endif
#if !defined XPG3 && !defined XPG4 #if !defined XPG4 && !defined XPG42
function int clock_getres (clockid_t, struct timespec*) function int clock_getres (clockid_t, struct timespec*)
function int clock_gettime (clockid_t, struct timespec*) function int clock_gettime (clockid_t, struct timespec*)
#endif #endif
#if !defined POSIX && !defined XPG3 && !defined XPG4 && !defined UNIX98 #if !defined POSIX && !defined XPG4 && !defined XPG42 && !defined UNIX98
function int clock_nanosleep (clockid_t, int, const struct timespec*, struct timespec*) function int clock_nanosleep (clockid_t, int, const struct timespec*, struct timespec*)
#endif #endif
#if !defined XPG3 && !defined XPG4 #if !defined XPG4 && !defined XPG42
function int clock_settime (clockid_t, const struct timespec*) function int clock_settime (clockid_t, const struct timespec*)
#endif #endif
function {char*} ctime_r (const time_t*, char*) function {char*} ctime_r (const time_t*, char*)
# if !defined XPG3 && !defined POSIX && !defined POSIX2008 # if !defined XPG4 && !defined POSIX && !defined POSIX2008
function {struct tm*} getdate (const char*) function {struct tm*} getdate (const char*)
# endif # endif
function {struct tm*} gmtime_r (const time_t*, struct tm*) function {struct tm*} gmtime_r (const time_t*, struct tm*)
function {struct tm*} localtime_r (const time_t*, struct tm*) function {struct tm*} localtime_r (const time_t*, struct tm*)
# if !defined XPG3 && !defined XPG4 # if !defined XPG4 && !defined XPG42
function int nanosleep (const struct timespec*, struct timespec*) function int nanosleep (const struct timespec*, struct timespec*)
# endif # endif
# if defined XOPEN2K8 || defined POSIX2008 # if defined XOPEN2K8 || defined POSIX2008
@ -106,7 +106,7 @@ function size_t strftime_l (char*, size_t, const char*, const struct tm*, locale
# if !defined POSIX && !defined POSIX2008 # if !defined POSIX && !defined POSIX2008
function {char*} strptime (const char*, const char*, struct tm*) function {char*} strptime (const char*, const char*, struct tm*)
# endif # endif
# if !defined XPG3 && !defined XPG4 # if !defined XPG4 && !defined XPG42
function int timer_create (clockid_t, struct sigevent*, timer_t*) function int timer_create (clockid_t, struct sigevent*, timer_t*)
function int timer_delete (timer_t) function int timer_delete (timer_t)
function int timer_gettime (timer_t, struct itimerspec*) function int timer_gettime (timer_t, struct itimerspec*)

View File

@ -1,4 +1,4 @@
#if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX && !defined XPG3 && !defined POSIX2008 && !defined XOPEN2K8 #if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX && !defined XPG4 && !defined POSIX2008 && !defined XOPEN2K8
type mcontext_t type mcontext_t
type ucontext_t type ucontext_t

View File

@ -7,7 +7,7 @@
#endif #endif
constant _POSIX_VERSION constant _POSIX_VERSION
#if defined POSIX || defined XPG3 || defined XPG4 || defined UNIX98 #if defined POSIX || defined XPG4 || defined XPG42 || defined UNIX98
constant _POSIX2_C_VERSION constant _POSIX2_C_VERSION
#endif #endif
#ifndef POSIX #ifndef POSIX
@ -375,7 +375,7 @@ constant _SC_THREAD_ROBUST_PRIO_INHERIT
constant _SC_THREAD_ROBUST_PRIO_PROTECT constant _SC_THREAD_ROBUST_PRIO_PROTECT
#endif #endif
#if !defined XPG3 && !defined POSIX && !defined POSIX2008 #if !defined XPG4 && !defined POSIX && !defined POSIX2008
constant F_LOCK constant F_LOCK
constant F_ULOCK constant F_ULOCK
constant F_TEST constant F_TEST
@ -417,21 +417,21 @@ type off_t
type pid_t type pid_t
#endif #endif
#if !defined POSIX && !defined XPG3 #if !defined POSIX && !defined XPG4
type useconds_t type useconds_t
# ifndef XPG4 # ifndef XPG42
type intptr_t type intptr_t
# endif # endif
#endif #endif
function int access (const char*, int) function int access (const char*, int)
function {unsigned int} alarm (unsigned int) function {unsigned int} alarm (unsigned int)
#if !defined XOPEN2K && !defined XOPEN2K8 && !defined XPG3 && !defined POSIX && !defined POSIX2008 #if !defined XOPEN2K && !defined XOPEN2K8 && !defined XPG4 && !defined POSIX && !defined POSIX2008
function int brk (void*) function int brk (void*)
#endif #endif
function int chdir (const char*) function int chdir (const char*)
#if defined XPG3 || defined XPG4 || defined UNIX98 #if defined XPG4 || defined XPG42 || defined UNIX98
function int chroot (const char*) function int chroot (const char*)
#endif #endif
function int chown (const char*, uid_t, gid_t) function int chown (const char*, uid_t, gid_t)
@ -440,7 +440,7 @@ function size_t confstr (int, char*, size_t)
#if !defined POSIX && !defined POSIX2008 #if !defined POSIX && !defined POSIX2008
function {char*} crypt (const char*, const char*) function {char*} crypt (const char*, const char*)
#endif #endif
#if defined XPG3 || defined XPG4 || defined UNIX98 #if defined XPG4 || defined XPG42 || defined UNIX98
function {char*} ctermid (char*) function {char*} ctermid (char*)
function {char*} cuserid (char*) function {char*} cuserid (char*)
#endif #endif
@ -462,16 +462,16 @@ function void _exit (int)
# if defined XOPEN2K8 || defined POSIX2008 # if defined XOPEN2K8 || defined POSIX2008
function int faccessat (int, const char*, int, int) function int faccessat (int, const char*, int, int)
# endif # endif
#if !defined XPG3 && !defined POSIX #if !defined XPG4 && !defined POSIX
function int fchown (int, uid_t, gid_t) function int fchown (int, uid_t, gid_t)
#endif #endif
# if defined XOPEN2K8 || defined POSIX2008 # if defined XOPEN2K8 || defined POSIX2008
function int fchownat (int, const char*, uid_t, gid_t, int) function int fchownat (int, const char*, uid_t, gid_t, int)
# endif # endif
#if !defined XPG3 && !defined POSIX #if !defined XPG4 && !defined POSIX
function int fchdir (int) function int fchdir (int)
#endif #endif
#if !defined XPG3 && !defined XPG4 #if !defined XPG4 && !defined XPG42
function int fdatasync (int) function int fdatasync (int)
#endif #endif
# if defined XOPEN2K8 || defined POSIX2008 # if defined XOPEN2K8 || defined POSIX2008
@ -480,56 +480,56 @@ function int fexecve (int, char *const[], char *const[])
function pid_t fork (void) function pid_t fork (void)
function {long int} fpathconf (int, int) function {long int} fpathconf (int, int)
function int fsync (int) function int fsync (int)
#ifndef XPG3 #ifndef XPG4
function int ftruncate (int, off_t) function int ftruncate (int, off_t)
#endif #endif
function {char*} getcwd (char*, size_t) function {char*} getcwd (char*, size_t)
#if !defined XOPEN2K && !defined XOPEN2K8 && !defined XPG3 && !defined POSIX && !defined POSIX2008 #if !defined XOPEN2K && !defined XOPEN2K8 && !defined XPG4 && !defined POSIX && !defined POSIX2008
function int getdtablesize (void) function int getdtablesize (void)
#endif #endif
function gid_t getegid (void) function gid_t getegid (void)
function uid_t geteuid (void) function uid_t geteuid (void)
function gid_t getgid (void) function gid_t getgid (void)
function int getgroups (int, gid_t[]) function int getgroups (int, gid_t[])
#if !defined XPG3 && !defined POSIX && !defined POSIX2008 #if !defined XPG4 && !defined POSIX && !defined POSIX2008
function long gethostid (void) function long gethostid (void)
#endif #endif
#if !defined POSIX && !defined XPG3 #if !defined POSIX && !defined XPG4
function int gethostname (char*, size_t) function int gethostname (char*, size_t)
#endif #endif
function {char*} getlogin (void) function {char*} getlogin (void)
#if !defined XPG3 && !defined XPG4 #if !defined XPG4 && !defined XPG42
function int getlogin_r (char*, size_t) function int getlogin_r (char*, size_t)
#endif #endif
function int getopt (int, char*const[], const char*) function int getopt (int, char*const[], const char*)
#if defined XPG4 || defined UNIX98 #if defined XPG42 || defined UNIX98
function int getpagesize (void) function int getpagesize (void)
#endif #endif
#if defined XPG3 || defined XPG4 || defined UNIX98 #if defined XPG4 || defined XPG42 || defined UNIX98
function {char*} getpass (const char*) function {char*} getpass (const char*)
#endif #endif
#if !defined XPG3 && !defined POSIX #if !defined XPG4 && !defined POSIX
function pid_t getpgid (pid_t) function pid_t getpgid (pid_t)
#endif #endif
function pid_t getpgrp (void) function pid_t getpgrp (void)
function pid_t getpid (void) function pid_t getpid (void)
function pid_t getppid (void) function pid_t getppid (void)
#if !defined XPG3 && !defined POSIX #if !defined XPG4 && !defined POSIX
function pid_t getsid (pid_t) function pid_t getsid (pid_t)
#endif #endif
function uid_t getuid (void) function uid_t getuid (void)
#if defined XPG4 || defined UNIX98 || defined XOPEN2K #if defined XPG42 || defined UNIX98 || defined XOPEN2K
function {char*} getwd (char*) function {char*} getwd (char*)
#endif #endif
function int isatty (int) function int isatty (int)
#if !defined XPG3 && !defined POSIX #if !defined XPG4 && !defined POSIX
function int lchown (const char*, uid_t, gid_t) function int lchown (const char*, uid_t, gid_t)
#endif #endif
function int link (const char*, const char*) function int link (const char*, const char*)
# if defined XOPEN2K8 || defined POSIX2008 # if defined XOPEN2K8 || defined POSIX2008
function int linkat (int, const char*, int, const char*, int) function int linkat (int, const char*, int, const char*, int)
# endif # endif
# if !defined XPG3 && !defined POSIX && !defined POSIX2008 # if !defined XPG4 && !defined POSIX && !defined POSIX2008
function int lockf (int, int, off_t) function int lockf (int, int, off_t)
# endif # endif
function off_t lseek (int, off_t, int) function off_t lseek (int, off_t, int)
@ -539,33 +539,33 @@ function int nice (int)
function {long int} pathconf (const char*, int) function {long int} pathconf (const char*, int)
function int pause (void) function int pause (void)
function int pipe (int[2]) function int pipe (int[2])
#if !defined POSIX && !defined XPG3 && !defined XPG4 #if !defined POSIX && !defined XPG4 && !defined XPG42
function ssize_t pread (int, void*, size_t, off_t) function ssize_t pread (int, void*, size_t, off_t)
#endif #endif
#if !defined POSIX && !defined XOPEN2K && !defined XOPEN2K8 && !defined POSIX2008 && !defined XPG3 && !defined XPG4 #if !defined POSIX && !defined XOPEN2K && !defined XOPEN2K8 && !defined POSIX2008 && !defined XPG4 && !defined XPG42
function int pthread_atfork (void(*)(void), void(*)(void), void(*)(void)) function int pthread_atfork (void(*)(void), void(*)(void), void(*)(void))
#endif #endif
#if !defined POSIX && !defined XPG3 && !defined XPG4 #if !defined POSIX && !defined XPG4 && !defined XPG42
function ssize_t pwrite (int, const void*, size_t, off_t) function ssize_t pwrite (int, const void*, size_t, off_t)
#endif #endif
function ssize_t read (int, void*, size_t) function ssize_t read (int, void*, size_t)
#if !defined XPG3 && !defined POSIX #if !defined XPG4 && !defined POSIX
function ssize_t readlink (const char*, char*, size_t) function ssize_t readlink (const char*, char*, size_t)
#endif #endif
# if defined XOPEN2K8 || defined POSIX2008 # if defined XOPEN2K8 || defined POSIX2008
function ssize_t readlinkat (int, const char*, char*, size_t) function ssize_t readlinkat (int, const char*, char*, size_t)
# endif # endif
function int rmdir (const char*) function int rmdir (const char*)
#if !defined XOPEN2K && !defined XOPEN2K8 && !defined XPG3 && !defined POSIX && !defined POSIX2008 #if !defined XOPEN2K && !defined XOPEN2K8 && !defined XPG4 && !defined POSIX && !defined POSIX2008
function {void*} sbrk (intptr_t) function {void*} sbrk (intptr_t)
#endif #endif
#if !defined POSIX && !defined XPG3 && !defined XPG4 && !defined UNIX98 #if !defined POSIX && !defined XPG4 && !defined XPG42 && !defined UNIX98
function int setegid (gid_t) function int setegid (gid_t)
function int seteuid (uid_t) function int seteuid (uid_t)
#endif #endif
function int setgid (gid_t) function int setgid (gid_t)
function int setpgid (pid_t, pid_t) function int setpgid (pid_t, pid_t)
# if !defined XPG3 && !defined POSIX && !defined POSIX2008 # if !defined XPG4 && !defined POSIX && !defined POSIX2008
function pid_t setpgrp (void) function pid_t setpgrp (void)
function int setregid (gid_t, gid_t) function int setregid (gid_t, gid_t)
function int setreuid (uid_t, uid_t) function int setreuid (uid_t, uid_t)
@ -576,31 +576,31 @@ function {unsigned int} sleep (unsigned int)
# if !defined POSIX && !defined POSIX2008 # if !defined POSIX && !defined POSIX2008
function void swab (const void*, void*, ssize_t) function void swab (const void*, void*, ssize_t)
# endif # endif
#if !defined XPG3 && !defined POSIX #if !defined XPG4 && !defined POSIX
function int symlink (const char*, const char*) function int symlink (const char*, const char*)
# endif # endif
# if defined XOPEN2K8 || defined POSIX2008 # if defined XOPEN2K8 || defined POSIX2008
function int symlinkat (const char*, int, const char*) function int symlinkat (const char*, int, const char*)
# endif # endif
# if !defined XPG3 && !defined POSIX && !defined POSIX2008 # if !defined XPG4 && !defined POSIX && !defined POSIX2008
function void sync (void) function void sync (void)
# endif # endif
function {long int} sysconf (int) function {long int} sysconf (int)
function pid_t tcgetpgrp (int) function pid_t tcgetpgrp (int)
function int tcsetpgrp (int, pid_t) function int tcsetpgrp (int, pid_t)
#if !defined XPG3 && !defined POSIX #if !defined XPG4 && !defined POSIX
function int truncate (const char*, off_t) function int truncate (const char*, off_t)
#endif #endif
function {char*} ttyname (int) function {char*} ttyname (int)
function int ttyname_r (int, char*, size_t) function int ttyname_r (int, char*, size_t)
#if defined XPG4 || defined UNIX98 || defined XOPEN2K #if defined XPG42 || defined UNIX98 || defined XOPEN2K
function useconds_t ualarm (useconds_t, useconds_t) function useconds_t ualarm (useconds_t, useconds_t)
#endif #endif
function int unlink (const char*) function int unlink (const char*)
# if defined XOPEN2K8 || defined POSIX2008 # if defined XOPEN2K8 || defined POSIX2008
function int unlinkat (int, const char*, int) function int unlinkat (int, const char*, int)
# endif # endif
#if defined XPG4 || defined UNIX98 || defined XOPEN2K #if defined XPG42 || defined UNIX98 || defined XOPEN2K
function int usleep (useconds_t) function int usleep (useconds_t)
function pid_t vfork (void) function pid_t vfork (void)
#endif #endif

View File

@ -1,4 +1,4 @@
#if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX && !defined POSIX2008 && !defined XPG3 #if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX && !defined POSIX2008 && !defined XPG4
type {struct utmpx} type {struct utmpx}
element {struct utmpx} char ut_user [] element {struct utmpx} char ut_user []

View File

@ -1,4 +1,4 @@
#if defined XPG3 || defined XPG4 || defined UNIX98 #if defined XPG4 || defined XPG42 || defined UNIX98
macro va_alist macro va_alist
macro va_dcl macro va_dcl
type va_list type va_list

View File

@ -1,4 +1,4 @@
#if !defined ISO && !defined POSIX && !defined XPG3 && !defined XPG4 #if !defined ISO && !defined POSIX && !defined XPG4 && !defined XPG42
type wchar_t type wchar_t
type wint_t type wint_t
# if !defined ISO99 && !defined ISO11 && !defined POSIX2008 # if !defined ISO99 && !defined ISO11 && !defined POSIX2008

View File

@ -1,4 +1,4 @@
#if !defined ISO && !defined POSIX && !defined XPG3 && !defined XPG4 #if !defined ISO && !defined POSIX && !defined XPG4 && !defined XPG42
type wint_t type wint_t
type wctrans_t type wctrans_t
type wctype_t type wctype_t

View File

@ -40,11 +40,11 @@ $extra_syms{"ISO11"} = ["errno", "math_errhandling", "setjmp", "va_end"];
# The following lists may not be exhaustive. # The following lists may not be exhaustive.
$extra_syms{"POSIX"} = ["errno", "setjmp", "va_end", "environ", "sigsetjmp", $extra_syms{"POSIX"} = ["errno", "setjmp", "va_end", "environ", "sigsetjmp",
"optarg", "optind", "opterr", "optopt", "tzname"]; "optarg", "optind", "opterr", "optopt", "tzname"];
$extra_syms{"XPG3"} = ["errno", "setjmp", "va_end", "environ", "signgam", $extra_syms{"XPG4"} = ["errno", "setjmp", "va_end", "environ", "signgam",
"loc1", "loc2", "locs", "sigsetjmp", "optarg", "loc1", "loc2", "locs", "sigsetjmp", "optarg",
"optind", "opterr", "optopt", "daylight", "timezone", "optind", "opterr", "optopt", "daylight", "timezone",
"tzname"]; "tzname"];
$extra_syms{"XPG4"} = ["errno", "setjmp", "va_end", "environ", "signgam", $extra_syms{"XPG42"} = ["errno", "setjmp", "va_end", "environ", "signgam",
"loc1", "loc2", "locs", "sigsetjmp", "optarg", "loc1", "loc2", "locs", "sigsetjmp", "optarg",
"optind", "opterr", "optopt", "daylight", "timezone", "optind", "opterr", "optopt", "daylight", "timezone",
"tzname", "getdate_err", "h_errno"]; "tzname", "getdate_err", "h_errno"];