summaryrefslogtreecommitdiffstats
path: root/libc/sysdeps/linux/sparc/sigaction.c
diff options
context:
space:
mode:
authorAustin Foxley <austinf@cetoncorp.com>2009-05-26 15:35:16 -0700
committerAustin Foxley <austinf@cetoncorp.com>2009-05-26 15:39:11 -0700
commit752fb1ee959150fef7796e396f65f37538dae18c (patch)
tree98b96cc5bac433f8723b4ff392e887f0e0909573 /libc/sysdeps/linux/sparc/sigaction.c
parenta9d135ebd14800bbae1db3c655336da57c4a50ac (diff)
downloaduClibc-alpine-752fb1ee959150fef7796e396f65f37538dae18c.tar.bz2
uClibc-alpine-752fb1ee959150fef7796e396f65f37538dae18c.tar.xz
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.c8
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)
{