header cleanup, conformance fixes - signals
This commit is contained in:
parent
c316b28445
commit
1322cb82a3
4 changed files with 36 additions and 25 deletions
|
|
@ -1,6 +0,0 @@
|
|||
#include <signal.h>
|
||||
|
||||
void (*bsd_signal(int sig, void (*func)(int)))(int)
|
||||
{
|
||||
return signal(sig, func);
|
||||
}
|
||||
|
|
@ -1,6 +1,7 @@
|
|||
#include <signal.h>
|
||||
#include <stddef.h>
|
||||
#include "syscall.h"
|
||||
#include "libc.h"
|
||||
|
||||
int __sigaction(int, const struct sigaction *, struct sigaction *);
|
||||
|
||||
|
|
@ -11,3 +12,5 @@ void (*signal(int sig, void (*func)(int)))(int)
|
|||
return SIG_ERR;
|
||||
return sa.sa_handler;
|
||||
}
|
||||
|
||||
weak_alias(signal, bsd_signal);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue