aboutsummaryrefslogtreecommitdiff
path: root/src/libbio/lib9.std.h
blob: e4897023a988b7f01f375bf51f7cdf2096ec078d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#define _FILE_OFFSET_BITS 64
#define _LARGEFILE64_SOURCE

#include <utf.h>
#include <fmt.h>

#include <fcntl.h>
#include <string.h>
#include <unistd.h>
#include <stdlib.h>

#define OREAD		O_RDONLY
#define OWRITE	O_WRONLY

#define	OCEXEC 0
#define	ORCLOSE	0
#define	OTRUNC	0

#define nil ((void*)0)

typedef long long vlong;
typedef unsigned long long uvlong;

#define seek(fd, offset, whence) lseek(fd, offset, whence)
#define create(name, mode, perm) creat(name, perm)