Update.
authorUlrich Drepper <drepper@redhat.com>
Sun, 28 Jan 2001 05:38:29 +0000 (05:38 +0000)
committerUlrich Drepper <drepper@redhat.com>
Sun, 28 Jan 2001 05:38:29 +0000 (05:38 +0000)
* conform/data/time.h-data: CLK_TCK is not in XPG6.  Fix tzname entry.
* sysdeps/mach/hurd/bits/time.h: Don't define CLK_TCK for XPG6.
* sysdeps/mach/hurd/i386/bits/time.h: Likewise.
* sysdeps/unix/sysv/linux/bits/time.h: Likewise.
* sysdeps/unix/sysv/linux/alpha/bits/time.h: Likewise.
* sysdeps/unix/sysv/linux/i386/bits/time.h: Likewise.
* sysdeps/unix/sysv/linux/ia64/bits/time.h: Likewise.
* time/time.h: Likewise.

* conform/conformtest.pl (@headers): Add complex.h and tgmath.h.
* conform/data/complex.h-data: New file.
* conform/data/tgmath.h-data: New file.

* conform/data/wchar.h-data: Add missing functions.

* sysdeps/gnu/bits/utmpx.h: Define RUN_LVL only if __USE_GNU.

* conform/data/termios.h-data: Add missing const in tcsetattr()
prototype.

* posix/sys/wait.h: Include <signal.h> and <sys/resource.h>.
Don't define pid_t here.

* conform/data/sys/utsname.h-data: Don't provide fixed array sizes.

17 files changed:
ChangeLog
conform/conformtest.pl
conform/data/complex.h-data [new file with mode: 0644]
conform/data/sys/utsname.h-data
conform/data/termios.h-data
conform/data/tgmath.h-data [new file with mode: 0644]
conform/data/time.h-data
conform/data/wchar.h-data
posix/sys/wait.h
sysdeps/gnu/bits/utmpx.h
sysdeps/mach/hurd/bits/time.h
sysdeps/mach/hurd/i386/bits/time.h
sysdeps/unix/sysv/linux/alpha/bits/time.h
sysdeps/unix/sysv/linux/bits/time.h
sysdeps/unix/sysv/linux/i386/bits/time.h
sysdeps/unix/sysv/linux/ia64/bits/time.h
time/time.h

index b29afb5d3825118b202b5bc0d56af73e18a8eeb3..925bc7a4739797a23661f087bc22a1266da4b045 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,30 @@
 2001-01-27  Ulrich Drepper  <drepper@redhat.com>
 
+       * conform/data/time.h-data: CLK_TCK is not in XPG6.  Fix tzname entry.
+       * sysdeps/mach/hurd/bits/time.h: Don't define CLK_TCK for XPG6.
+       * sysdeps/mach/hurd/i386/bits/time.h: Likewise.
+       * sysdeps/unix/sysv/linux/bits/time.h: Likewise.
+       * sysdeps/unix/sysv/linux/alpha/bits/time.h: Likewise.
+       * sysdeps/unix/sysv/linux/i386/bits/time.h: Likewise.
+       * sysdeps/unix/sysv/linux/ia64/bits/time.h: Likewise.
+       * time/time.h: Likewise.
+
+       * conform/conformtest.pl (@headers): Add complex.h and tgmath.h.
+       * conform/data/complex.h-data: New file.
+       * conform/data/tgmath.h-data: New file.
+
+       * conform/data/wchar.h-data: Add missing functions.
+
+       * sysdeps/gnu/bits/utmpx.h: Define RUN_LVL only if __USE_GNU.
+
+       * conform/data/termios.h-data: Add missing const in tcsetattr()
+       prototype.
+
+       * posix/sys/wait.h: Include <signal.h> and <sys/resource.h>.
+       Don't define pid_t here.
+
+       * conform/data/sys/utsname.h-data: Don't provide fixed array sizes.
+
        * conform/data/sys/time.h-data: Allow sys/select.h.
        * conform/data/sys/un.h-data: Fix typo.
        * time/sys/time.h: Don't include all of <time.h>, just struct timeval.
