# fcntl.h ## **Overview** **Related Modules:** [FS](FS.md) **Description:** Declares structures and functions used for file and directory operations such as opening a file, creating a file, and allocating space. **Since:** 1.0 **Version:** 1.0 ## **Summary** ## Macros
O_ACCMODE (03|O_SEARCH) |
|
O_RDONLY 00 |
|
O_WRONLY 01 |
|
O_RDWR 02 |
|
Pre-allocates space to a file. See fallocate. |
creat (const char *path, mode_t mode) |
|
open (const char *path, int oflags,...) |
|
fallocate (int fd, int mode, off_t offset, off_t len) |
|
fcntl (int fd, int cmd,...) |