[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freebsd-hackers
Subject:    [PATCH] Make xsi_sigpause prototype match manpage
From:       Garrett Cooper <yanegomi () gmail ! com>
Date:       2010-07-19 5:22:29
Message-ID: AANLkTim96Za04p_1S4KRqv7ZX5LL0hBG0Y9q6PhWfzA2 () mail ! gmail ! com
[Download RAW message or body]

    Looks like kib@ checked in a version with the sigdelset fixes for
xsi_sigpause(3). This goes one step further by changing the prototype
to follow the declaration in the manpage.
Thanks,
-Garrett

Index: compat-43/sigcompat.c
===================================================================
--- compat-43/sigcompat.c	(revision 210226)
+++ compat-43/sigcompat.c	(working copy)
@@ -109,19 +109,19 @@
 }

 int
-xsi_sigpause(int sig)
+xsi_sigpause(int sigmask)
 {
 	sigset_t set;
 	int error;

-	if (!_SIG_VALID(sig)) {
+	if (!_SIG_VALID(sigmask)) {
 		errno = EINVAL;
 		return (-1);
 	}
 	error = _sigprocmask(SIG_BLOCK, NULL, &set);
 	if (error != 0)
 		return (error);
-	sigdelset(&set, sig);
+	sigdelset(&set, sigmask);
 	return (_sigsuspend(&set));
 }
_______________________________________________
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic