_libc.h - 9base - revived minimalist port of Plan 9 userland to Unix
(HTM) git clone git://git.suckless.org/9base
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
_libc.h (660B)
---
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>
12
13 #include "utf.h"
14 #include "fmt.h"
15
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)
23
24 enum {
25 OREAD = 0,
26 OWRITE = 1,
27 ORDWR = 2,
28 OCEXEC = 4,
29 ORCLOSE = 8
30 };
31
32 enum {
33 ERRMAX = 255
34 };
35
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);