/bionic/tools/relocation_packer/src/ |
D | elf_file_unittest.cc | 59 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()
|
D | main.cc | 114 if (TEMP_FAILURE_RETRY(lseek(fd.get(), 0, SEEK_SET)) != 0) { in main()
|
/bionic/libc/include/bits/ |
D | seek_constants.h | 32 #define SEEK_SET 0 macro
|
/bionic/tests/ |
D | sys_mman_test.cpp | 75 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 …]
|
D | sys_sendfile_test.cpp | 38 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()
|
D | unistd_test.cpp | 1048 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 …]
|
D | sys_uio_test.cpp | 32 ASSERT_EQ(0, lseek(tf.fd, 0, SEEK_SET)); in TEST()
|
D | stdio_test.cpp | 114 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()
|
D | fcntl_test.cpp | 157 check_lock.l_whence = SEEK_SET; in TEST()
|
/bionic/libc/bionic/ |
D | pututline.c | 48 if (fseek(f, i - sizeof(struct utmp), SEEK_SET) < 0) in pututline()
|
D | dirent.cpp | 160 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/ |
D | utmp.c | 55 (void)fseeko(ut, (off_t)0, SEEK_SET); in setutent()
|
/bionic/libc/upstream-openbsd/lib/libc/stdio/ |
D | open_memstream.c | 82 case SEEK_SET: in memstream_seek()
|
D | fmemopen.c | 77 case SEEK_SET: in fmemopen_seek()
|
D | open_wmemstream.c | 86 case SEEK_SET: in wmemstream_seek()
|
/bionic/libc/stdio/ |
D | stdio.cpp | 523 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/ |
D | fs.h | 31 #define SEEK_SET 0 macro
|
/bionic/libc/tzcode/ |
D | localtime.c | 2416 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/ |
D | res_cache.c | 1475 fseek(fp, 0, SEEK_SET); in _dump_answer()
|