1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 06:07: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

@ -274,7 +274,21 @@ typedef void (*__sighandler_t)(int);
typedef __sighandler_t sighandler_t;
typedef u32 sigset_t;
typedef void siginfo_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 {
@ -294,6 +308,13 @@ struct sigaction {
#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
#define OFF_T_MAX 2147483647
typedef i32 off_t;
@ -432,6 +453,12 @@ struct timespec {
long tv_nsec;
};
typedef enum {
P_ALL = 1,
P_PID,
P_PGID
} idtype_t;
typedef int clockid_t;
#define CLOCK_MONOTONIC 1