Searched refs:O_RDWR (Results 1 – 7 of 7) sorted by relevance
18 #define O_RDWR 00000002 // Open read/write29 #define O_TRUNC 00001000 // 文件存在且是普通文件,并以O_RDWR或O_WRONLY打开,则它会被清空
77 o_flags = O_RDWR; in fopen()81 o_flags = O_RDWR | O_CREAT; in fopen()
15 #define O_RDWR 00000002 // Open read/write macro
19 #define O_RDWR 00000002 // Open read/write macro
43 const O_RDWR = 0o2; constant
169 && (mode.contains(FileMode::O_RDWR) || mode.contains(FileMode::O_WRONLY)) in open()
59 let f = File::new(socketinode, FileMode::O_RDWR)?; in socket()343 let new_fd = current_pcb().alloc_fd(File::new(new_socket, FileMode::O_RDWR)?, None)?; in accept()