Blob


1 #define __USE_UNIX98 // for pread/pwrite, supposedly
2 #include <unistd.h>
3 #include <stdlib.h>
4 #include <stdarg.h>
5 #include <setjmp.h>
6 #include <string.h>
7 #include <sys/types.h>
8 #include <sys/stat.h>
9 #include <fcntl.h>
10 #include <errno.h>
11 #include <stdio.h>
13 #include "utf.h"
14 #include "fmt.h"
16 #define nil 0
17 #define dup dup2
18 #define exec execv
19 #define seek lseek
20 #define getwd getcwd
21 #define USED(a)
22 #define SET(a)
24 enum {
25 OREAD = 0,
26 OWRITE = 1,
27 ORDWR = 2,
28 OCEXEC = 4,
29 ORCLOSE = 8
30 };
32 enum {
33 ERRMAX = 255
34 };
36 void exits(const char *);
37 void _exits(const char *);
38 int notify (void(*f)(void *, char *));
39 int create(char *, int, int);
40 int errstr(char *, int);