aboutsummaryrefslogtreecommitdiff
path: root/src/libbio/lib9.std.h
blob: 180471e16c78f0e1e559670b2be3083d2640958f (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
26
#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)