Home
last modified time | relevance | path

Searched refs:SEEK_SET (Results 1 – 20 of 20) 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/tests/
Dsys_mman_test.cpp74 lseek(tf.fd, 0, SEEK_SET); in TEST()
103 ASSERT_NE(-1, lseek(tf.fd, pagesize, SEEK_SET)); in TEST()
105 ASSERT_NE(-1, lseek(tf.fd, 2 * pagesize, SEEK_SET)); in TEST()
107 ASSERT_NE(-1, lseek(tf.fd, 3 * pagesize - sizeof(END_MSG), SEEK_SET)); in TEST()
110 ASSERT_NE(-1, lseek(tf.fd, 0, SEEK_SET)); in TEST()
139 ASSERT_NE(-1, lseek(tf.fd, pagesize, SEEK_SET)); in TEST()
141 ASSERT_NE(-1, lseek(tf.fd, 2 * pagesize, SEEK_SET)); in TEST()
143 ASSERT_NE(-1, lseek(tf.fd, 3 * pagesize - sizeof(END_MSG), SEEK_SET)); in TEST()
146 ASSERT_NE(-1, lseek(tf.fd, 0, SEEK_SET)); in TEST()
167 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()
Dfcntl_test.cpp148 check_lock.l_whence = SEEK_SET; in TEST()
Dstdio_test.cpp82 lseek(tf.fd, 0, SEEK_SET); in TEST()
727 ASSERT_EQ(0, fseek(fp, offset_inside_mb, SEEK_SET)); in TEST()
/bionic/libc/upstream-openbsd/lib/libc/stdio/
Drewind.c40 (void) fseek(fp, 0L, SEEK_SET); in rewind()
Dfsetpos.c42 return (fseeko(iop, (off_t)*pos, SEEK_SET)); in fsetpos()
Dfseek.c100 whence = SEEK_SET; in fseeko()
104 case SEEK_SET: in fseeko()
143 if (whence == SEEK_SET) in fseeko()
209 if ((*seekfn)(fp->_cookie, curoff, SEEK_SET) == POS_ERR) in fseeko()
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/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/kernel/uapi/linux/
Dfs.h31 #define SEEK_SET 0 macro
/bionic/libc/include/
Dstdio.h208 #define SEEK_SET 0 macro
Dunistd.h51 #define SEEK_SET 0 macro
/bionic/libc/tzcode/
Dlocaltime.c2182 if (TEMP_FAILURE_RETRY(lseek(fd, ntohl(header.index_offset), SEEK_SET)) == -1) { in __bionic_open_tzdata_path()
2241 if (TEMP_FAILURE_RETRY(lseek(fd, specific_zone_offset, SEEK_SET)) == -1) { in __bionic_open_tzdata_path()
/bionic/libc/dns/resolv/
Dres_cache.c1470 fseek(fp, 0, SEEK_SET); in _dump_answer()