From 4a582094c28099144dac9528174ce7c0be72c0fd Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sun, 25 Oct 1998 09:11:53 +0000 Subject: Update. 1998-10-25 Ulrich Drepper * include/features.h: Define __USE_POSIS199506 is _POSIX_C_SOURCE is greater or equal than 199506L. * sysdeps/generic/bits/types.h (__fd_set): Define element as fds_bits only is __USE_XOPEN. Otherwise use __fds_bits. * sysdeps/unix/sysv/linux/alpha/bits/types.h: Likewise. * sysdeps/unix/sysv/linux/mips/bits/types.h: Likewise. * sysdeps/unix/sysv/linux/sparc/sparc64/bits/types.h: Likewise. * sysdeps/unix/sysv/linux/bits/types.h: Likewise. * sysdeps/unix/sysv/sysv4/solaris2/bits/types.h: Likewise. 1998-10-24 H.J. Lu * locale/programs/charmap.c (parse_charmap): Accept tok_string for . 1998-10-25 H.J. Lu * locale/programs/ld-ctype.c (ctype_finish): Also check . 1998-10-25 Ulrich Drepper * signal/signal.h: Include bits/sigthread.h only if __USE_POSIX199506. * sysdeps/unix/sysv/linux/bits/types.h: Include pthreadtypes.h only if __USE_POSIX199506 or __USE_UNIX98. 1998-10-24 22:34 -0400 Zack Weinberg * string/bits/string2.h: Inline strdup+friends only if __USE_MISC || __USE_GNU (prevents namespace pollution). 1998-10-24 H.J. Lu * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (LOCK_SH, LOCK_EX, LOCK_NB, LOCK_UN): Protect with __USE_BSD. * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (LOCK_SH, LOCK_EX, LOCK_NB, LOCK_UN): Likewise. * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (LOCK_SH, LOCK_EX, LOCK_NB, LOCK_UN): Likewise. * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (LOCK_SH, LOCK_EX, LOCK_NB, LOCK_UN): Likewise. * sysdeps/unix/sysv/linux/bits/fcntl.h (LOCK_SH, LOCK_EX, LOCK_NB, LOCK_UN): Likewise. 1998-10-24 H.J. Lu * libio/ioseekoff.c (_IO_seekoff): Check the valid dir value. * libio/rewind.c (rewind): Clear the error. 1998-10-24 H.J. Lu * grp/grp.h (getgrent_r, getgrgid_r, getgrnam_r): Add "__" to "buffer". 1998-10-24 H.J. Lu * sysdeps/unix/sysv/linux/alpha/bits/time.h (timeval): Protect with __need_timeval. * sysdeps/unix/sysv/linux/mips/bits/time.h (timeval): Likewise. * sysdeps/unix/sysv/linux/bits/time.h (timeval): Likewise. 1998-10-24 H.J. Lu * signal/signal.h (timespec, siginfo_t, sigwaitinfo, sigtimedwait, sigqueue): Protect with __USE_POSIX199309. 1998-10-24 H.J. Lu * time/time.h (timespec): Protect with __USE_POSIX199309 instead of __USE_POSIX. 1998-10-24 H.J. Lu * libio/fileops.c (_IO_new_file_seekoff): Always resync with the kernel file offset. * libio/oldfileops.c (_IO_old_file_seekoff): Likewise. --- signal/signal.h | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'signal') diff --git a/signal/signal.h b/signal/signal.h index 62ccf19699..efbe36d378 100644 --- a/signal/signal.h +++ b/signal/signal.h @@ -179,12 +179,14 @@ typedef __sighandler_t sig_t; #ifdef __USE_POSIX +# ifdef __USE_POSIX199309 /* We need `struct timespec' later on. */ # define __need_timespec # include /* Get the `siginfo_t' type plus the needed symbols. */ # include +# endif /* Clear all signals from SET. */ extern int sigemptyset __P ((sigset_t *__set)); @@ -201,7 +203,7 @@ extern int sigdelset __P ((sigset_t *__set, int __signo)); /* Return 1 if SIGNO is in SET, 0 if not. */ extern int sigismember __P ((__const sigset_t *__set, int __signo)); -# ifdef __USE_GNU +# ifdef __USE_GNU /* Return non-empty value is SET is not empty. */ extern int sigisemptyset __P ((__const sigset_t *__set)); @@ -212,11 +214,11 @@ extern int sigandset __P ((sigset_t *__set, __const sigset_t *__left, /* Build new signal set by combining the two inputs set using logical OR. */ extern int sigorset __P ((sigset_t *__set, __const sigset_t *__left, __const sigset_t *__right)); -# endif /* GNU */ +# endif /* GNU */ /* Get the system-specific definitions of `struct sigaction' and the `SA_*' and `SIG_*'. constants. */ -# include +# include /* Get and/or change the set of blocked signals. */ extern int sigprocmask __P ((int __how, @@ -239,6 +241,7 @@ extern int sigpending __P ((sigset_t *__set)); /* Select any of pending signals from SET or wait for any to arrive. */ extern int sigwait __P ((__const sigset_t *__set, int *__sig)); +# ifdef __USE_POSIX199309 /* Select any of pending signals from SET and place information in INFO. */ extern int sigwaitinfo __P ((__const sigset_t *__set, siginfo_t *__info)); @@ -251,6 +254,7 @@ extern int sigtimedwait __P ((__const sigset_t *__set, siginfo_t *__info, signal. */ extern int sigqueue __P ((__pid_t __pid, int __sig, __const union sigval __val)); +# endif /* Use POSIX 199306. */ #endif /* Use POSIX. */ @@ -333,7 +337,7 @@ extern int sigignore __P ((int __sig)); extern __sighandler_t sigset __P ((int __sig, __sighandler_t __disp)); #endif /* use Unix98 */ -#ifdef __USE_POSIX +#ifdef __USE_POSIX199506 /* Some of the functions for handling signals in threaded programs must be defined here. */ # include -- cgit 1.4.1