mirror of
https://gitlab.com/sortix/sortix.git
synced 2023-02-13 20:55:38 -05:00
Add O_TTY_INIT.
This commit is contained in:
parent
426848fbbf
commit
554894d840
2 changed files with 2 additions and 1 deletions
|
@ -52,7 +52,7 @@ const int ACCESS_FLAGS = O_READ | O_WRITE | O_EXEC | O_SEARCH;
|
|||
|
||||
// Flags that only make sense at open time.
|
||||
const int OPEN_FLAGS = O_CREATE | O_DIRECTORY | O_EXCL | O_TRUNC | O_NOFOLLOW |
|
||||
O_SYMLINK_NOFOLLOW | O_NOCTTY;
|
||||
O_SYMLINK_NOFOLLOW | O_NOCTTY | O_TTY_INIT;
|
||||
|
||||
// Flags that only make sense for descriptors.
|
||||
const int DESCRIPTOR_FLAGS = O_APPEND | O_NONBLOCK;
|
||||
|
|
|
@ -46,6 +46,7 @@ __BEGIN_DECLS
|
|||
#define O_NOFOLLOW (1<<12)
|
||||
#define O_SYMLINK_NOFOLLOW (1<<13)
|
||||
#define O_NOCTTY (1<<14)
|
||||
#define O_TTY_INIT (1<<15)
|
||||
|
||||
#define FD_CLOEXEC (1<<0)
|
||||
#define FD_CLOFORK (1<<1)
|
||||
|
|
Loading…
Add table
Reference in a new issue