|
FreeNOS
|
Go to the source code of this file.
Macros | |
File Constants | |
| #define | O_CREAT (1 << 0) |
| Create file if it does not exist. | |
| #define | O_EXCL (1 << 1) |
| Exclusive use flag. | |
| #define | O_NOCTTY (1 << 2) |
| Do not assign controlling terminal. | |
| #define | O_TRUNC (1 << 3) |
| Truncate flag. | |
| #define | O_TTY_INIT (1 << 4) |
| Set the termios structure terminal parameters to a state that provides conforming behavior; see Parameters that Can be Set. | |
| #define | O_APPEND (1 << 5) |
| Set append mode. | |
| #define | O_DSYNC (1 << 6) |
| Write according to synchronized I/O data integrity completion. | |
| #define | O_NONBLOCK (1 << 7) |
| Non-blocking mode. | |
| #define | O_RSYNC (1 << 8) |
| Synchronized read I/O operations. | |
| #define | O_SYNC (1 << 9) |
| Write according to synchronized I/O file integrity completion. | |
| #define | O_ACCMODE (O_EXEC | O_RDONLY | O_RDWR | O_SEARCH | O_WRONLY) |
| Mask for file access modes. | |
| #define | O_EXEC (1 << 10) |
| Open for execute only (non-directory files). | |
| #define | O_RDONLY (1 << 11) |
| Open for reading only. | |
| #define | O_RDWR (1 << 12) |
| Open for reading and writing. | |
| #define | O_SEARCH (1 << 13) |
| Open directory for search only. | |
| #define | O_WRONLY (1 << 14) |
| Open for writing only. | |
Functions | |
| C int | open (const char *path, int oflag,...) |
| Open file relative to directory file descriptor. | |