Amazon FreeRTOS:
POSIX
|
返回主页↑ |
文件控制选项。 更多......
宏 | |
在 open() 和 openat( ) 的 oflag 值中使用的文件创建标志。 | |
#define | O_CLOEXEC 0x0001 |
#define | O_CREAT 0x0002 |
#define | O_DIRECTORY 0x0004 |
#define | O_EXCL 0x0008 |
#define | O_NOCTTY 0x0010 |
#define | O_NOFOLLOW 0x0020 |
#define | O_TRUNC 0x0040 |
#define | O_TTY_INIT 0x0080 |
用于 open()、openat() 和 fcntl() 的文件状态标志 | |
#define | O_APPEND 0x0100 |
#define | O_DSYNC 0x0200 |
#define | O_NONBLOCK 0x0400 |
#define | O_RSYNC 0x0800 |
#define | O_SYNC 0x0200 |
用于文件访问模式的掩码。 | |
#define | O_ACCMODE 0xF000 |
用于 open()、openat() 和 fcntl() 的文件访问模式。 | |
#define | O_EXEC 0x1000 |
#define | O_RDONLY 0x2000 |
#define | O_RDWR 0xA000 |
#define | O_SEARCH 0x4000 |
#define | O_WRONLY 0x8000 |
#define O_CLOEXEC 0x0001 |
在 exec() 时关闭文件描述符。
#define O_CREAT 0x0002 |
如果文件不存在,创建文件。
#define O_DIRECTORY 0x0004 |
如果文件为非目录文件,则失败。
#define O_EXCL 0x0008 |
专用标志。
#define O_NOCTTY 0x0010 |
不指定控制终端。
#define O_NOFOLLOW 0x0020 |
不跟随符号链接。
#define O_TRUNC 0x0040 |
截断标志。
#define O_TTY_INIT 0x0080 |
termios 结构体提供一致性行为。
#define O_APPEND 0x0100 |
设置追加模式。
#define O_DSYNC 0x0200 |
按同步 I/O 数据完整性完成写入。
#define O_NONBLOCK 0x0400 |
非阻塞模式。
#define O_RSYNC 0x0800 |
同步读取 I/O 操作。
#define O_SYNC 0x0200 |
按同步 I/O 文件完整性完成写入。
#define O_EXEC 0x1000 |
以只执行方式打开(非目录文件)。
#define O_RDONLY 0x2000 |
以只读方式打开。
#define O_RDWR 0xA000 |
以可读写方式打开。
#define O_SEARCH 0x4000 |
以只搜索方式打开。
#define O_WRONLY 0x8000 |
以只写方式打开。