summaryrefslogtreecommitdiffstats
path: root/libc/sysdeps/linux/mips/sigaction.c
diff options
context:
space:
mode:
author"Steven J. Hill" <sjhill@realitydiluted.com>2006-01-14 19:24:14 +0000
committer"Steven J. Hill" <sjhill@realitydiluted.com>2006-01-14 19:24:14 +0000
commita979d4016db090191fe7ed167d85870338e64604 (patch)
treed3b6ffd585925926036a648e915c05a1df1df59b /libc/sysdeps/linux/mips/sigaction.c
parent9138bf01b3b21ce23cfdf15fce3f30bb9a1fbc61 (diff)
downloaduClibc-alpine-a979d4016db090191fe7ed167d85870338e64604.tar.bz2
uClibc-alpine-a979d4016db090191fe7ed167d85870338e64604.tar.xz
Merge from trunk.
Diffstat (limited to 'libc/sysdeps/linux/mips/sigaction.c')
-rw-r--r--libc/sysdeps/linux/mips/sigaction.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/mips/sigaction.c b/libc/sysdeps/linux/mips/sigaction.c
index b2982678b..085e25fe6 100644
--- a/libc/sysdeps/linux/mips/sigaction.c
+++ b/libc/sysdeps/linux/mips/sigaction.c
@@ -39,7 +39,11 @@ int __libc_sigaction (int sig, const struct sigaction *act, struct sigaction *oa
if (act) {
kact.k_sa_handler = act->sa_handler;
+#ifdef IS_IN_libc
__memcpy (&kact.sa_mask, &act->sa_mask, sizeof (kact.sa_mask));
+#else
+ memcpy (&kact.sa_mask, &act->sa_mask, sizeof (kact.sa_mask));
+#endif
kact.sa_flags = act->sa_flags;
# ifdef HAVE_SA_RESTORER
# if _MIPS_SIM == _ABIO32
@@ -57,7 +61,11 @@ int __libc_sigaction (int sig, const struct sigaction *act, struct sigaction *oa
if (oact && result >= 0) {
oact->sa_handler = koact.k_sa_handler;
+#ifdef IS_IN_libc
__memcpy (&oact->sa_mask, &koact.sa_mask, sizeof (oact->sa_mask));
+#else
+ memcpy (&oact->sa_mask, &koact.sa_mask, sizeof (oact->sa_mask));
+#endif
oact->sa_flags = koact.sa_flags;
# ifdef HAVE_SA_RESTORER
oact->sa_restorer = koact.sa_restorer;