mirror of
https://gitlab.com/sortix/sortix.git
synced 2023-02-13 20:55:38 -05:00
Add O_ACCMODE.
This commit is contained in:
parent
09ddd20fb6
commit
d7c8e1e6df
1 changed files with 6 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
|||
/*******************************************************************************
|
||||
|
||||
Copyright(C) Jonas 'Sortie' Termansen 2011.
|
||||
Copyright(C) Jonas 'Sortie' Termansen 2011, 2012, 2013.
|
||||
|
||||
This file is part of the Sortix C Library.
|
||||
|
||||
|
@ -24,8 +24,8 @@
|
|||
|
||||
/* TODO: POSIX-1.2008 compliance is only partial */
|
||||
|
||||
#ifndef _FCNTL_H
|
||||
#define _FCNTL_H 1
|
||||
#ifndef INCLUDE_FCNTL_H
|
||||
#define INCLUDE_FCNTL_H
|
||||
|
||||
#include <features.h>
|
||||
#include <sortix/fcntl.h>
|
||||
|
@ -42,6 +42,9 @@ __BEGIN_DECLS
|
|||
#define O_WRONLY O_WRITE
|
||||
#define O_RDWR (O_READ | O_WRITE)
|
||||
|
||||
/* Compatibility with Linux and other systems that have this. */
|
||||
#define O_ACCMODE (O_READ | O_WRITE | O_EXEC | O_SEARCH)
|
||||
|
||||
/* TODO: F_* missing here */
|
||||
|
||||
/* TODO: F_RDLCK, F_UNLCK, F_WRLCK missing here */
|
||||
|
|
Loading…
Add table
Reference in a new issue