mirror of
https://gitlab.com/sortix/sortix.git
synced 2023-02-13 20:55:38 -05:00
Move O_ACCMODE into kernel headers.
This commit is contained in:
parent
f6f5035706
commit
564f99b3ae
2 changed files with 2 additions and 3 deletions
|
@ -48,6 +48,8 @@ __BEGIN_DECLS
|
|||
#define O_NOCTTY (1<<14)
|
||||
#define O_TTY_INIT (1<<15)
|
||||
|
||||
#define O_ACCMODE (O_READ | O_WRITE | O_EXEC | O_SEARCH)
|
||||
|
||||
#define FD_CLOEXEC (1<<0)
|
||||
#define FD_CLOFORK (1<<1)
|
||||
|
||||
|
|
|
@ -47,9 +47,6 @@ __BEGIN_DECLS
|
|||
/* Backwards compatibility with existing systems that call it O_CREAT. */
|
||||
#define O_CREAT O_CREATE
|
||||
|
||||
/* Compatibility with Linux and other systems that have this. */
|
||||
#define O_ACCMODE (O_READ | O_WRITE | O_EXEC | O_SEARCH)
|
||||
|
||||
/* TODO: POSIX_FADV_* missing here */
|
||||
|
||||
#ifndef __pid_t_defined
|
||||
|
|
Loading…
Add table
Reference in a new issue