Home
last modified time | relevance | path

Searched refs:O_TRUNC (Results 1 – 4 of 4) sorted by relevance

/DragonOS/kernel/src/common/
H A Dfcntl.h22 #define O_TRUNC 00001000 // 文件存在且是普通文件,并以O_RDWR或O_WRONLY打开,则它会被清空 macro
/DragonOS/user/apps/test_filemap/
H A Dmain.c12 int fd = open("example.txt", O_RDWR | O_CREAT | O_TRUNC, 0777); in main()
/DragonOS/kernel/src/filesystem/vfs/
H A Dopen.rs224 if how.o_flags.contains(FileMode::O_TRUNC) in do_sys_openat2()
H A Dfile.rs91 const O_TRUNC = 0o00001000; constant