diff options
| author | Jakob Kaivo <jkk@ung.org> | 2024-05-28 15:50:03 -0400 |
|---|---|---|
| committer | Jakob Kaivo <jkk@ung.org> | 2024-05-28 15:50:03 -0400 |
| commit | c9ec058657f9f8b3fd39a16f1a9e993b4a1e982e (patch) | |
| tree | 6cf1abadd04a1a9049d82ffe0e78be7f8b4cece2 /src/_forced/sigaction.h | |
| parent | b4cd7036bea6c6440fbbcdaebe53c864c87a5646 (diff) | |
abstract out "forced" implementations of functions from future specifications
Diffstat (limited to 'src/_forced/sigaction.h')
| -rw-r--r-- | src/_forced/sigaction.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/_forced/sigaction.h b/src/_forced/sigaction.h new file mode 100644 index 00000000..33398c49 --- /dev/null +++ b/src/_forced/sigaction.h @@ -0,0 +1,18 @@ +/* TODO: appropriate #ifdefs */ + +#define SA_RESTART 0x10000000 +#define SA_RESTORER 0x04000000 + +typedef unsigned long pid_t; +typedef unsigned long uid_t; +typedef unsigned long clock_t; +#include "signal/sigset_t.h" +#include "signal/union_sigval.h" +#include "signal/siginfo_t.h" + +#define _POSIX_C_SOURCE 199506L +#include "signal/struct_sigaction.h" + +static int sigaction(int, const struct sigaction * restrict, struct sigaction * restrict); + +#include "signal/sigaction.c" |
