lib9.h (481B) download
1#define _FILE_OFFSET_BITS 64
2#define _LARGEFILE64_SOURCE
3
4#include <fcntl.h>
5#include <fmt.h>
6#include <stdlib.h>
7#include <string.h>
8#include <unistd.h>
9#include <utf.h>
10
11#define OREAD O_RDONLY
12#define OWRITE O_WRONLY
13
14#define OCEXEC 0
15#define ORCLOSE 0
16#define OTRUNC 0
17
18#define nil ((void*) 0)
19
20typedef long long vlong;
21typedef unsigned long long uvlong;
22
23#define seek(fd, offset, whence) lseek(fd, offset, whence)
24#define create(name, mode, perm) creat(name, perm)