Skip to content

Commit

Permalink
Merge remote branch 'origin/master' into fedora/master
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Schwab committed Jan 12, 2010
2 parents 9b0eb94 + 8500fa8 commit 4ec9046
Show file tree
Hide file tree
Showing 25 changed files with 233 additions and 59 deletions.
54 changes: 50 additions & 4 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,9 +1,55 @@
2010-01-11 Andreas Schwab <schwab@redhat.com>
2010-01-12 Jakub Jelinek <jakub@redhat.com>

* io/fcntl.h: Only include <bits/stat.h> once.
* io/sys/stat.h: Likewise.
* posix/sys/wait.h: Don't define W* macros etc. if
stdlib.h has been included with _POSIX_C_SOURCE >= 200809L.

2010-01-11 Ulrich Drepper <drepper@redhat.com>

* io/sys/stat.h: Declare fchmod for XPG7.
* conform/data/sys/stat.h-data: Fix up for XPG7.

* termios/termios.h: Define pid_t for XPG7.

* conform/data/math.h-data: Fix up for XPG6 and XPG7.
* conform/data/tgmath.h-data: Likewise.

* conform/data/time.h-data: Fix POSIX tests.

* conform/data/wchar.h-data: Fix up XPG7 tests.

* include/features.h: Fix __USE_ISOC95 handling.

* conform/data/wordexp.h-data: Fix typo in last change.

* conform/data/unistd.h-data: Fix up older POSIX tests.

* stdlib/stdlib.h: Fix handling symbols removed in XPG7.
* posix/unistd.h: Likewise.

* posix/unistd.h: Include environments.h also for XPG6 and up.
Define intptr_t for XPG6 and up.
Fix up for XPG7.
* conform/data/unistd.h-data: Fix up for XPG6 and XPG7.

* conform/data/sys/types.h-data: Fix up for XPG7.

* sysdeps/unix/bsd/bits/stat.h: Fix double-inclusion problem.
* sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
* sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Likewise.
* sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
* sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
* sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
* sysdeps/unix/sysv/linux/ia64/bits/stat.h: Likewise.
* sysdeps/unix/sysv/bits/stat.h: Likewise.
* sysdeps/mach/hurd/bits/stat.h: Likewise.

* bits/confname.h: Fix typo in last change.

* conform/data/unistd.h-data: lockf-constants Not needed for POSIX.

2010-01-11 Andreas Schwab <schwab@redhat.com>

* bits/confname.h: Add missing comma, remove trailing commas.
* bits/confname.h: Remove trailing comma.

2010-01-10 Ulrich Drepper <drepper@redhat.com>

Expand Down
25 changes: 22 additions & 3 deletions conform/data/math.h-data
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ macro MATH_ERRNO == 1
macro MATH_ERREXCEPT == 2
#endif

macro math_errhandling

