Home
last modified time | relevance | path

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

/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.cpp39 ASSERT_EQ(0, lseek(dst_file.fd, 0, SEEK_SET)); in TEST()
58 ASSERT_EQ(0, lseek(dst_file.fd, 0, SEEK_SET)); in TEST()
Dunistd_test.cpp1206 ASSERT_EQ(0, lseek64(tf.fd, 0, SEEK_SET)); in TEST()
1210 ASSERT_EQ(0, lseek64(tf.fd, 0, SEEK_SET)); in TEST()
1214 ASSERT_EQ(0, lseek64(tf.fd, 0, SEEK_SET)); in TEST()
1218 ASSERT_EQ(0, lseek64(tf.fd, 0, SEEK_SET)); in TEST()
1229 ASSERT_EQ(0, lseek64(tf.fd, 0, SEEK_SET)); in TEST()
1233 ASSERT_EQ(0, lseek64(tf.fd, 0, SEEK_SET)); in TEST()
1240 ASSERT_EQ(file_size, lseek64(tf.fd, file_size, SEEK_SET)); in TEST()
1251 ASSERT_EQ(file_size, lseek64(tf.fd, file_size, SEEK_SET)); in TEST()
1255 ASSERT_EQ(0, lseek64(tf.fd, 0, SEEK_SET)); in TEST()
1266 ASSERT_EQ(0, lseek64(tf.fd, 0, SEEK_SET)); in TEST()
[all …]
D_FILE_OFFSET_BITS_test.cpp42 check_lock.l_whence = SEEK_SET; in TEST()
Dstdio_test.cpp166 lseek(tf.fd, 0, SEEK_SET); in TEST()
1508 ASSERT_EQ(0, fseek(fp, offset_inside_mb, SEEK_SET)); in TEST()
1732 EXPECT_EQ(-1, fseek(fp, -2, SEEK_SET)); in TEST()
1733 EXPECT_EQ(-1, fseeko(fp, -2, SEEK_SET)); in TEST()
1734 EXPECT_EQ(-1, fseek(fp, sizeof(buf) + 1, SEEK_SET)); in TEST()
1735 EXPECT_EQ(-1, fseeko(fp, sizeof(buf) + 1, SEEK_SET)); in TEST()
1788 ASSERT_EQ(0, fseek(fp, 2, SEEK_SET)); in TEST()
1876 EXPECT_EQ(0L, fseek(fp, 0, SEEK_SET)); in TEST()
1942 ASSERT_EQ(0, fseek(fp, 0, SEEK_SET)); in TEST()
1950 ASSERT_EQ(0, fseek(fp, 0, SEEK_SET)); in TEST()
[all …]
Dsys_uio_test.cpp36 ASSERT_EQ(0, lseek(tf.fd, 0, SEEK_SET)); in TEST()
Dfcntl_test.cpp163 check_lock.l_whence = SEEK_SET; in TEST()
177 check_lock.l_whence = SEEK_SET; in TEST()
/bionic/libc/include/bits/
Dseek_constants.h37 #define SEEK_SET 0 macro
/bionic/libc/bionic/
Ddirent.cpp179 lseek(d->fd_, 0, SEEK_SET); in rewinddir()
188 off_t ret = lseek(d->fd_, offset, SEEK_SET); in seekdir()
Dexecinfo.cpp138 lseek(fd.get(), 0, SEEK_SET); in backtrace_symbols()
/bionic/libc/tzcode/
Dbionic.cpp137 if (TEMP_FAILURE_RETRY(lseek(fd, ntohl(header.index_offset), SEEK_SET)) == -1) { in __bionic_open_tzdata_path()
208 if (TEMP_FAILURE_RETRY(lseek(fd, specific_zone_offset, SEEK_SET)) == -1) { in __bionic_open_tzdata_path()
/bionic/benchmarks/
Dget_heap_size_benchmark.cpp80 off_t result = lseek(statm_fd, 0 /* offset */, SEEK_SET); in BM_read_statm()
/bionic/tests/headers/posix/
Dfcntl_h.c52 MACRO(SEEK_SET); in fcntl_h()
Dstdio_h.c51 MACRO(SEEK_SET); in stdio_h()
Dunistd_h.c147 MACRO(SEEK_SET); in unistd_h()
/bionic/libc/stdio/
Dfmemopen.cpp95 if (whence == SEEK_SET && (offset >= 0 && static_cast<size_t>(offset) <= ck->capacity)) { in fmemopen_seek()
Dstdio.cpp603 whence = SEEK_SET; in __fseeko64()
604 } else if (whence != SEEK_SET && whence != SEEK_END) { in __fseeko64()
645 return fseeko(fp, *pos, SEEK_SET); in fsetpos()
650 return fseeko64(fp, *pos, SEEK_SET); in fsetpos64()
946 fseek(fp, 0, SEEK_SET); in rewind()
/bionic/libc/upstream-openbsd/lib/libc/stdio/
Dopen_memstream.c82 case SEEK_SET: in memstream_seek()
Dopen_wmemstream.c86 case SEEK_SET: in wmemstream_seek()
/bionic/libc/kernel/uapi/linux/
Dfs.h31 #define SEEK_SET 0 macro
/bionic/libc/dns/resolv/
Dres_cache.c1533 fseek(fp, 0, SEEK_SET); in _dump_answer()