summaryrefslogtreecommitdiff
path: root/sysroot/include/sys/asm/unistd.h
blob: 4ff629c29236565fabee5890ea79bd6674f051e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef __MCPU_SYS_ASM_UNISTD_H
#define __MCPU_SYS_ASM_UNISTD_H

#define STDIN_FILENO   0
#define STDOUT_FILENO  1
#define STDERR_FILENO  2

/* pipe2(2) writes two u64 guest descriptors to this fixed output array. */
#define __MCPU_PIPEFD_SIZE   16
#define __MCPU_PIPEFD_READ    0
#define __MCPU_PIPEFD_WRITE   8

#define F_OK           0
#define X_OK           1
#define W_OK           2
#define R_OK           4

#define SEEK_SET       0
#define SEEK_CUR       1
#define SEEK_END       2

#endif /* __MCPU_SYS_ASM_UNISTD_H */