Blob
1 #define __USE_UNIX98 // for pread/pwrite, supposedly2 #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 017 #define dup dup218 #define exec execv19 #define seek lseek20 #define getwd getcwd21 #define USED(a)22 #define SET(a)24 enum {25 OREAD = 0,26 OWRITE = 1,27 ORDWR = 2,28 OCEXEC = 4,29 ORCLOSE = 830 };32 enum {33 ERRMAX = 25534 };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);