Searched refs:wronly_fd (Results 1 – 2 of 2) sorted by relevance
/third_party/ltp/testcases/kernel/syscalls/io_submit/ |
D | io_submit03.c | 44 static int wronly_fd; variable 89 wronly_fd = SAFE_OPEN(WRONLY_FILE, O_WRONLY | O_CREAT, MODE); in setup() 90 io_prep_option(&wronly_fd_iocb, wronly_fd, buf, sizeof(buf), 0, IOCB_CMD_PREAD); in setup() 97 if (wronly_fd > 0) in cleanup() 98 SAFE_CLOSE(wronly_fd); in cleanup()
|
D | io_submit01.c | 44 static int wronly_fd; variable 95 wronly_fd = SAFE_OPEN("wronly_file", O_WRONLY | O_CREAT, 0777); in setup() 96 io_prep_pread(&wronly_fd_iocb, wronly_fd, buf, sizeof(buf), 0); in setup() 104 if (wronly_fd > 0) in cleanup() 105 SAFE_CLOSE(wronly_fd); in cleanup()
|