summaryrefslogtreecommitdiff
path: root/libc/signal
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2005-12-01 20:43:44 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2005-12-01 20:43:44 +0000
commit8a0b43005ad9ea011b80d66e32b46fb430ddaffb (patch)
tree418818740042c5dbba244bc1efc760c8d29e47a9 /libc/signal
parent42b161bb716f35948fabd36472fb59cd0a20fa92 (diff)
Hide mostly used functions
Diffstat (limited to 'libc/signal')
-rw-r--r--libc/signal/sigaction.c4
-rw-r--r--libc/signal/sigblock.c2
-rw-r--r--libc/signal/sigempty.c2
-rw-r--r--libc/signal/sigfillset.c2
-rw-r--r--libc/signal/sighold.c4
-rw-r--r--libc/signal/sigjmp.c2
-rw-r--r--libc/signal/sigpause.c2
-rw-r--r--libc/signal/sigrelse.c4
-rw-r--r--libc/signal/sigset.c4
-rw-r--r--libc/signal/sigsetmask.c2
10 files changed, 14 insertions, 14 deletions
diff --git a/libc/signal/sigaction.c b/libc/signal/sigaction.c
index 0ead76ef6..5a56ed1e6 100644
--- a/libc/signal/sigaction.c
+++ b/libc/signal/sigaction.c
@@ -45,7 +45,7 @@ __libc_sigaction (sig, act, oact)
if (act) {
kact.k_sa_handler = act->sa_handler;
- memcpy (&kact.sa_mask, &act->sa_mask, sizeof (kact.sa_mask));
+ __memcpy (&kact.sa_mask, &act->sa_mask, sizeof (kact.sa_mask));
kact.sa_flags = act->sa_flags;
# ifdef HAVE_SA_RESTORER
kact.sa_restorer = act->sa_restorer;
@@ -60,7 +60,7 @@ __libc_sigaction (sig, act, oact)
if (oact && result >= 0) {
oact->sa_handler = koact.k_sa_handler;
- memcpy (&oact->sa_mask, &koact.sa_mask, sizeof (oact->sa_mask));
+ __memcpy (&oact->sa_mask, &koact.sa_mask, sizeof (oact->sa_mask));
oact->sa_flags = koact.sa_flags;
# ifdef HAVE_SA_RESTORER
oact->sa_restorer = koact.sa_restorer;
diff --git a/libc/signal/sigblock.c b/libc/signal/sigblock.c
index 62ef060ac..70af609aa 100644
--- a/libc/signal/sigblock.c
+++ b/libc/signal/sigblock.c
@@ -29,7 +29,7 @@ int __sigblock (int mask)
if (sigset_set_old_mask (&set, mask) < 0)
return -1;
- if (sigprocmask (SIG_BLOCK, &set, &oset) < 0)
+ if (__sigprocmask (SIG_BLOCK, &set, &oset) < 0)
return -1;
return sigset_get_old_mask (&oset);
diff --git a/libc/signal/sigempty.c b/libc/signal/sigempty.c
index 75b5be420..777edbdd5 100644
--- a/libc/signal/sigempty.c
+++ b/libc/signal/sigempty.c
@@ -31,7 +31,7 @@ sigemptyset (set)
return -1;
}
- memset (set, 0, sizeof (sigset_t));
+ __memset (set, 0, sizeof (sigset_t));
return 0;
}
diff --git a/libc/signal/sigfillset.c b/libc/signal/sigfillset.c
index 03361787e..f06334216 100644
--- a/libc/signal/sigfillset.c
+++ b/libc/signal/sigfillset.c
@@ -31,7 +31,7 @@ sigfillset (set)
return -1;
}
- memset (set, 0xff, sizeof (sigset_t));
+ __memset (set, 0xff, sizeof (sigset_t));
/* If the implementation uses a cancellation signal don't set the bit. */
#ifdef SIGCANCEL
diff --git a/libc/signal/sighold.c b/libc/signal/sighold.c
index 670a4872e..29b452f63 100644
--- a/libc/signal/sighold.c
+++ b/libc/signal/sighold.c
@@ -30,7 +30,7 @@ sighold (sig)
sigset_t set;
/* Retrieve current signal set. */
- if (sigprocmask (SIG_SETMASK, NULL, &set) < 0)
+ if (__sigprocmask (SIG_SETMASK, NULL, &set) < 0)
return -1;
/* Add the specified signal. */
@@ -38,5 +38,5 @@ sighold (sig)
return -1;
/* Set the new mask. */
- return sigprocmask (SIG_SETMASK, &set, NULL);
+ return __sigprocmask (SIG_SETMASK, &set, NULL);
}
diff --git a/libc/signal/sigjmp.c b/libc/signal/sigjmp.c
index 59fe6db7a..37f19595a 100644
--- a/libc/signal/sigjmp.c
+++ b/libc/signal/sigjmp.c
@@ -27,7 +27,7 @@
int __sigjmp_save (sigjmp_buf env, int savemask)
{
env[0].__mask_was_saved = (savemask &&
- sigprocmask (SIG_BLOCK, (sigset_t *) NULL, &env[0].__saved_mask) == 0);
+ __sigprocmask (SIG_BLOCK, (sigset_t *) NULL, &env[0].__saved_mask) == 0);
return 0;
}
diff --git a/libc/signal/sigpause.c b/libc/signal/sigpause.c
index e25803a9b..35d58c680 100644
--- a/libc/signal/sigpause.c
+++ b/libc/signal/sigpause.c
@@ -32,7 +32,7 @@ int __sigpause (int sig_or_mask, int is_sig)
if (is_sig != 0)
{
/* The modern X/Open implementation is requested. */
- if (sigprocmask (0, NULL, &set) < 0
+ if (__sigprocmask (0, NULL, &set) < 0
/* Yes, we call `sigdelset' and not `__sigdelset'. */
|| sigdelset (&set, sig_or_mask) < 0)
return -1;
diff --git a/libc/signal/sigrelse.c b/libc/signal/sigrelse.c
index 091f97de5..5519480e1 100644
--- a/libc/signal/sigrelse.c
+++ b/libc/signal/sigrelse.c
@@ -30,7 +30,7 @@ sigrelse (sig)
sigset_t set;
/* Retrieve current signal set. */
- if (sigprocmask (SIG_SETMASK, NULL, &set) < 0)
+ if (__sigprocmask (SIG_SETMASK, NULL, &set) < 0)
return -1;
/* Remove the specified signal. */
@@ -38,5 +38,5 @@ sigrelse (sig)
return -1;
/* Set the new mask. */
- return sigprocmask (SIG_SETMASK, &set, NULL);
+ return __sigprocmask (SIG_SETMASK, &set, NULL);
}
diff --git a/libc/signal/sigset.c b/libc/signal/sigset.c
index 0ce411c8c..350e3cb2d 100644
--- a/libc/signal/sigset.c
+++ b/libc/signal/sigset.c
@@ -46,7 +46,7 @@ sigset (sig, disp)
return SIG_ERR;
/* Add the signal set to the current signal mask. */
- if (sigprocmask (SIG_BLOCK, &set, NULL) < 0)
+ if (__sigprocmask (SIG_BLOCK, &set, NULL) < 0)
return SIG_ERR;
return SIG_HOLD;
@@ -76,7 +76,7 @@ sigset (sig, disp)
return SIG_ERR;
/* Remove the signal set from the current signal mask. */
- if (sigprocmask (SIG_UNBLOCK, &set, NULL) < 0)
+ if (__sigprocmask (SIG_UNBLOCK, &set, NULL) < 0)
return SIG_ERR;
return oact.sa_handler;
diff --git a/libc/signal/sigsetmask.c b/libc/signal/sigsetmask.c
index 4b27b54a9..1c16d6411 100644
--- a/libc/signal/sigsetmask.c
+++ b/libc/signal/sigsetmask.c
@@ -30,7 +30,7 @@ __sigsetmask (int mask)
if (sigset_set_old_mask (&set, mask) < 0)
return -1;
- if (sigprocmask (SIG_SETMASK, &set, &oset) < 0)
+ if (__sigprocmask (SIG_SETMASK, &set, &oset) < 0)
return -1;