libc: Add stubs for signal() and raise()

This commit is contained in:
apio 2022-11-09 11:37:08 +01:00
parent bbc7a7338c
commit 1300b8f5ee
2 changed files with 27 additions and 0 deletions

View File

@ -6,4 +6,16 @@ typedef int sig_atomic_t; // On the x86, writes to aligned 32-bit and 64-bit int
#define SIGINT 1 // Not implemented.
#ifdef __cplusplus
extern "C"
{
#endif
void (*signal(int sig, void (*func)(int)))(int); // Not implemented.
int raise(int sig); // Not implemented.
#ifdef __cplusplus
}
#endif
#endif

15
libs/libc/src/signal.cpp Normal file
View File

@ -0,0 +1,15 @@
#include <luna.h>
#include <signal.h>
extern "C"
{
void (*signal(int, void (*)(int)))(int)
{
NOT_IMPLEMENTED("signal");
}
int raise(int)
{
NOT_IMPLEMENTED("raise");
}
}