summaryrefslogtreecommitdiff
path: root/libc/signal
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2006-01-26 22:04:19 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2006-01-26 22:04:19 +0000
commit05e75260d6952308d7c865ff67c0e3678b7ba935 (patch)
treeac1a5d0ab7904783917b52ffa5489e8367743ff7 /libc/signal
parent2fec342738cefe71910e8e8ab8636accfc5867bc (diff)
Get rid of missing prototype warnings
Diffstat (limited to 'libc/signal')
-rw-r--r--libc/signal/allocrtsig.c1
-rw-r--r--libc/signal/raise.c3
-rw-r--r--libc/signal/sigjmp.c2
-rw-r--r--libc/signal/signal.c1
-rw-r--r--libc/signal/sigwait.c3
5 files changed, 7 insertions, 3 deletions
diff --git a/libc/signal/allocrtsig.c b/libc/signal/allocrtsig.c
index 0bdbd2842..87fd9a641 100644
--- a/libc/signal/allocrtsig.c
+++ b/libc/signal/allocrtsig.c
@@ -55,6 +55,7 @@ int __libc_current_sigrtmax (void)
/* Allocate real-time signal with highest/lowest available
priority. Please note that we don't use a lock since we assume
this function to be called at program start. */
+int __libc_allocate_rtsig (int high);
int __libc_allocate_rtsig (int high)
{
if (current_rtmin == -1 || current_rtmin > current_rtmax)
diff --git a/libc/signal/raise.c b/libc/signal/raise.c
index c092cb12b..9761ac162 100644
--- a/libc/signal/raise.c
+++ b/libc/signal/raise.c
@@ -12,7 +12,8 @@
libc_hidden_proto(getpid)
libc_hidden_proto(kill)
-int attribute_hidden __raise(int signo)
+int __raise (int signo) attribute_hidden;
+int __raise(int signo)
{
return kill(getpid(), signo);
}
diff --git a/libc/signal/sigjmp.c b/libc/signal/sigjmp.c
index 26eec738f..38892e050 100644
--- a/libc/signal/sigjmp.c
+++ b/libc/signal/sigjmp.c
@@ -27,7 +27,7 @@ libc_hidden_proto(sigprocmask)
before doing a `__setjmp' on ENV[0].__jmpbuf.
Always return zero. */
-attribute_hidden
+int __sigjmp_save (sigjmp_buf env, int savemask) attribute_hidden;
int __sigjmp_save (sigjmp_buf env, int savemask)
{
env[0].__mask_was_saved = (savemask &&
diff --git a/libc/signal/signal.c b/libc/signal/signal.c
index 6a0beb9f7..991a14f1b 100644
--- a/libc/signal/signal.c
+++ b/libc/signal/signal.c
@@ -28,6 +28,7 @@ sigset_t _sigintr attribute_hidden; /* Set by siginterrupt. */
/* Set the handler for the signal SIG to HANDLER,
returning the old handler, or SIG_ERR on error. */
+extern __typeof(bsd_signal) __bsd_signal;
attribute_hidden __sighandler_t
__bsd_signal (int sig, __sighandler_t handler)
{
diff --git a/libc/signal/sigwait.c b/libc/signal/sigwait.c
index e309c3e8f..8ff2541a0 100644
--- a/libc/signal/sigwait.c
+++ b/libc/signal/sigwait.c
@@ -24,7 +24,8 @@
libc_hidden_proto(sigwaitinfo)
-int attribute_hidden __sigwait (const sigset_t *set, int *sig)
+int __sigwait (const sigset_t *set, int *sig) attribute_hidden;
+int __sigwait (const sigset_t *set, int *sig)
{
int ret = 1;
if ((ret = sigwaitinfo(set, NULL)) != -1) {