[Glibc-bsd-commits] r1510 - in trunk/glibc-2.3-head: . sysdeps/kfreebsd/bits

Petr Salinger ps-guest at costa.debian.org
Thu Apr 27 15:33:39 UTC 2006


Author: ps-guest
Date: 2006-04-27 15:33:36 +0000 (Thu, 27 Apr 2006)
New Revision: 1510

Modified:
   trunk/glibc-2.3-head/NOTES-2.4
   trunk/glibc-2.3-head/sysdeps/kfreebsd/bits/signum.h
Log:
* define user-space-only pseudo signal function SIG_HOLD similarly as on Linux



Modified: trunk/glibc-2.3-head/NOTES-2.4
===================================================================
--- trunk/glibc-2.3-head/NOTES-2.4	2006-04-27 14:50:19 UTC (rev 1509)
+++ trunk/glibc-2.3-head/NOTES-2.4	2006-04-27 15:33:36 UTC (rev 1510)
@@ -51,32 +51,13 @@
 	i386/sysdep.h - drop definition of SETUP_PIC_REG(reg)
 	dl-osinfo.h - add function _dl_setup_stack_chk_guard()
 
-* missing SIG_HOLD under FreeBSD (required by POSIX)
-  (triggered only on post 2006/04/23 glibc snapshots)
 
-  workaround:
---- sysdeps/posix/sigset.c~      2006-04-25 16:37:41.000000000 +0000
-+++ sysdeps/posix/sigset.c       2006-04-25 16:37:41.000000000 +0000
-@@ -88,6 +88,10 @@
-   if (__sigprocmask (SIG_UNBLOCK, &set, &oset) < 0)
-     return SIG_ERR;
- 
-+#ifdef SIG_HOLD
-   /* If the signal was already blocked return SIG_HOLD.  */
-   return __sigismember (&oset, sig) ? SIG_HOLD : oact.sa_handler;
-+#else
-+  return oact.sa_handler;
-+#endif
- }
-
-
 ../src/configure --enable-add-ons=linuxthreads --with-tls --with-__thread i486-kfreebsd --prefix=...
 
 "make check" results:
 ---------------------
 (as of 2006-04-25)
 
-make[2]: *** [/build/g24/build/signal/tst-sigset2.o] Error 1
 make[2]: *** [/build/g24/build/dirent/tst-fdopendir.o] Error 1
 make[2]: *** [/build/g24/build/posix/tst-getaddrinfo.out] Error 1
 make[2]: *** [/build/g24/build/posix/tst-waitid.out] Error 1

Modified: trunk/glibc-2.3-head/sysdeps/kfreebsd/bits/signum.h
===================================================================
--- trunk/glibc-2.3-head/sysdeps/kfreebsd/bits/signum.h	2006-04-27 14:50:19 UTC (rev 1509)
+++ trunk/glibc-2.3-head/sysdeps/kfreebsd/bits/signum.h	2006-04-27 15:33:36 UTC (rev 1510)
@@ -27,6 +27,9 @@
 #define	SIG_DFL	((__sighandler_t) 0) /* Default action.  */
 #define	SIG_IGN	((__sighandler_t) 1) /* Ignore signal.  */
 
+#ifdef __USE_UNIX98
+#define	SIG_HOLD ((__sighandler_t) 2) /* Add signal to hold mask.  */
+#endif
 
 /* Signals.  */
 #define	SIGHUP		1	/* Hangup (POSIX).  */




More information about the Glibc-bsd-commits mailing list