/third_party/ltp/testcases/kernel/syscalls/lseek/ |
D | lseek11.c | 121 pos = SAFE_LSEEK(fd, 0, SEEK_DATA); in get_blocksize() 170 SAFE_LSEEK(fd, 0, SEEK_HOLE); in setup() 174 SAFE_LSEEK(fd, offset, SEEK_SET); in setup() 178 SAFE_LSEEK(fd, -128, SEEK_END); in setup() 182 SAFE_LSEEK(fd, 0, SEEK_SET); in setup() 194 offset = SAFE_LSEEK(fd, offset, tp->whence); in test_lseek() 199 if (offset != SAFE_LSEEK(fd, 0, SEEK_END)) in test_lseek()
|
/third_party/ltp/testcases/kernel/syscalls/writev/ |
D | writev07.c | 60 SAFE_LSEEK(fd, initial_file_offset, SEEK_SET); in test_partially_valid_iovec() 62 off_after = (long) SAFE_LSEEK(fd, 0, SEEK_CUR); in test_partially_valid_iovec() 75 SAFE_LSEEK(fd, 0, SEEK_SET); in test_partially_valid_iovec() 102 SAFE_LSEEK(fd, initial_file_offset, SEEK_SET); in test_partially_valid_iovec()
|
/third_party/ltp/testcases/kernel/syscalls/sendfile/ |
D | sendfile09.c | 53 SAFE_LSEEK(fd, 1024 * 1024 - 1, SEEK_CUR); in setup() 69 before_pos = SAFE_LSEEK(in_fd, 0, SEEK_CUR); in run() 72 after_pos = SAFE_LSEEK(in_fd, 0, SEEK_CUR); in run()
|
D | sendfile02.c | 61 before_pos = SAFE_LSEEK(in_fd, 0, SEEK_CUR); in run() 64 after_pos = SAFE_LSEEK(in_fd, 0, SEEK_CUR); in run()
|
/third_party/ltp/testcases/kernel/io/direct_io/ |
D | diotest1.c | 145 SAFE_LSEEK(cleanup, fd1, offset, SEEK_SET); in main() 148 SAFE_LSEEK(cleanup, fd2, offset, SEEK_SET); in main() 153 SAFE_LSEEK(cleanup, fd1, offset, SEEK_SET); in main()
|
/third_party/ltp/testcases/kernel/syscalls/dup2/ |
D | dup207.c | 57 SAFE_LSEEK(ofd, tc->offset, SEEK_SET); in run() 65 SAFE_LSEEK(ofd, tc->offset, SEEK_SET); in run()
|
/third_party/ltp/testcases/kernel/mem/hugetlb/hugemmap/ |
D | hugemmap11.c | 43 SAFE_LSEEK(nfd, 0, SEEK_SET); in run_test() 50 SAFE_LSEEK(nfd, 0, SEEK_SET); in run_test()
|
/third_party/ltp/testcases/kernel/syscalls/fcntl/ |
D | fcntl36.c | 89 SAFE_LSEEK(fd, pa->offset, SEEK_SET); in fn_ofd_w() 128 SAFE_LSEEK(fd, pa->offset, SEEK_SET); in fn_posix_w() 169 SAFE_LSEEK(fd, pa->offset, SEEK_SET); in fn_ofd_r() 229 SAFE_LSEEK(fd, pa->offset, SEEK_SET); in fn_posix_r()
|
D | fcntl34.c | 65 SAFE_LSEEK(fd, 0, SEEK_END); in thread_fn_01() 97 SAFE_LSEEK(fd, 0, SEEK_SET); in test01()
|
/third_party/ltp/testcases/kernel/syscalls/write/ |
D | write06.c | 49 off = SAFE_LSEEK(fd, K1, SEEK_SET); in verify_write() 55 off = SAFE_LSEEK(fd, 0, SEEK_CUR); in verify_write()
|
D | write01.c | 21 SAFE_LSEEK(fd, 0, SEEK_SET); in verify_write()
|
/third_party/ltp/testcases/kernel/syscalls/pwritev/ |
D | pwritev01.c | 52 SAFE_LSEEK(fd, 0, SEEK_SET); in verify_pwritev() 66 if (SAFE_LSEEK(fd, 0, SEEK_CUR) != 0) { in verify_pwritev()
|
/third_party/ltp/testcases/kernel/syscalls/msync/ |
D | msync04.c | 32 SAFE_LSEEK(pagemap_fd, index, SEEK_SET); in get_dirty_bit() 40 SAFE_LSEEK(pageflags_fd, index, SEEK_SET); in get_dirty_bit()
|
/third_party/ltp/testcases/kernel/syscalls/preadv/ |
D | preadv01.c | 50 SAFE_LSEEK(fd, 0, SEEK_SET); in verify_preadv() 75 if (SAFE_LSEEK(fd, 0, SEEK_CUR) != 0) { in verify_preadv()
|
D | preadv03.c | 57 SAFE_LSEEK(fd, 0, SEEK_SET); in verify_direct_preadv() 82 if (SAFE_LSEEK(fd, 0, SEEK_CUR) != 0) { in verify_direct_preadv()
|
/third_party/ltp/testcases/kernel/syscalls/truncate/ |
D | truncate02.c | 74 if (SAFE_LSEEK(fd, 0, SEEK_CUR)) { in verify_truncate() 99 SAFE_LSEEK(fd, 0, SEEK_SET); in setup()
|
/third_party/ltp/testcases/kernel/syscalls/pwritev2/ |
D | pwritev201.c | 58 SAFE_LSEEK(fd, tc->seek_off, SEEK_SET); in verify_pwritev2() 72 if (SAFE_LSEEK(fd, 0, SEEK_CUR) != tc->exp_off) { in verify_pwritev2()
|
/third_party/ltp/testcases/kernel/syscalls/preadv2/ |
D | preadv201.c | 60 SAFE_LSEEK(fd, tc->seek_off, SEEK_SET); in verify_preadv2() 85 if (SAFE_LSEEK(fd, 0, SEEK_CUR) != tc->exp_off) { in verify_preadv2()
|
/third_party/ltp/testcases/kernel/mem/thp/ |
D | thp04.c | 108 SAFE_LSEEK(readfd, (off_t)write_ptr, SEEK_SET); in thread_run() 127 SAFE_LSEEK(writefd, (off_t)write_ptr, SEEK_SET); in run()
|
/third_party/ltp/testcases/kernel/syscalls/inotify/ |
D | inotify05.c | 52 SAFE_LSEEK(fd, 0, SEEK_SET); in verify_inotify() 54 SAFE_LSEEK(fd, 0, SEEK_SET); in verify_inotify()
|
/third_party/ltp/testcases/kernel/syscalls/pread/ |
D | pread01.c | 36 offloc = SAFE_LSEEK(fdesc, offset, whence); in l_seek() 95 SAFE_LSEEK(fildes, K4, SEEK_SET); in setup()
|
/third_party/ltp/testcases/kernel/io/ltp-aiodio/ |
D | common.h | 74 SAFE_LSEEK(fd, SEEK_SET, 0); in io_read() 114 offset = SAFE_LSEEK(fd, SEEK_END, 0); in io_read_eof()
|
/third_party/ltp/testcases/kernel/syscalls/open/ |
D | open12.c | 122 len1 = SAFE_LSEEK(cleanup, TEST_RETURN, 0, SEEK_CUR); in test_append() 125 len2 = SAFE_LSEEK(cleanup, TEST_RETURN, 0, SEEK_CUR); in test_append()
|
/third_party/ltp/testcases/kernel/syscalls/fallocate/ |
D | fallocate06.c | 207 SAFE_LSEEK(fd, offset, SEEK_SET); in run() 227 SAFE_LSEEK(fd, 0, SEEK_SET); in run()
|
/third_party/ltp/testcases/kernel/syscalls/read/ |
D | read01.c | 17 SAFE_LSEEK(fd, 0, SEEK_SET); in verify_read()
|