index f7c5368c3de395627e7e16102b3414f2cf71720e..371a04efe1bcdc967ffba926c9593c560131fa39 100644 (file)
@@ -12,21 +12,21 @@ GetOptions ('headers=s' => \@headers, 'dialect=s' => \$dialect);
 if (@headers == ()) {
   @headers = ("wordexp.h", "wctype.h", "wchar.h", "varargs.h", "utmpx.h",
              "utime.h", "unistd.h", "ulimit.h", "ucontext.h", "time.h",
-             "termios.h", "tar.h", "sys/wait.h", "sys/utsname.h", "sys/un.h",
-             "sys/uio.h", "sys/types.h", "sys/times.h", "sys/timeb.h",
-             "sys/time.h", "sys/statvfs.h", "sys/stat.h", "sys/socket.h",
-             "sys/shm.h", "sys/sem.h", "sys/select.h", "sys/resource.h",
-             "sys/msg.h", "sys/mman.h", "sys/ipc.h", "syslog.h", "stropts.h",
-             "strings.h", "string.h", "stdlib.h", "stdio.h", "stdint.h",
-             "stddef.h", "stdarg.h", "spawn.h", "signal.h", "setjmp.h",
-             "semaphore.h", "search.h", "sched.h", "regex.h", "pwd.h",
-             "pthread.h", "poll.h", "nl_types.h", "netinet/tcp.h",
-             "netinet/in.h", "net/if.h", "netdb.h", "ndbm.h", "mqueue.h",
-             "monetary.h", "math.h", "locale.h", "libgen.h", "limits.h",
-             "langinfo.h", "iso646.h", "inttypes.h", "iconv.h", "grp.h",
-             "glob.h", "ftw.h", "fnmatch.h", "fmtmsg.h", "float.h", "fcntl.h",
-             "errno.h", "dlfcn.h", "dirent.h", "ctype.h", "cpio.h",
-             "assert.h", "arpa/inet.h", "aio.h");
+             "tgmath.h", "termios.h", "tar.h", "sys/wait.h", "sys/utsname.h",
+             "sys/un.h", "sys/uio.h", "sys/types.h", "sys/times.h",
+             "sys/timeb.h", "sys/time.h", "sys/statvfs.h", "sys/stat.h",
+             "sys/socket.h", "sys/shm.h", "sys/sem.h", "sys/select.h",
+             "sys/resource.h", "sys/msg.h", "sys/mman.h", "sys/ipc.h",
+             "syslog.h", "stropts.h", "strings.h", "string.h", "stdlib.h",
+             "stdio.h", "stdint.h", "stddef.h", "stdarg.h", "spawn.h",
+             "signal.h", "setjmp.h", "semaphore.h", "search.h", "sched.h",
+             "regex.h", "pwd.h", "pthread.h", "poll.h", "nl_types.h",
+             "netinet/tcp.h", "netinet/in.h", "net/if.h", "netdb.h", "ndbm.h",
+             "mqueue.h", "monetary.h", "math.h", "locale.h", "libgen.h",
+             "limits.h", "langinfo.h", "iso646.h", "inttypes.h", "iconv.h",
+             "grp.h", "glob.h", "ftw.h", "fnmatch.h", "fmtmsg.h", "float.h",
+             "fcntl.h", "errno.h", "dlfcn.h", "dirent.h", "ctype.h", "cpio.h",
+             "complex.h", "assert.h", "arpa/inet.h", "aio.h");
 }
 
 if ($dialect ne "ISO" && $dialect ne "POSIX" && $dialect ne "XPG3"
@@ -56,6 +56,7 @@ $CFLAGS{"XOPEN2K"} = "-I. '-D__attribute__(x)=' -D_XOPEN_SOURCE=600";
 $mustprepend{'regex.h'} = "#include <sys/types.h>\n";
 $mustprepend{'sched.h'} = "#include <sys/types.h>\n";
 $mustprepend{'signal.h'} = "#include <pthread.h>\n";
+$mustprepend{'wchar.h'} = "#include <stdarg.h>\n";
 $mustprepend{'wordexp.h'} = "#include <stddef.h>\n";
 
 # Make a hash table from this information.
@@ -807,9 +808,10 @@ while ($#headers >= 0) {
 
       compiletest ($fnamebase, "Test for type of function $fname",
                   "Function \"$fname\" has incorrect type.", $res, 0);
-    } elsif (/^variable *({([^}]*)}|([a-zA-Z0-9_]*)) ([a-zA-Z0-9_]*)/) {
+    } elsif (/^variable *({([^}]*)}|([a-zA-Z0-9_]*)) ([a-zA-Z0-9_]*) *(.*)/) {
       my($type) = "$2$3";
       my($vname) = "$4";
+      my($rest) = "$5";
       my($res) = $missing;
 
       # Remember that this name is allowed.
@@ -820,7 +822,8 @@ while ($#headers >= 0) {
       print TESTFILE "$prepend";
       print TESTFILE "#include <$h>\n";
       # print TESTFILE "#undef $fname\n";
-      print TESTFILE "$type *foobarbaz = &$vname;\n";
+      print TESTFILE "typedef $type xyzzy$rest;\n";
+      print TESTFILE "$xyzzy *foobarbaz = &$vname;\n";
       close (TESTFILE);
 
       $res = compiletest ($fnamebase, "Test availability of variable $vname",
@@ -831,7 +834,7 @@ while ($#headers >= 0) {
       print TESTFILE "$prepend";
       print TESTFILE "#include <$h>\n";
       # print TESTFILE "#undef $fname\n";
-      print TESTFILE "extern $type $vname;\n";
+      print TESTFILE "extern $type $vname$rest;\n";
       close (TESTFILE);
 
       compiletest ($fnamebase, "Test for type of variable $fname",
diff --git a/conform/data/complex.h-data b/conform/data/complex.h-data
new file mode 100644 (file)
index 0000000..5c5eedd
--- /dev/null
@@ -0,0 +1,76 @@
+#ifdef XOPEN2K
+macro complex
+macro _Complex_I
+optional-macro imaginary
+optional-macro _Imaginary_I
+macro I
+
+function double cabs (double complex)
+function {double complex} cacos (double complex)
+function {double complex} cacosh (double complex)
+function double carg (double complex)
+function {double complex} casin (double complex)
+function {double complex} casinh (double complex)
+function {double complex} catan (double complex)
+function {double complex} catanh (double complex)
+function {double complex} ccos (double complex)
+function {double complex} ccosh (double complex)
+function {double complex} cexp (double complex)
+function double cimag (double complex)
+function {double complex} clog (double complex)
+function {double complex} conj (double complex)
+function {double complex} cpow (double complex, double complex)
+function {double complex} cproj (double complex)
+function double creal (double complex)
+function {double complex} csin (double complex)
+function {double complex} csinh (double complex)
+function {double complex} csqrt (double complex)
+function {double complex} ctan (double complex)
+function {double complex} ctanh (double complex)
+
+function float cabsf (float complex)
+function {float complex} cacosf (float complex)
+function {float complex} cacoshf (float complex)
+function float cargf (float complex)
+function {float complex} casinf (float complex)
+function {float complex} casinhf (float complex)
+function {float complex} catanf (float complex)
+function {float complex} catanhf (float complex)
+function {float complex} ccosf (float complex)
+function {float complex} ccoshf (float complex)
+function {float complex} cexpf (float complex)
+function float cimagf (float complex)
+function {float complex} clogf (float complex)
+function {float complex} conjf (float complex)
+function {float complex} cpowf (float complex, float complex)
+function {float complex} cprojf (float complex)
+function float crealf (float complex)
+function {float complex} csinf (float complex)
+function {float complex} csinhf (float complex)
+function {float complex} csqrtf (float complex)
+function {float complex} ctanf (float complex)
+function {float complex} ctanhf (float complex)
+
+function {long double} cabsl (long double complex)
+function {long double complex} cacosl (long double complex)
+function {long double complex} cacoshl (long double complex)
+function {long double} cargl (long double complex)
+function {long double complex} casinhl (long double complex)
+function {long double complex} casinl (long double complex)
+function {long double complex} catanhl (long double complex)
+function {long double complex} catanl (long double complex)
+function {long double complex} ccoshl (long double complex)
+function {long double complex} ccosl (long double complex)
+function {long double complex} cexpl (long double complex)
+function {long double} cimagl (long double complex)
+function {long double complex} clogl (long double complex)
+function {long double complex} conjl (long double complex)
+function {long double complex} cpowl (long double complex, long double complex)
+function {long double complex} cprojl (long double complex)
+function {long double} creall (long double complex)
+function {long double complex} csinhl (long double complex)
+function {long double complex} csinl (long double complex)
+function {long double complex} csqrtl (long double complex)
+function {long double complex} ctanhl (long double complex)
+function {long double complex} ctanl (long double complex)
+#endif
index 9f7d4fd91ef0a7128a4712c2042060da5ac768c8..680b666b1d885c9a4871a2bca7e0317e85e1d723 100644 (file)
@@ -1,11 +1,11 @@
 #ifndef ISO
 type {struct utsname}
 
-element {struct utsname} char sysname [1]
-element {struct utsname} char nodename [1]
-element {struct utsname} char release [1]
-element {struct utsname} char version [1]
-element {struct utsname} char machine [1]
+element {struct utsname} char sysname []
+element {struct utsname} char nodename []
+element {struct utsname} char release []
+element {struct utsname} char version []
+element {struct utsname} char machine []
 
 function int uname (struct utsname *)
 #endif
index 07351b459d7927e69774e563c6d5a632d2a3596a..d867d4cd6ba101710cfca1804fd2e05e000d717e 100644 (file)
@@ -130,7 +130,7 @@ function int tcflush (int, int)
 function int tcgetattr (int, struct termios*)
 function pid_t tcgetsid (int)
 function int tcsendbreak (int, int)
-function int tcsetattr (int, int, struct termios*)
+function int tcsetattr (int, int, const struct termios*)
 
 allow CBAUD
 allow DEFECHO
diff --git a/conform/data/tgmath.h-data b/conform/data/tgmath.h-data
new file mode 100644 (file)
index 0000000..2a6bd0c
--- /dev/null
@@ -0,0 +1,398 @@
+#ifdef XOPEN2K
+// <math.h>
+macro fpclassify
+macro isfinite
+macro isinf
+macro isnan
+macro isnormal
+macro signbit
+macro isgreater
+macro isgreaterequal
+macro isless
+macro islessequal
+macro islessgreater
+macro isunordered
+
+constant M_E
+constant M_LOG2E
+constant M_LOG10E
+constant M_LN2
+constant M_LN10
+constant M_PI
+constant M_PI_2
+constant M_PI_4
+constant M_1_PI
+constant M_2_PI
+constant M_2_SQRTPI
+constant M_SQRT2
+constant M_SQRT1_2
+
+constant MAXFLOAT
+constant HUGE_VAL
+constant HUGE_VALF
+constant HUGE_VALL
+constant INFINITY
+constant NAN
+
+macro FP_INFINITE
+macro FP_NAN
+macro FP_NORMAL
+macro FP_SUBNORMAL
+macro FP_ZERO
+
+optional-macro FP_FAST_FMA
+optional-macro FP_FAST_FMAF
+optional-macro FP_FAST_FMAL
+
+constant FP_ILOGB0
+constant FP_ILOGBNAN
+
+macro MATH_ERRNO == 1
+macro MATH_ERREXCEPT == 2
+
+function double acos (double)
+function double asin (double)
+function double atan (double)
+function double atan2 (double, double)
+function double ceil (double)
+function double copysign (double, double)
+function double cos (double)
+function double cosh (double)
+function double exp (double)
+function double exp2 (double)
+function double fabs (double)
+function double floor (double)
+function double fmod (double, double)
+function double frexp (double, int*)
+function double ldexp (double, int)
+function double log (double)
+function double log10 (double)
+function double log2 (double)
+function double modf (double, double*)
+function double pow (double, double)
+function double sin (double)
+function double sinh (double)
+function double sqrt (double)
+function double tan (double)
+function double tanh (double)
+function double erf (double)
+function double erfc (double)
+function double gamma (double)
+function double hypot (double, double)
+function double j0 (double)
+function double j1 (double)
+function double jn (int, double)
+function double lgamma (double)
+function double tgamma (double)
+function double y0 (double)
+function double y1 (double)
+function double yn (int, double)
+function int isnan (double)
+function double acosh (double)
+function double asinh (double)
+function double atanh (double)
+function double cbrt (double)
+function double expm1 (double)
+function int ilogb (double)
+function double log1p (double)
+function double logb (double)
+function double nextafter (double, double)
+function double nexttoward (double, long double)
+function double nearbyint (double)
+function double remainder (double, double)
+function double rint (double)
+function double round (double)
+function double trunc (double)
+function long lrint (double)
+function {long long} llrint (double)
+function long lround (double)
+function {long long} llround (double)
+function double remquo (double, double, int*)
+function double scalb (double, double)
+function double scalbn (double, int)
+function double scalbln (double, long)
+function double fdim (double, double)
+function double fmax (double, double)
+function double fmin (double, double)
+function double fma (double, double, double)
+function double nan (const char*)
+
+// variable signgam
+allow signgam
+
+function float acosf (float)
+function float asinf (float)
+function float atanf (float)
+function float atan2f (float, float)
+function float ceilf (float)
+function float copysignf (float, float)
+function float cosf (float)
+function float coshf (float)
+function float expf (float)
+function float exp2f (float)
+function float fabsf (float)
+function float floorf (float)
+function float fmodf (float, float)
+function float frexpf (float, int*)
+function float ldexpf (float, int)
+function float logf (float)
+function float log10f (float)
+function float log2f (float)
+function float modff (float, float*)
+function float powf (float, float)
+function float sinf (float)
+function float sinhf (float)
+function float sqrtf (float)
+function float tanf (float)
+function float tanhf (float)
+function float erff (float)
+function float erfcf (float)
+function float gammaf (float)
+function float hypotf (float, float)
+function float j0f (float)
+function float j1f (float)
+function float jnf (int, float)
+function float lgammaf (float)
+function float tgammaf (float)
+function float y0f (float)
+function float y1f (float)
+function float ynf (int, float)
+function int isnanf (float)
+function float acoshf (float)
+function float asinhf (float)
+function float atanhf (float)
+function float cbrtf (float)
+function float expm1f (float)
+function int ilogbf (float)
+function float log1pf (float)
+function float logbf (float)
+function float nextafterf (float, float)
+function float nexttowardf (float, long double)
+function float nearbyintf (float)
+function float remainderf (float, float)
+function float rintf (float)
+function float roundf (float)
+function float truncf (float)
+function long lrintf (float)
+function {long long} llrintf (float)
+function long lroundf (float)
+function {long long} llroundf (float)
+function float remquof (float, float, int*)
+function float scalbf (float, float)
+function float scalbnf (float, int)
+function float scalblnf (float, long)
+function float fdimf (float, float)
+function float fmaxf (float, float)
+function float fminf (float, float)
+function float fmaf (float, float, float)
+function float nanf (const char*)
+
+function {long double} acosl (long double)
+function {long double} asinl (long double)
+function {long double} atanl (long double)
+function {long double} atan2l (long double, long double)
+function {long double} ceill (long double)
+function {long double} copysignl (long double, long double)
+function {long double} cosl (long double)
+function {long double} coshl (long double)
+function {long double} expl (long double)
+function {long double} exp2l (long double)
+function {long double} fabsl (long double)
+function {long double} floorl (long double)
+function {long double} fmodl (long double, long double)
+function {long double} frexpl (long double, int*)
+function {long double} ldexpl (long double, int)
+function {long double} logl (long double)
+function {long double} log10l (long double)
+function {long double} log2l (long double)
+function {long double} modfl (long double, long double*)
+function {long double} powl (long double, long double)
+function {long double} sinl (long double)
+function {long double} sinhl (long double)
+function {long double} sqrtl (long double)
+function {long double} tanl (long double)
+function {long double} tanhl (long double)
+function {long double} erfl (long double)
+function {long double} erfcl (long double)
+function {long double} gammal (long double)
+function {long double} hypotl (long double, long double)
+function {long double} j0l (long double)
+function {long double} j1l (long double)
+function {long double} jnl (int, long double)
+function {long double} lgammal (long double)
+function {long double} tgammal (long double)
+function {long double} y0l (long double)
+function {long double} y1l (long double)
+function {long double} ynl (int, long double)
+function int isnanl (long double)
+function {long double} acoshl (long double)
+function {long double} asinhl (long double)
+function {long double} atanhl (long double)
+function {long double} cbrtl (long double)
+function {long double} expm1l (long double)
+function int ilogbl (long double)
+function {long double} log1pl (long double)
+function {long double} logbl (long double)
+function {long double} nextafterl (long double, long double)
+function {long double} nexttowardl (long double, long double)
+function {long double} nearbyintl (long double)
+function {long double} remainderl (long double, long double)
+function {long double} rintl (long double)
+function {long double} roundl (long double)
+function {long double} truncl (long double)
+function long lrintl (long double)
+function {long long} llrintl (long double)
+function long lroundl (long double)
+function {long long} llroundl (long double)
+function {long double} remquol (long double, long double, int*)
+function {long double} scalbl (long double, long double)
+function {long double} scalbnl (long double, int)
+function {long double} scalblnl (long double, long)
+function {long double} fdiml (long double, long double)
+function {long double} fmaxl (long double, long double)
+function {long double} fminl (long double, long double)
+function {long double} fmal (long double, long double, long double)
+function {long double} nanl (const char*)
+
+allow *_t
+allow FP_*
+
+// <complex.h>
+macro complex
+macro _Complex_I
+optional-macro imaginary
+optional-macro _Imaginary_I
+macro I
+
+function double cabs (double complex)
+function {double complex} cacos (double complex)
+function {double complex} cacosh (double complex)
+function double carg (double complex)
+function {double complex} casin (double complex)
+function {double complex} casinh (double complex)
+function {double complex} catan (double complex)
+function {double complex} catanh (double complex)
+function {double complex} ccos (double complex)
+function {double complex} ccosh (double complex)
+function {double complex} cexp (double complex)
+function double cimag (double complex)
+function {double complex} clog (double complex)
+function {double complex} conj (double complex)
+function {double complex} cpow (double complex, double complex)
+function {double complex} cproj (double complex)
+function double creal (double complex)
+function {double complex} csin (double complex)
+function {double complex} csinh (double complex)
+function {double complex} csqrt (double complex)
+function {double complex} ctan (double complex)
+function {double complex} ctanh (double complex)
+
+function float cabsf (float complex)
+function {float complex} cacosf (float complex)
+function {float complex} cacoshf (float complex)
+function float cargf (float complex)
+function {float complex} casinf (float complex)
+function {float complex} casinhf (float complex)
+function {float complex} catanf (float complex)
+function {float complex} catanhf (float complex)
+function {float complex} ccosf (float complex)
+function {float complex} ccoshf (float complex)
+function {float complex} cexpf (float complex)
+function float cimagf (float complex)
+function {float complex} clogf (float complex)
+function {float complex} conjf (float complex)
+function {float complex} cpowf (float complex, float complex)
+function {float complex} cprojf (float complex)
+function float crealf (float complex)
+function {float complex} csinf (float complex)
+function {float complex} csinhf (float complex)
+function {float complex} csqrtf (float complex)
+function {float complex} ctanf (float complex)
+function {float complex} ctanhf (float complex)
+
+function {long double} cabsl (long double complex)
+function {long double complex} cacosl (long double complex)
+function {long double complex} cacoshl (long double complex)
+function {long double} cargl (long double complex)
+function {long double complex} casinhl (long double complex)
+function {long double complex} casinl (long double complex)
+function {long double complex} catanhl (long double complex)
+function {long double complex} catanl (long double complex)
+function {long double complex} ccoshl (long double complex)
+function {long double complex} ccosl (long double complex)
+function {long double complex} cexpl (long double complex)
+function {long double} cimagl (long double complex)
+function {long double complex} clogl (long double complex)
+function {long double complex} conjl (long double complex)
+function {long double complex} cpowl (long double complex, long double complex)
+function {long double complex} cprojl (long double complex)
+function {long double} creall (long double complex)
+function {long double complex} csinhl (long double complex)
+function {long double complex} csinl (long double complex)
+function {long double complex} csqrtl (long double complex)
+function {long double complex} ctanhl (long double complex)
+function {long double complex} ctanl (long double complex)
+
+// <tgmath.h>
+macro acos
+macro asin
+macro atan
+macro acosh
+macro asinh
+macro atanh
+macro cos
+macro sin
+macro tan
+macro cosh
+macro sinh
+macro tanh
+macro exp
+macro pow
+macro sqrt
+macro fabs
+
+macro atan2
+macro cbrt
+macro ceil
+macro copysign
+macro erf
+macro erfc
+macro exp2
+macro expm1
+macro fdim
+macro floor
+macro fma
+macro fmax
+macro fmin
+macro fmod
+macro frexp
+macro hypot
+macro ilogb
+macro ldexp
+macro lgamma
+macro llrint
+macro llround
+macro log10
+macro log1p
+macro log2
+macro logb
+macro lrint
+macro lround
+macro nearbyint
+macro nextafter
+macro nexttoward
+macro remainder
+macro remquo
+macro rint
+macro round
+macro scalbn
+macro scalbln
+macro tgamma
+macro trunc
+
+macro carg
+macro cimag
+macro conj
+macro cproj
+macro creal
+#endif
index e0b91f30854702f2aeccbde2ed5ae830cdc953c3..f503165fae8d876b064320828b557c23e85f0515 100644 (file)
@@ -11,7 +11,9 @@ element {struct tm} int tm_yday
 element {struct tm} int tm_isdst
 
 constant NULL
+#ifndef XOPEN2K
 constant CLK_TCK
+#endif
 constant CLOCKS_PER_SEC
 constant CLOCK_PROCESS_CPUTIME_ID
 constant CLOCK_THREAD_CPUTIME_ID
@@ -68,7 +70,7 @@ function void tzset (void)
 
 variable int daylight
 variable {long int} timezone
-// variable {char*} tzname []
+variable {char*} tzname [2]
 
 allow tm_*
 allow clock_*
index 49f85c5210f2b2987ee2d853c8d5fb3d2e1becfe..7c1589506a14c5b5ad382007fc513077dafde0ec 100644 (file)
@@ -31,7 +31,7 @@ function wint_t getwc (FILE*)
 function wint_t getwchar (void)
 function int mbsinit (const mbstate_t*)
 function size_t mbrlen (const char*, size_t, mbstate_t*)
-function size_t mbrtowc (wchar_t*, const char*, size_t, mbstate_*)
+function size_t mbrtowc (wchar_t*, const char*, size_t, mbstate_t*)
 function size_t mbsrtowcs (wchar_t*, const char**, size_t, mbstate_t*)
 function wint_t putwc (wchar_t, FILE*)
 function wint_t putwchar (wchar_t)
@@ -40,9 +40,12 @@ function int swscanf (const wchar_t*, const wchar_t*, ...)
 function wint_t towlower (wint_t)
 function wint_t towupper (wint_t)
 function wint_t ungetwc (wint_t, FILE*)
-function int vfwprintf (FILE, const wchar_t*, va_list)
+function int vfwprintf (FILE*, const wchar_t*, va_list)
+function int vfwscanf (FILE*, const wchar_t*, va_list)
 function int vwprintf (const wchar_t*, va_list)
+function int vwscanf (const wchar_t*, va_list)
 function int vswprintf (wchar_t*, size_t, const wchar_t*, va_list)
+function int vswscanf (const wchar_t*, const wchar_t*, va_list)
 function size_t wcrtomb (char*, wchar_t, mbstate_t*)
 function {wchar_t*} wcscat (wchar_t*, const wchar_t*)
 function {wchar_t*} wcschr (const wchar_t*, wchar_t)
index 36cc9254ac098323cf647cd8bcfd8d91cb6cbfa1..1f43f77d07ce8ee4cbf7673dd43c227c30ca4206 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991,92,93,94,96,97,98,99, 2000 Free Software Foundation, Inc.
+/* Copyright (C) 1991-1994,96,97,98,99,2000,2001 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
 
 __BEGIN_DECLS
 
-#include <bits/types.h>
-
-#if defined __USE_XOPEN && !defined __pid_t_defined
-typedef __pid_t pid_t;
-# define __pid_t_defined
-#endif
+#include <signal.h>
+#include <sys/resource.h>
 
 /* These macros could also be defined int <stdlib.h>.  */
 #if !defined _STDLIB_H || !defined __USE_XOPEN
index 14ce5d4c41927a7a522e046b5f9febee85437adc..eaaac39d953be859735cf3aa19e736fa1d20bb3d 100644 (file)
@@ -1,5 +1,5 @@
 /* Structures and definitions for the user accounting database.  GNU version.
-   Copyright (C) 1997, 1998, 2000 Free Software Foundation, Inc.
+   Copyright (C) 1997, 1998, 2000, 2001 Free Software Foundation, Inc.
 
    The GNU C Library is free software; you can redistribute it and/or
    modify it under the terms of the GNU Library General Public License as
@@ -71,7 +71,9 @@ struct utmpx
 /* Values for the `ut_type' field of a `struct utmpx'.  */
 #define EMPTY          0       /* No valid user accounting information.  */
 
-#define RUN_LVL                1       /* The system's runlevel.  */
+#ifdef __USE_GNU
+# define RUN_LVL       1       /* The system's runlevel.  */
+#endif
 #define BOOT_TIME      2       /* Time of system boot.  */
 #define NEW_TIME       3       /* Time after system clock changed.  */
 #define OLD_TIME       4       /* Time when system clock changed.  */
index cb9f24bda71718a6685da287d7359b0826d29f79..d4a59d5e5ca1ac2f10517a8dad447994811486b0 100644 (file)
@@ -1,5 +1,5 @@
 /* System-dependent timing definitions.  Hurd version.
-   Copyright (C) 1996, 1997, 1999, 2000 Free Software Foundation, Inc.
+   Copyright (C) 1996, 1997, 1999, 2000, 2001 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -33,7 +33,7 @@
    XSI-conformant systems. */
 #  define CLOCKS_PER_SEC  1000000l
 
-#  ifndef __STRICT_ANSI__
+#  if !defined __STRICT_ANSI__ && !defined __USE_XOPEN2K
 /* Even though CLOCKS_PER_SEC has such a strange value CLK_TCK
    presents the real value for clock ticks per second for the system.  */
 #   include <bits/types.h>
index 7595ae7a6a7406d9fe63ba998b5580bdd0b696e2..e08d3b19c46b7b13873372ad92954928cdc69823 100644 (file)
@@ -1,5 +1,5 @@
 /* System-dependent timing definitions.  i386/Hurd version.
-   Copyright (C) 1996, 1997, 1999, 2000 Free Software Foundation, Inc.
+   Copyright (C) 1996, 1997, 1999, 2000, 2001 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -33,7 +33,7 @@
    XSI-conformant systems. */
 #  define CLOCKS_PER_SEC  1000000l
 
-#  ifndef __STRICT_ANSI__
+#  if !defined __STRICT_ANSI__ && !defined __USE_XOPEN2K
 /* Even though CLOCKS_PER_SEC has such a strange value CLK_TCK
    presents the real value for clock ticks per second for the system.  */
 #   include <bits/types.h>
index 93c01c09c08bc30edfed5bdb437830972e15cd21..e0e0104a343dc3ae0c5616e95e82310fe3c95e91 100644 (file)
@@ -1,5 +1,5 @@
 /* System-dependent timing definitions.  Linux/Alpha version.
-   Copyright (C) 1996, 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
+   Copyright (C) 1996,1997,1998,1999,2000,2001 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -33,7 +33,7 @@
    XSI-conformant systems. */
 #  define CLOCKS_PER_SEC  1000000l
 
-#  ifndef __STRICT_ANSI__
+#  if !defined __STRICT_ANSI__ && !defined __USE_XOPEN2K
 /* Even though CLOCKS_PER_SEC has such a strange value CLK_TCK
    presents the real value for clock ticks per second for the system.  */
 #   include <bits/types.h>
index 1e31d8e08f26a2ab55176427c3f2eb471b2145cb..c70f8347f3c36860af82f9592db814d0627de0ff 100644 (file)
@@ -1,5 +1,5 @@
 /* System-dependent timing definitions.  Linux version.
-   Copyright (C) 1996, 1997, 1999, 2000 Free Software Foundation, Inc.
+   Copyright (C) 1996, 1997, 1999, 2000, 2001 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -33,7 +33,7 @@
    XSI-conformant systems. */
 #  define CLOCKS_PER_SEC  1000000l
 
-#  ifndef __STRICT_ANSI__
+#  if !defined __STRICT_ANSI__ && !defined __USE_XOPEN2K
 /* Even though CLOCKS_PER_SEC has such a strange value CLK_TCK
    presents the real value for clock ticks per second for the system.  */
 #   include <bits/types.h>
index 99b3191f38d00c10bb46d6dede22222c027a0761..a6e7f5e471b40b4684b09ec58af089234b3fc541 100644 (file)
@@ -1,5 +1,5 @@
 /* System-dependent timing definitions.  Linux/x86 version.
-   Copyright (C) 1996, 1997, 1999, 2000 Free Software Foundation, Inc.
+   Copyright (C) 1996, 1997, 1999, 2000, 2001 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -33,7 +33,7 @@
    XSI-conformant systems. */
 #  define CLOCKS_PER_SEC  1000000l
 
-#  ifndef __STRICT_ANSI__
+#  if !defined __STRICT_ANSI__ && !defined __USE_XOPEN2K
 /* Even though CLOCKS_PER_SEC has such a strange value CLK_TCK
    presents the real value for clock ticks per second for the system.  */
 #   include <bits/types.h>
index 4b0060daf1549cba039fac61e01de57d7deb38ff..e7095b895b81f7d32cbdd43b660a23f7d8a9a559 100644 (file)
@@ -1,5 +1,5 @@
 /* System-dependent timing definitions.  Linux/IA64 version.
-   Copyright (C) 2000 Free Software Foundation, Inc.
+   Copyright (C) 2000, 2001 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -33,7 +33,7 @@
    XSI-conformant systems. */
 #  define CLOCKS_PER_SEC  1000000l
 
-#  ifndef __STRICT_ANSI__
+#  if !defined __STRICT_ANSI__ && !defined __USE_XOPEN2K
 /* Even though CLOCKS_PER_SEC has such a strange value CLK_TCK
    presents the real value for clock ticks per second for the system.  */
 #   include <bits/types.h>
index c7e965dce5881a890162f41a8cab098758e9b7df..df61ac748b09206525a0e370092899768aef4d30 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991-1999, 2000 Free Software Foundation, Inc.
+/* Copyright (C) 1991-1999, 2000, 2001 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -42,7 +42,7 @@ __BEGIN_DECLS
 # include <bits/time.h>
 
 /* This is the obsolete POSIX.1-1988 name for the same constant.  */
-# ifdef        __USE_POSIX
+# if defined __USE_POSIX && !defined __USE_XOPEN2K
 #  ifndef CLK_TCK
 #   define CLK_TCK     CLOCKS_PER_SEC
 #  endif