This is the mail archive of the libc-hacker@sourceware.cygnus.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Misc patches for glibc


I think we should undo the timespec change. I now believe it is
a VSX-PCT bug. Also we should only use union in struct sigaction
when __USE_POSIX199309 is defined. Also, I am not sure if we
should expose "pselect" when __USE_POSIX is defined. I changed
it to __USE_MISC. Maybe we should add __USE_POSIX1g.

Thanks.


-- 
H.J. Lu (hjl@gnu.org)
--
Thu Oct 29 08:19:03 1998  H.J. Lu  <hjl@gnu.org>

	* sysdeps/unix/sysv/linux/bits/sigaction.h (sigaction): Use
	union only if __USE_POSIX199309 is defined.

Thu Oct 29 08:05:35 1998  H.J. Lu  <hjl@gnu.org>

	* misc/sys/select.h (pselect): Declared only if __USE_MISC is
	defined.

	* signal/signal.h: Include <time.h> for timespec.

Index: sysdeps/unix/sysv/linux/bits/sigaction.h
===================================================================
RCS file: /home/work/cvs/gnu/glibc/sysdeps/unix/sysv/linux/bits/sigaction.h,v
retrieving revision 1.1.1.4
diff -u -r1.1.1.4 sigaction.h
--- sysdeps/unix/sysv/linux/bits/sigaction.h	1998/07/01 02:41:32	1.1.1.4
+++ sysdeps/unix/sysv/linux/bits/sigaction.h	1998/10/29 18:17:40
@@ -25,6 +25,7 @@
 struct sigaction
   {
     /* Signal handler.  */
+#ifdef __USE_POSIX199309
     union
       {
 	/* Used if SA_SIGINFO is not set.  */
@@ -35,6 +36,9 @@
     __sigaction_handler;
 #define sa_handler	__sigaction_handler.sa_handler
 #define sa_sigaction	__sigaction_handler.sa_sigaction
+#else
+    __sighandler_t sa_handler;
+#endif
 
     /* Additional set of signals to be blocked.  */
     __sigset_t sa_mask;
Index: misc/sys/select.h
===================================================================
RCS file: /home/work/cvs/gnu/glibc/misc/sys/select.h,v
retrieving revision 1.1.1.4
diff -u -r1.1.1.4 select.h
--- misc/sys/select.h	1998/08/11 22:30:17	1.1.1.4
+++ misc/sys/select.h	1998/10/29 16:04:31
@@ -75,7 +75,7 @@
 			__fd_set *__writefds, __fd_set *__exceptfds,
 			struct timeval *__timeout));
 
-#ifdef __USE_POSIX
+#ifdef __USE_MISC
 /* Same as above only that the TIMEOUT value is given with higher
    resolution.  This version should be used.  */
 extern int pselect __P ((int __nfds, __fd_set *__readfds,
Index: signal/signal.h
===================================================================
RCS file: /home/work/cvs/gnu/glibc/signal/signal.h,v
retrieving revision 1.1.1.23
diff -u -r1.1.1.23 signal.h
--- signal/signal.h	1998/10/27 20:34:14	1.1.1.23
+++ signal/signal.h	1998/10/29 16:30:39
@@ -238,8 +238,9 @@
 extern int sigwait __P ((__const sigset_t *__set, int *__sig));
 
 # ifdef __USE_POSIX199309
-/* This type actually is defined in <time.h>.  */
-struct timespec;
+/* We need `struct timespec' later on.  */
+#  define __need_timespec
+#  include <time.h>
 
 /* Select any of pending signals from SET and place information in INFO.  */
 extern int sigwaitinfo __P ((__const sigset_t *__set, siginfo_t *__info));


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]