From c033aa2afcd0c1db54670c90a251aee5019380ce Mon Sep 17 00:00:00 2001 From: Austin Foxley Date: Tue, 26 May 2009 15:35:16 -0700 Subject: Add working pipe implementation for sparc Also get rid of warning in sparc sigaction Signed-off-by: Austin Foxley --- libc/sysdeps/linux/sparc/sigaction.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'libc/sysdeps/linux/sparc/sigaction.c') diff --git a/libc/sysdeps/linux/sparc/sigaction.c b/libc/sysdeps/linux/sparc/sigaction.c index 9dee63b6c..67db1c8f9 100644 --- a/libc/sysdeps/linux/sparc/sigaction.c +++ b/libc/sysdeps/linux/sparc/sigaction.c @@ -38,7 +38,7 @@ int __libc_sigaction (int sig, __const struct sigaction *act, struct sigaction *oact) { int ret; - struct old_kernel_sigaction kact, koact; + struct old_kernel_sigaction kact, koact; unsigned long stub = 0; int saved_errno = errno; @@ -54,7 +54,11 @@ __libc_sigaction (int sig, __const struct sigaction *act, struct sigaction *oact kact.sa_restorer = NULL; } /* XXX The size argument hopefully will have to be changed to the real size of the user-level sigset_t. */ - ret = rt_sigaction(sig, act ? &kact : NULL, oact ? &koact : NULL, stub, _NSIG / 8); + ret = rt_sigaction(sig, + (int)(act ? &kact : NULL), + (int)(oact ? &koact : NULL), + stub, + _NSIG / 8); if (ret >= 0 || errno != ENOSYS) { -- cgit v1.2.3