source: trunk/kernel/syscalls/shared_include/almos-mkh/fcntl.h @ 444

Last change on this file since 444 was 444, checked in by satin@…, 6 years ago

add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc

File size: 1.3 KB
Line 
1#ifndef _SHARED_FCNTL_H_
2#define _SHARED_FCNTL_H_
3
4/*******************************************************************************************
5 * This enum defines the attributes bit-vector for an "open" syscall.
6 ******************************************************************************************/
7
8typedef enum
9{
10    O_RDONLY   = 0x0010000,    /*! open file in read-only mode                            */
11    O_WRONLY   = 0x0020000,    /*! open file in write-only mode                           */
12    O_RDWR     = 0x0030000,    /*! open file in read/write mode                           */
13    O_NONBLOCK = 0x0040000,    /*! do not block if data non available                     */
14    O_APPEND   = 0x0080000,    /*! append on each write                                   */
15    O_CREAT    = 0x0100000,    /*! create file if it does not exist                       */
16    O_TRUNC    = 0x0200000,    /*! file length is forced to 0                             */
17    O_EXCL     = 0x0400000,    /*! error if VFS_O_CREAT and file exist                    */
18    O_SYNC         = 0x0800000,    /*! synchronize File System on each write                  */
19    O_CLOEXEC  = 0x1000000,    /*! set the close-on-exec flag in file descriptor          */
20    O_DIR      = 0x2000000,    /*! new file descriptor is for a directory                 */
21}
22open_attr_t;
23
24#endif
Note: See TracBrowser for help on using the repository browser.