mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-15 11:20:03 +00:00
22 lines
514 B
C
22 lines
514 B
C
#include <utf.h>
|
|
#include <fmt.h>
|
|
#include <bio.h>
|
|
#include <regexp9.h>
|
|
#include <stdlib.h>
|
|
#include <unistd.h>
|
|
#include <fcntl.h>
|
|
#include <string.h>
|
|
#include <ctype.h>
|
|
#include <time.h>
|
|
|
|
#define OREAD O_RDONLY
|
|
#define OWRITE O_WRONLY
|
|
#define ORDWR O_RDWR
|
|
#define nil 0
|
|
#define nelem(x) (sizeof(x)/sizeof((x)[0]))
|
|
#define seek lseek
|
|
#define remove unlink
|
|
#define exits(x) exit(x && *(char*)x ? 1 : 0)
|
|
#define USED(x) if(x){}else
|
|
#define create(name, mode, perm) open(name, mode|O_CREAT, perm)
|
|
#define ERRMAX 256
|