diff options
author | Austin Foxley <austinf@cetoncorp.com> | 2009-05-26 15:35:16 -0700 |
---|---|---|
committer | Austin Foxley <austinf@cetoncorp.com> | 2009-05-26 15:35:16 -0700 |
commit | c033aa2afcd0c1db54670c90a251aee5019380ce (patch) | |
tree | 220af8f5d64c4364b93a366ad7b952e9f95a9883 /libc/sysdeps/linux/sparc/sigaction.c | |
parent | 3a68273a2b5eb17fd1662f08a6e08256c690d34f (diff) |
Add working pipe implementation for sparc
Also get rid of warning in sparc sigaction
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
Diffstat (limited to 'libc/sysdeps/linux/sparc/sigaction.c')
-rw-r--r-- | libc/sysdeps/linux/sparc/sigaction.c | 8 |
1 files changed, 6 insertions, 2 deletions
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) { |