-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathlib.h
More file actions
26 lines (22 loc) · 1018 Bytes
/
lib.h
File metadata and controls
26 lines (22 loc) · 1018 Bytes
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
// Definitions from libc used in the kernel
// open
#define OREAD (1<<0)
#define OWRITE (1<<1)
#define ORDWR (1<<2)
#define OEXEC (1<<3)
#define OTRUNC (1<<4) // truncate before opening
#define OCEXEC (1<<5) // close on exec
#define ORCLOSE (1<<6) // remove on close
// rfork
#define RFPROC (1<<0) // new proc
#define RFNOWAIT (1<<1) // dissasociate child from parent (no Waitmsg for parent)
#define RFNAMEG (1<<2) // copy rather than share namespace
#define RFCNAMEG (1<<3) // create clean namespace
#define RFNOMNT (1<<4) // no new mounts and no paths beginning with #
#define RFENVG (1<<5) // copy rather than share environmental variables
#define RFCENVG (1<<6) // create empty environment
#define RFNOTEG (1<<7) // create new note group
#define RFFDG (1<<8) // copy rather than share file descriptor table
#define RFCFDG (1<<9) // create empty file descriptor table
#define RFREND (1<<10) // create new rendevouz group
#define RFMEM (1<<11) // share data and bss segments