blob: fc6a4629f0cf37666f6e8863f0fb5b82b3ce0739 [file] [log] [blame]
rsc9aa1c922005-01-04 22:41:27 +00001#include <utf.h>
2#include <fmt.h>
3#include <bio.h>
4#include <regexp9.h>
5#include <stdlib.h>
6#include <unistd.h>
7#include <fcntl.h>
8#include <string.h>
9#include <ctype.h>
10#include <time.h>
11
12#define OREAD O_RDONLY
13#define OWRITE O_WRONLY
14#define ORDWR O_RDWR
15#define nil 0
rsc78e51a82005-01-14 03:45:44 +000016#define nelem(x) (sizeof(x)/sizeof((x)[0]))
rsc9aa1c922005-01-04 22:41:27 +000017#define seek lseek
18#define remove unlink
19#define exits(x) exit(x && *(char*)x ? 1 : 0)
20#define USED(x) if(x){}else
21#define create(name, mode, perm) open(name, mode|O_CREAT, perm)
22#define ERRMAX 256