Move O_ACCMODE into kernel headers.

This commit is contained in:
Jonas 'Sortie' Termansen 2014-02-15 14:04:07 +01:00
parent f6f5035706
commit 564f99b3ae
2 changed files with 2 additions and 3 deletions

View File

@ -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)

View File

@ -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