1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 01:27:34 +00:00

Kernel+LibC: Add some Unix signal types & definitions

This commit is contained in:
Sergey Bugaev 2020-02-05 19:41:52 +03:00 committed by Andreas Kling
parent aafa5a9d09
commit a6cb7f759e
4 changed files with 58 additions and 2 deletions

View file

@ -35,9 +35,23 @@ typedef void (*__sighandler_t)(int);
typedef __sighandler_t sighandler_t;
typedef uint32_t sigset_t;
typedef void siginfo_t;
typedef uint32_t sig_atomic_t;
union sigval {
int sival_int;
void* sival_ptr;
};
typedef struct siginfo {
int si_signo;
int si_code;
pid_t si_pid;
uid_t si_uid;
void* si_addr;
int si_status;
union sigval si_value;
} siginfo_t;
struct sigaction {
union {
void (*sa_handler)(int);
@ -82,4 +96,11 @@ extern const char* sys_siglist[NSIG];
#define SIG_UNBLOCK 1
#define SIG_SETMASK 2
#define CLD_EXITED 0
#define CLD_KILLED 1
#define CLD_DUMPED 2
#define CLD_TRAPPED 3
#define CLD_STOPPED 4
#define CLD_CONTINUED 5
__END_DECLS