From a3745af45199024a41eff35c79c05098d9f83340 Mon Sep 17 00:00:00 2001 From: rdb Date: Fri, 29 Mar 2024 13:01:40 +0100 Subject: [PATCH] parser-inc: additions to `sys/stat.h` and `signal.h` --- dtool/src/parser-inc/signal.h | 21 +++++++++++++++++++++ dtool/src/parser-inc/sys/stat.h | 5 +++++ 2 files changed, 26 insertions(+) create mode 100644 dtool/src/parser-inc/signal.h diff --git a/dtool/src/parser-inc/signal.h b/dtool/src/parser-inc/signal.h new file mode 100644 index 0000000000..8711c572dc --- /dev/null +++ b/dtool/src/parser-inc/signal.h @@ -0,0 +1,21 @@ +#pragma once + +#include +#include + +#define SIG_DFL SIG_DFL +#define SIG_ERR SIG_ERR +#define SIG_HOLD SIG_HOLD +#define SIG_IGN SIG_IGN + +typedef int pthread_t; +typedef unsigned int uid_t; +typedef int pid_t; + +typedef int sig_atomic_t; +typedef unsigned int sigset_t; + +union sigval { + int sival_int; + void *sival_ptr; +}; diff --git a/dtool/src/parser-inc/sys/stat.h b/dtool/src/parser-inc/sys/stat.h index 29ebbf9bf4..c62d64e091 100644 --- a/dtool/src/parser-inc/sys/stat.h +++ b/dtool/src/parser-inc/sys/stat.h @@ -1,3 +1,8 @@ #pragma once +#include +#include + struct stat; + +int stat(const char *restrict, struct stat *restrict);