function double acos (double)
function double asin (double)
function double atan (double)
Expand Down Expand Up @@ -79,7 +81,9 @@ function double tan (double)
function double tanh (double)
function double erf (double)
function double erfc (double)
#if defined XPG3 || defined XPG4 || defined UNIX98
function double gamma (double)
#endif
function double hypot (double, double)
#if !defined POSIX && !defined POSIX2008
function double j0 (double)
Expand All @@ -93,7 +97,6 @@ function double y0 (double)
function double y1 (double)
function double yn (int, double)
#endif
function int isnan (double)
function double acosh (double)
function double asinh (double)
function double atanh (double)
Expand All @@ -114,7 +117,9 @@ function {long long} llrint (double)
function long lround (double)
function {long long} llround (double)
function double remquo (double, double, int*)
#if defined XPG3 && defined XPG4 && defined UNIX98 && defined XOPEN2K
function double scalb (double, double)
#endif
function double scalbn (double, int)
function double scalbln (double, long)
function double fdim (double, double)
Expand Down Expand Up @@ -156,17 +161,22 @@ function float tanf (float)
function float tanhf (float)
function float erff (float)
function float erfcf (float)
#if defined XPG3 || defined XPG4 || defined UNIX98
function float gammaf (float)
#endif
function float hypotf (float, float)
#if !defined POSIX && !defined POSIX2008
function float j0f (float)
function float j1f (float)
function float jnf (int, float)
#endif
function float lgammaf (float)
function float tgammaf (float)
#if !defined POSIX && !defined POSIX2008
function float y0f (float)
function float y1f (float)
function float ynf (int, float)
function int isnanf (float)
#endif
function float acoshf (float)
function float asinhf (float)
function float atanhf (float)
Expand All @@ -187,7 +197,9 @@ function {long long} llrintf (float)
function long lroundf (float)
function {long long} llroundf (float)
function float remquof (float, float, int*)
#if defined XPG3 && defined XPG4 && defined UNIX98 && defined XOPEN2K
function float scalbf (float, float)
#endif
function float scalbnf (float, int)
function float scalblnf (float, long)
function float fdimf (float, float)
Expand Down Expand Up @@ -223,17 +235,22 @@ function {long double} tanl (long double)
function {long double} tanhl (long double)
function {long double} erfl (long double)
function {long double} erfcl (long double)
#if defined XPG3 || defined XPG4 || defined UNIX98
function {long double} gammal (long double)
#endif
function {long double} hypotl (long double, long double)
#if !defined POSIX && !defined POSIX2008
function {long double} j0l (long double)
function {long double} j1l (long double)
function {long double} jnl (int, long double)
#endif
function {long double} lgammal (long double)
function {long double} tgammal (long double)
#if !defined POSIX && !defined POSIX2008
function {long double} y0l (long double)
function {long double} y1l (long double)
function {long double} ynl (int, long double)
function int isnanl (long double)
#endif
function {long double} acoshl (long double)
function {long double} asinhl (long double)
function {long double} atanhl (long double)
Expand All @@ -254,7 +271,9 @@ 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*)
#if defined XPG3 && defined XPG4 && defined UNIX98 && defined XOPEN2K
function {long double} scalbl (long double, long double)
#endif
function {long double} scalbnl (long double, int)
function {long double} scalblnl (long double, long)
function {long double} fdiml (long double, long double)
Expand Down
6 changes: 3 additions & 3 deletions conform/data/sys/stat.h-data
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,10 @@ element {struct stat} blksize_t st_blksize
element {struct stat} blkcnt_t st_blocks
#endif

#if !defined POSIX && !defined POSIX2008
type blkcnt_t
type blksize_t
#endif
type dev_t
type ino_t
type mode_t
Expand All @@ -30,7 +32,7 @@ type uid_t
type gid_t
type off_t
type time_t
# ifdef XOPEN2K8
# if defined XOPEN2K8 || defined POSIX2008
type {struct timespec}
element {struct timespec} time_t tv_sec
element {struct timespec} long tv_nsec
Expand Down Expand Up @@ -107,8 +109,6 @@ function int mkfifoat (int, const char*, mode_t)
# endif
# if !defined POSIX && !defined POSIX2008
function int mknod (const char*, mode_t, dev_t)
# endif
# if defined XOPEN2K8 || defined POSIX2008
function int mknodat (int, const char*, mode_t, dev_t)
# endif
function int stat (const char*, struct stat*)
Expand Down
2 changes: 1 addition & 1 deletion conform/data/sys/types.h-data
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ type blksize_t
type clock_t
type clockid_t
type dev_t
# if !defined POSIX && !defined POSIX2008
# if !defined POSIX
type fsblkcnt_t
type fsfilcnt_t
# endif
Expand Down
33 changes: 29 additions & 4 deletions conform/data/tgmath.h-data
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#ifdef XOPEN2K
#if defined XOPEN2K || defined POSIX2008
// <math.h>
macro fpclassify
macro isfinite
Expand All @@ -13,6 +13,7 @@ macro islessequal
macro islessgreater
macro isunordered

#ifndef POSIX2008
constant M_E
constant M_LOG2E
constant M_LOG10E
Expand All @@ -28,6 +29,7 @@ constant M_SQRT2
constant M_SQRT1_2

