Explorar o código

parser-inc: additions to `sys/stat.h` and `signal.h`

rdb hai 1 ano
pai
achega
a3745af451
Modificáronse 2 ficheiros con 26 adicións e 0 borrados
  1. 21 0
      dtool/src/parser-inc/signal.h
  2. 5 0
      dtool/src/parser-inc/sys/stat.h

+ 21 - 0
dtool/src/parser-inc/signal.h

@@ -0,0 +1,21 @@
+#pragma once
+
+#include <stdtypedefs.h>
+#include <time.h>
+
+#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;
+};

+ 5 - 0
dtool/src/parser-inc/sys/stat.h

@@ -1,3 +1,8 @@
 #pragma once
 
+#include <sys/types.h>
+#include <time.h>
+
 struct stat;
+
+int stat(const char *restrict, struct stat *restrict);