[git commit future] change _NSIG / 8 to __SYSCALL_SIGSET_T_SIZE in common code

Peter S. Mazinger ps.m at gmx.net
Wed Apr 27 07:29:44 UTC 2011


commit: http://git.uclibc.org/uClibc/commit/?id=cd31fe32a07ef7f79e7369c7518a1db640914815
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/future

Since mips has different kernel sigset_t, use the new macro in common
code that is used by mips as well.

Signed-off-by: Peter S. Mazinger <ps.m at gmx.net>
---
 libc/sysdeps/linux/common/signalfd.c    |    4 ++--
 libc/sysdeps/linux/common/sigpending.c  |    2 +-
 libc/sysdeps/linux/common/sigprocmask.c |    2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/libc/sysdeps/linux/common/signalfd.c b/libc/sysdeps/linux/common/signalfd.c
index a0c995a..c9584f0 100644
--- a/libc/sysdeps/linux/common/signalfd.c
+++ b/libc/sysdeps/linux/common/signalfd.c
@@ -25,13 +25,13 @@ static __inline__ _syscall3(int, __syscall_signalfd, int, fd,
 int signalfd (int fd, const sigset_t *mask, int flags)
 {
 #if defined __NR___syscall_signalfd4
-	return __syscall_signalfd4(fd, mask, _NSIG / 8, flags);
+	return __syscall_signalfd4(fd, mask, __SYSCALL_SIGSET_T_SIZE, flags);
 #elif defined __NR___syscall_signalfd
 	if (flags != 0) {
 		__set_errno(EINVAL);
 		return -1;
 	}
-	return __syscall_signalfd(fd, mask, _NSIG / 8);
+	return __syscall_signalfd(fd, mask, __SYSCALL_SIGSET_T_SIZE);
 #endif
 }
 #endif
diff --git a/libc/sysdeps/linux/common/sigpending.c b/libc/sysdeps/linux/common/sigpending.c
index 8fa2a51..78a0d84 100644
--- a/libc/sysdeps/linux/common/sigpending.c
+++ b/libc/sysdeps/linux/common/sigpending.c
@@ -19,7 +19,7 @@ static __inline__ _syscall2(int, __rt_sigpending, sigset_t *, set, size_t, size)
 
 int sigpending(sigset_t * set)
 {
-	return __rt_sigpending(set, _NSIG / 8);
+	return __rt_sigpending(set, __SYSCALL_SIGSET_T_SIZE);
 }
 #else
 _syscall1(int, sigpending, sigset_t *, set)
diff --git a/libc/sysdeps/linux/common/sigprocmask.c b/libc/sysdeps/linux/common/sigprocmask.c
index 011d7b3..6230033 100644
--- a/libc/sysdeps/linux/common/sigprocmask.c
+++ b/libc/sysdeps/linux/common/sigprocmask.c
@@ -47,7 +47,7 @@ int sigprocmask(int how, const sigset_t * set, sigset_t * oldset)
 	}
 #endif
 
-	return __rt_sigprocmask(how, set, oldset, _NSIG / 8);
+	return __rt_sigprocmask(how, set, oldset, __SYSCALL_SIGSET_T_SIZE);
 }
 
 
-- 
1.7.3.4



More information about the uClibc-cvs mailing list