SHA256
1
0
forked from pool/tcsh
tcsh/tcsh-6.14.00-bsdsignals.dif

35 lines
873 B
Plaintext

--- tc.sig.c
+++ tc.sig.c 2005-08-17 14:10:52.000000000 +0200
@@ -266,7 +266,7 @@
* Set a new signal mask. Return old mask.
*/
sigmask_t
-sigsetmask(mask)
+bsd_sigsetmask(mask)
sigmask_t mask;
{
sigset_t set, oset;
@@ -302,7 +302,7 @@
* Return old mask.
*/
sigmask_t
-sigblock(mask)
+bsd_sigblock(mask)
sigmask_t mask;
{
sigset_t set, oset;
--- tc.sig.h
+++ tc.sig.h 2005-08-17 14:10:34.000000000 +0200
@@ -154,6 +154,11 @@
# undef signal
# endif /* WINNT_NATIVE */
# define signal(a, b) bsd_signal(a, b)
+# define sigblock(a) bsd_sigblock(a)
+# define sigsetmask(a) bsd_sigsetmask(a)
+extern sigmask_t bsd_sigsetmask(sigmask_t mask);
+extern sigmask_t bsd_sigblock (sigmask_t mask);
+extern void bsd_sigpause (sigmask_t mask);
# endif /* POSIXSIGS */
# ifndef _SEQUENT_
# define sighold(s) sigblock(sigmask(s))