Searched refs:O_TRUNC (Results 1 – 4 of 4) sorted by relevance
22 #define O_TRUNC 00001000 // 文件存在且是普通文件,并以O_RDWR或O_WRONLY打开,则它会被清空 macro
12 int fd = open("example.txt", O_RDWR | O_CREAT | O_TRUNC, 0777); in main()
224 if how.o_flags.contains(FileMode::O_TRUNC) in do_sys_openat2()
91 const O_TRUNC = 0o00001000; constant