Home
last modified time | relevance | path

Searched refs:SEEK_SET (Results 1 – 19 of 19) sorted by relevance

/bionic/tools/relocation_packer/src/
Delf_file_unittest.cc59 ASSERT_EQ(0, fseek(temporary, 0, SEEK_SET)); in OpenRelocsTestFile()
60 ASSERT_EQ(0, lseek(fileno(temporary), 0, SEEK_SET)); in OpenRelocsTestFile()
84 ASSERT_EQ(0, fseek(first, 0, SEEK_SET)); in CheckFileContentsEqual()
85 ASSERT_EQ(0, fseek(second, 0, SEEK_SET)); in CheckFileContentsEqual()
125 ASSERT_EQ(0, fseek(relocs_so, EI_CLASS, SEEK_SET)) in RunUnpackRelocationsTestFor()
129 ASSERT_EQ(0, fseek(relocs_so, 0, SEEK_SET)); in RunUnpackRelocationsTestFor()
161 ASSERT_EQ(0, fseek(packed_relocs_so, EI_CLASS, SEEK_SET)) in RunPackRelocationsTestFor()
165 fseek(packed_relocs_so, 0, SEEK_SET); in RunPackRelocationsTestFor()
Dmain.cc114 if (TEMP_FAILURE_RETRY(lseek(fd.get(), 0, SEEK_SET)) != 0) { in main()
/bionic/libc/include/bits/
Dseek_constants.h32 #define SEEK_SET 0 macro
/bionic/tests/
Dsys_mman_test.cpp75 lseek(tf.fd, 0, SEEK_SET); in TEST()
104 ASSERT_NE(-1, lseek(tf.fd, pagesize, SEEK_SET)); in TEST()
106 ASSERT_NE(-1, lseek(tf.fd, 2 * pagesize, SEEK_SET)); in TEST()
108 ASSERT_NE(-1, lseek(tf.fd, 3 * pagesize - sizeof(END_MSG), SEEK_SET)); in TEST()
111 ASSERT_NE(-1, lseek(tf.fd, 0, SEEK_SET)); in TEST()
140 ASSERT_NE(-1, lseek(tf.fd, pagesize, SEEK_SET)); in TEST()
142 ASSERT_NE(-1, lseek(tf.fd, 2 * pagesize, SEEK_SET)); in TEST()
144 ASSERT_NE(-1, lseek(tf.fd, 3 * pagesize - sizeof(END_MSG), SEEK_SET)); in TEST()
147 ASSERT_NE(-1, lseek(tf.fd, 0, SEEK_SET)); in TEST()
168 ASSERT_NE(-1, lseek(tf.fd, pagesize, SEEK_SET)); in TEST()
[all …]
Dsys_sendfile_test.cpp38 ASSERT_EQ(0, lseek(dst_file.fd, 0, SEEK_SET)); in TEST()
57 ASSERT_EQ(0, lseek(dst_file.fd, 0, SEEK_SET)); in TEST()
Dunistd_test.cpp1048 ASSERT_EQ(0, lseek64(tf.fd, 0, SEEK_SET)); in TEST()
1052 ASSERT_EQ(0, lseek64(tf.fd, 0, SEEK_SET)); in TEST()
1056 ASSERT_EQ(0, lseek64(tf.fd, 0, SEEK_SET)); in TEST()
1060 ASSERT_EQ(0, lseek64(tf.fd, 0, SEEK_SET)); in TEST()
1071 ASSERT_EQ(0, lseek64(tf.fd, 0, SEEK_SET)); in TEST()
1075 ASSERT_EQ(0, lseek64(tf.fd, 0, SEEK_SET)); in TEST()
1082 ASSERT_EQ(file_size, lseek64(tf.fd, file_size, SEEK_SET)); in TEST()
1093 ASSERT_EQ(file_size, lseek64(tf.fd, file_size, SEEK_SET)); in TEST()
1097 ASSERT_EQ(0, lseek64(tf.fd, 0, SEEK_SET)); in TEST()
1108 ASSERT_EQ(0, lseek64(tf.fd, 0, SEEK_SET)); in TEST()
[all …]
Dsys_uio_test.cpp32 ASSERT_EQ(0, lseek(tf.fd, 0, SEEK_SET)); in TEST()
Dstdio_test.cpp114 lseek(tf.fd, 0, SEEK_SET); in TEST()
903 ASSERT_EQ(0, fseek(fp, offset_inside_mb, SEEK_SET)); in TEST()
1256 ASSERT_EQ(-1, fseek(fp, 0, SEEK_SET)); in TEST()
1350 ASSERT_EQ(0, fseek(fp, 8192, SEEK_SET)); in TEST()
1377 ASSERT_EQ(0, fseeko(fp, 1234, SEEK_SET)); in TEST()
1379 ASSERT_EQ(0, fseeko64(fp, 5678, SEEK_SET)); in TEST()
1402 ASSERT_EQ(-1, fseek(fp, -1, SEEK_SET)); in TEST()
1405 ASSERT_EQ(-1, fseeko(fp, -1, SEEK_SET)); in TEST()
1408 ASSERT_EQ(-1, fseeko64(fp, -1, SEEK_SET)); in TEST()
Dfcntl_test.cpp157 check_lock.l_whence = SEEK_SET; in TEST()
/bionic/libc/bionic/
Dpututline.c48 if (fseek(f, i - sizeof(struct utmp), SEEK_SET) < 0) in pututline()
Ddirent.cpp160 lseek(d->fd_, 0, SEEK_SET); in rewinddir()
167 off_t ret = lseek(d->fd_, offset, SEEK_SET); in seekdir()
/bionic/libc/upstream-netbsd/lib/libc/gen/
Dutmp.c55 (void)fseeko(ut, (off_t)0, SEEK_SET); in setutent()
/bionic/libc/upstream-openbsd/lib/libc/stdio/
Dopen_memstream.c82 case SEEK_SET: in memstream_seek()
Dfmemopen.c77 case SEEK_SET: in fmemopen_seek()
Dopen_wmemstream.c86 case SEEK_SET: in wmemstream_seek()
/bionic/libc/stdio/
Dstdio.cpp523 whence = SEEK_SET; in __fseeko64()
524 } else if (whence != SEEK_SET && whence != SEEK_END) { in __fseeko64()
562 return fseeko(fp, *pos, SEEK_SET); in fsetpos()
566 return fseeko64(fp, *pos, SEEK_SET); in fsetpos64()
758 fseek(fp, 0, SEEK_SET); in rewind()
/bionic/libc/kernel/uapi/linux/
Dfs.h31 #define SEEK_SET 0 macro
/bionic/libc/tzcode/
Dlocaltime.c2416 if (TEMP_FAILURE_RETRY(lseek(fd, ntohl(header.index_offset), SEEK_SET)) == -1) { in __bionic_open_tzdata_path()
2470 if (TEMP_FAILURE_RETRY(lseek(fd, specific_zone_offset, SEEK_SET)) == -1) { in __bionic_open_tzdata_path()
/bionic/libc/dns/resolv/
Dres_cache.c1475 fseek(fp, 0, SEEK_SET); in _dump_answer()