Skip to content

Commit 1bc0418

Browse files
committed
(UNSTABLE) add signal.h
1 parent cbcd5f4 commit 1bc0418

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

src/libc/header_test.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
#include <limits.h>
1313
#include <math.h>
1414
#include <setjmp.h>
15+
#include <signal.h>
1516
#include <stdalign.h>
1617
#include <stdarg.h>
1718
#include <stdbit.h>

src/libc/include/signal.h

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#ifndef _SETJMP_H
2+
#define _SETJMP_H
3+
4+
#include <cdefs.h>
5+
6+
__BEGIN_DECLS
7+
8+
void (*signal(int sig, void (*func)(int)))(int);
9+
10+
int raise(int sig);
11+
12+
__END_DECLS
13+
14+
#endif /* _SETJMP_H */

0 commit comments

Comments
 (0)