constant MAXFLOAT
#endif
constant HUGE_VAL
constant HUGE_VALF
constant HUGE_VALL
Expand All @@ -50,6 +52,8 @@ constant FP_ILOGBNAN
macro MATH_ERRNO == 1
macro MATH_ERREXCEPT == 2

macro math_errhandling

function double acos (double)
function double asin (double)
function double atan (double)
Expand Down Expand Up @@ -77,17 +81,22 @@ function double tan (double)
function double tanh (double)
function double erf (double)
function double erfc (double)
#if defined XPG3 || defined XPG4 || defined UNIX98
function double gamma (double)
#endif
function double hypot (double, double)
#if !defined POSIX && !defined POSIX2008
function double j0 (double)
function double j1 (double)
function double jn (int, double)
#endif
function double lgamma (double)
function double tgamma (double)
#if !defined POSIX && !defined POSIX2008
function double y0 (double)
function double y1 (double)
function double yn (int, double)
function int isnan (double)
#endif
function double acosh (double)
function double asinh (double)
function double atanh (double)
Expand All @@ -108,7 +117,9 @@ function {long long} llrint (double)
function long lround (double)
function {long long} llround (double)
function double remquo (double, double, int*)
#if defined XPG3 && defined XPG4 && defined UNIX98 && defined XOPEN2K
function double scalb (double, double)
#endif
function double scalbn (double, int)
function double scalbln (double, long)
function double fdim (double, double)
Expand Down Expand Up @@ -147,17 +158,22 @@ function float tanf (float)
function float tanhf (float)
function float erff (float)
function float erfcf (float)
#if defined XPG3 || defined XPG4 || defined UNIX98
function float gammaf (float)
#endif
function float hypotf (float, float)
#if !defined POSIX && !defined POSIX2008
function float j0f (float)
function float j1f (float)
function float jnf (int, float)
#endif
function float lgammaf (float)
function float tgammaf (float)
#if !defined POSIX && !defined POSIX2008
function float y0f (float)
function float y1f (float)
function float ynf (int, float)
function int isnanf (float)
#endif
function float acoshf (float)
function float asinhf (float)
function float atanhf (float)
Expand All @@ -178,7 +194,9 @@ function {long long} llrintf (float)
function long lroundf (float)
function {long long} llroundf (float)
function float remquof (float, float, int*)
#if defined XPG3 && defined XPG4 && defined UNIX98 && defined XOPEN2K
function float scalbf (float, float)
#endif
function float scalbnf (float, int)
function float scalblnf (float, long)
function float fdimf (float, float)
Expand Down Expand Up @@ -214,17 +232,22 @@ function {long double} tanl (long double)
function {long double} tanhl (long double)
function {long double} erfl (long double)
function {long double} erfcl (long double)
#if defined XPG3 || defined XPG4 || defined UNIX98
function {long double} gammal (long double)
#endif
function {long double} hypotl (long double, long double)
#if !defined POSIX && !defined POSIX2008
function {long double} j0l (long double)
function {long double} j1l (long double)
function {long double} jnl (int, long double)
#endif
function {long double} lgammal (long double)
function {long double} tgammal (long double)
#if !defined POSIX && !defined POSIX2008
function {long double} y0l (long double)
function {long double} y1l (long double)
function {long double} ynl (int, long double)
function int isnanl (long double)
#endif
function {long double} acoshl (long double)
function {long double} asinhl (long double)
function {long double} atanhl (long double)
Expand All @@ -245,7 +268,9 @@ 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*)
#if defined XPG3 && defined XPG4 && defined UNIX98 && defined XOPEN2K
function {long double} scalbl (long double, long double)
#endif
function {long double} scalbnl (long double, int)
function {long double} scalblnl (long double, long)
function {long double} fdiml (long double, long double)
Expand Down
2 changes: 2 additions & 0 deletions conform/data/time.h-data
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ type locale_t
tag {struct sigevent}
#endif

#if !defined POSIX && !defined POSIX2008
variable int getdate_err
#endif

function {char*} asctime (const struct tm*)
function {char*} asctime_r (const struct tm*, char*)
Expand Down
Loading

0 comments on commit 4ec9046

Please sign in to comment.