Home
last modified time | relevance | path

Searched refs:SAFE_LSEEK (Results 1 – 25 of 35) sorted by relevance

12

/external/ltp/testcases/kernel/syscalls/lseek/
Dlseek11.c121 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()
/external/ltp/testcases/kernel/syscalls/writev/
Dwritev07.c60 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()
/external/ltp/testcases/kernel/io/direct_io/
Ddiotest1.c145 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()
/external/ltp/testcases/kernel/syscalls/sendfile/
Dsendfile09.c94 before_pos = SAFE_LSEEK(cleanup, in_fd, 0, SEEK_CUR); in do_sendfile()
100 after_pos = SAFE_LSEEK(cleanup, in_fd, 0, SEEK_CUR); in do_sendfile()
146 SAFE_LSEEK(cleanup, fd, 1024 * 1024 - 1, SEEK_CUR); in setup()
Dsendfile08.c70 ret = SAFE_LSEEK(cleanup, out_fd, 0, SEEK_SET); in main()
/external/ltp/testcases/kernel/syscalls/pwritev/
Dpwritev01.c52 SAFE_LSEEK(fd, 0, SEEK_SET); in verify_pwritev()
66 if (SAFE_LSEEK(fd, 0, SEEK_CUR) != 0) { in verify_pwritev()
Dpwritev03.c67 if (SAFE_LSEEK(fd, 0, SEEK_CUR) != 0) { in verify_direct_pwritev()
/external/ltp/testcases/kernel/syscalls/preadv/
Dpreadv01.c50 SAFE_LSEEK(fd, 0, SEEK_SET); in verify_preadv()
75 if (SAFE_LSEEK(fd, 0, SEEK_CUR) != 0) { in verify_preadv()
Dpreadv03.c57 SAFE_LSEEK(fd, 0, SEEK_SET); in verify_direct_preadv()
82 if (SAFE_LSEEK(fd, 0, SEEK_CUR) != 0) { in verify_direct_preadv()
/external/ltp/testcases/kernel/syscalls/msync/
Dmsync04.c32 SAFE_LSEEK(pagemap_fd, index, SEEK_SET); in get_dirty_bit()
40 SAFE_LSEEK(pageflags_fd, index, SEEK_SET); in get_dirty_bit()
/external/ltp/testcases/kernel/syscalls/preadv2/
Dpreadv201.c60 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()
/external/ltp/testcases/kernel/syscalls/pwritev2/
Dpwritev201.c58 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()
/external/ltp/testcases/kernel/syscalls/fcntl/
Dfcntl36.c90 SAFE_LSEEK(fd, pa->offset, SEEK_SET); in fn_ofd_w()
129 SAFE_LSEEK(fd, pa->offset, SEEK_SET); in fn_posix_w()
170 SAFE_LSEEK(fd, pa->offset, SEEK_SET); in fn_ofd_r()
230 SAFE_LSEEK(fd, pa->offset, SEEK_SET); in fn_posix_r()
Dfcntl34.c68 SAFE_LSEEK(fd, 0, SEEK_END); in thread_fn_01()
100 SAFE_LSEEK(fd, 0, SEEK_SET); in test01()
/external/ltp/testcases/kernel/syscalls/inotify/
Dinotify05.c52 SAFE_LSEEK(fd, 0, SEEK_SET); in verify_inotify()
54 SAFE_LSEEK(fd, 0, SEEK_SET); in verify_inotify()
Dinotify09.c50 SAFE_LSEEK(fd, 0, SEEK_SET); in write_seek()
/external/ltp/testcases/kernel/syscalls/open/
Dopen12.c131 len1 = SAFE_LSEEK(cleanup, TEST_RETURN, 0, SEEK_CUR); in test_append()
133 len2 = SAFE_LSEEK(cleanup, TEST_RETURN, 0, SEEK_CUR); in test_append()
/external/ltp/testcases/kernel/syscalls/read/
Dread01.c17 SAFE_LSEEK(fd, 0, SEEK_SET); in verify_read()
/external/ltp/testcases/kernel/syscalls/write/
Dwrite01.c21 SAFE_LSEEK(fd, 0, SEEK_SET); in verify_write()
/external/ltp/testcases/kernel/syscalls/ftruncate/
Dftruncate01.c48 SAFE_LSEEK(fd, offset, SEEK_SET); in check_and_report()
/external/ltp/lib/tests/
Dtrerrno.c68 SAFE_LSEEK(cleanup, fd, 0, SEEK_SET); in main()
/external/ltp/testcases/kernel/syscalls/readv/
Dreadv01.c69 SAFE_LSEEK(cleanup, fd, 0, SEEK_SET); in main()
/external/ltp/testcases/kernel/syscalls/mmap/
Dmmap12.c68 offset = SAFE_LSEEK(pm, index, SEEK_SET); in page_check()
/external/ltp/testcases/kernel/syscalls/munmap/
Dmunmap01.c185 SAFE_LSEEK(cleanup, fildes, map_len, SEEK_SET); in setup()
Dmunmap02.c189 SAFE_LSEEK(cleanup, fildes, map_len, SEEK_SET); in setup()

12