Searched refs:rwfd (Results 1 – 3 of 3) sorted by relevance
/external/ltp/testcases/kernel/mem/mmapstress/ |
D | mmapstress07.c | 49 (void)close(rwfd); \ 90 int rofd, rwfd, i; local 161 if ((rwfd = open64(tmpname, O_RDWR)) == -1) { 163 if ((rwfd = open(tmpname, O_RDWR)) == -1) { 169 if (lseek64(rwfd, sparseoff, SEEK_SET) < 0) { 171 if (lseek(rwfd, sparseoff, SEEK_SET) < 0) { 178 while (i < pagesize && write(rwfd, "a", 1) == 1) 185 if (lseek64(rwfd, holesize, SEEK_CUR) == -1) { 187 if (lseek(rwfd, holesize, SEEK_CUR) == -1) { 194 while (i < (pagesize >> 1) && write(rwfd, "b", 1) == 1) [all …]
|
D | mmapstress04.c | 37 int i, j, rofd, rwfd; in mmapstress04() local 73 rwfd = SAFE_OPEN(TEST_FILE, O_RDWR); in mmapstress04() 77 SAFE_WRITE(SAFE_WRITE_RETRY, rwfd, buf, page_size); in mmapstress04() 79 SAFE_CLOSE(rwfd); in mmapstress04()
|
/external/ltp/testcases/kernel/io/ltp-aiodio/ |
D | aio-stress.c | 1238 int rwfd; in run() local 1309 rwfd = SAFE_OPEN(files[i], O_CREAT | O_RDWR | o_flag, 0600); in run() 1311 oper = create_oper(rwfd, first_stage, j * context_offset, in run()
|