Home
last modified time | relevance | path

Searched refs:SEEK_CUR (Results 1 – 25 of 47) sorted by relevance

12

/glibc-2.36/io/
Dtst-copy_file_range.c107 TEST_COMPARE (xlseek (infd, 0, SEEK_CUR), 1); in simple_file_copy()
110 TEST_COMPARE (xlseek (infd, 0, SEEK_CUR), 3 + length); in simple_file_copy()
114 TEST_COMPARE (xlseek (outfd, 0, SEEK_CUR), 4); in simple_file_copy()
117 TEST_COMPARE (xlseek (outfd, 0, SEEK_CUR), 6 + length); in simple_file_copy()
186 TEST_COMPARE (xlseek (infd, 0, SEEK_CUR), 2); in short_copy()
189 TEST_COMPARE (xlseek (infd, 0, SEEK_CUR), current_size - 1 + shift); in short_copy()
193 TEST_COMPARE (xlseek (outfd, 0, SEEK_CUR), 0); in short_copy()
196 TEST_COMPARE (xlseek (outfd, 0, SEEK_CUR), current_size - 1); in short_copy()
205 TEST_COMPARE (xlseek (infd, 0, SEEK_CUR), 2); in short_copy()
208 TEST_COMPARE (xlseek (infd, 0, SEEK_CUR), current_size - 1 + shift); in short_copy()
[all …]
Dtest-lfs.c165 off64_t offset64 = lseek64 (fd, 0, SEEK_CUR); in do_test()
171 off_t offset = lseek (fd, 0, SEEK_CUR); in do_test()
Dlseek64.c34 case SEEK_CUR: in __libc_lseek64()
Dlseek.c34 case SEEK_CUR: in __libc_lseek()
Dlockf.c33 .l_whence = SEEK_CUR, in lockf()
Dlockf64.c29 .l_whence = SEEK_CUR, in __lockf64()
/glibc-2.36/stdio-common/
Dtst-fseek.c80 if (fseek (fp, 0, SEEK_CUR) != 0) in do_test()
102 if (fseeko (fp, 0, SEEK_CUR) != 0) in do_test()
124 else if (lseek (fd, 0, SEEK_CUR) != 0) in do_test()
151 else if (lseek (fd, 0, SEEK_CUR) != 0) in do_test()
168 if (fseek (fp, -((int) sizeof (outstr) - 1), SEEK_CUR) != 0) in do_test()
178 else if (lseek (fd, 0, SEEK_CUR) != 0) in do_test()
195 if (fseeko (fp, -((int) sizeof (outstr) - 1), SEEK_CUR) != 0) in do_test()
205 else if (lseek (fd, 0, SEEK_CUR) != 0) in do_test()
232 else if (lseek (fd, 0, SEEK_CUR) != 0) in do_test()
259 else if (lseek (fd, 0, SEEK_CUR) != 0) in do_test()
[all …]
Dbug12.c29 fseek (f, -40, SEEK_CUR); in main()
Dtest-fseek.c68 if (fseek (fp, (long) (i >= 128 ? -128 : 128), SEEK_CUR)) in do_test()
Dbug7.c27 if (fseek (fp, -1L, SEEK_CUR) < 0) in main()
/glibc-2.36/sysdeps/mach/hurd/
Df_setlk.c49 if (whence == SEEK_CUR) in __f_setlk()
52 __off64_t cur = __lseek64 (fd, 0, SEEK_CUR); in __f_setlk()
72 case SEEK_CUR: in __f_setlk()
/glibc-2.36/libio/
Dbug-fseek.c53 if (fseek (f, -10, SEEK_CUR) == 0) in do_test()
77 if (fseek (f, -10, SEEK_CUR) == 0) in do_test()
106 if (fseek (f, -10, SEEK_CUR) == 0) in do_test()
Dtst-wfile-sync.c52 TEST_COMPARE (xlseek (infd, 0, SEEK_CUR), 1); in do_test()
/glibc-2.36/posix/
Dtst-_Fork.c46 off_t off = xlseek (tempfd, 0, SEEK_CUR); in singlethread_test()
56 TEST_COMPARE (xlseek (tempfd, 0, SEEK_CUR), testdatalen1); in singlethread_test()
76 TEST_COMPARE (xlseek (tempfd, 0, SEEK_CUR), testdatalen2); in singlethread_test()
Dtst-fork.c68 off = lseek (fd, 0, SEEK_CUR); in main()
91 off = lseek (fd, 0, SEEK_CUR); in main()
136 if (lseek (fd, 0, SEEK_CUR) != strlen (testdata2)) in main()
Dtst-spawn.c110 TEST_COMPARE (xlseek (fd2, 0, SEEK_CUR), strlen (fd2string)); in handle_restart()
112 TEST_COMPARE (xlseek (fd4, 0, SEEK_CUR), strlen (fd2string)); in handle_restart()
114 TEST_COMPARE (xlseek (fd4, 0, SEEK_CUR), 0); in handle_restart()
126 TEST_COMPARE (lseek (fd1, 0, SEEK_CUR), (off_t) -1); in handle_restart()
Dtst-exec.c90 if (lseek (fd2, 0, SEEK_CUR) != strlen (fd2string)) in handle_restart()
100 if (lseek (fd1, 0, SEEK_CUR) != (off_t) -1 || errno != EBADF) in handle_restart()
/glibc-2.36/misc/
Dtst-preadvwritev-common.c74 TEST_COMPARE (xlseek (temp_fd, 0, SEEK_CUR), 9); in do_test_without_offset()
89 TEST_COMPARE (xlseek (temp_fd, 0, SEEK_CUR), 6); in do_test_without_offset()
/glibc-2.36/conform/data/
Dfcntl.h-data23 allow SEEK_CUR
27 constant SEEK_CUR
/glibc-2.36/sysdeps/unix/sysv/linux/
Dgetdirentries.c26 off_t base = __lseek (fd, 0, SEEK_CUR); in getdirentries()
Dgetdirentries64.c27 off64_t base = __lseek64 (fd, (off_t) 0, SEEK_CUR); in getdirentries64()
/glibc-2.36/sysdeps/posix/
Dpread.c32 off_t old_offset = __libc_lseek (fd, 0, SEEK_CUR); in __libc_pread()
Dpwrite.c33 off_t old_offset = __libc_lseek (fd, 0, SEEK_CUR); in __libc_pwrite()
Dpread64.c32 off64_t old_offset = __libc_lseek64 (fd, 0, SEEK_CUR); in __libc_pread64()
Dpwrite64.c32 off64_t old_offset = __libc_lseek64 (fd, 0, SEEK_CUR); in __libc_pwrite64()

12