Home
last modified time | relevance | path

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

/bionic/tests/
Dsys_mman_test.cpp79 lseek(tf.fd, 0, SEEK_SET); in TEST()
108 ASSERT_NE(-1, lseek(tf.fd, pagesize, SEEK_SET)); in TEST()
110 ASSERT_NE(-1, lseek(tf.fd, 2 * pagesize, SEEK_SET)); in TEST()
112 ASSERT_NE(-1, lseek(tf.fd, 3 * pagesize - sizeof(END_MSG), SEEK_SET)); in TEST()
115 ASSERT_NE(-1, lseek(tf.fd, 0, SEEK_SET)); in TEST()
144 ASSERT_NE(-1, lseek(tf.fd, pagesize, SEEK_SET)); in TEST()
146 ASSERT_NE(-1, lseek(tf.fd, 2 * pagesize, SEEK_SET)); in TEST()
148 ASSERT_NE(-1, lseek(tf.fd, 3 * pagesize - sizeof(END_MSG), SEEK_SET)); in TEST()
151 ASSERT_NE(-1, lseek(tf.fd, 0, SEEK_SET)); in TEST()
172 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.cpp1264 ASSERT_EQ(0, lseek64(tf.fd, 0, SEEK_SET)); in TEST()
1268 ASSERT_EQ(0, lseek64(tf.fd, 0, SEEK_SET)); in TEST()
1272 ASSERT_EQ(0, lseek64(tf.fd, 0, SEEK_SET)); in TEST()
1276 ASSERT_EQ(0, lseek64(tf.fd, 0, SEEK_SET)); in TEST()
1287 ASSERT_EQ(0, lseek64(tf.fd, 0, SEEK_SET)); in TEST()
1291 ASSERT_EQ(0, lseek64(tf.fd, 0, SEEK_SET)); in TEST()
1298 ASSERT_EQ(file_size, lseek64(tf.fd, file_size, SEEK_SET)); in TEST()
1309 ASSERT_EQ(file_size, lseek64(tf.fd, file_size, SEEK_SET)); in TEST()
1313 ASSERT_EQ(0, lseek64(tf.fd, 0, SEEK_SET)); in TEST()
1324 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.cpp190 lseek(tf.fd, 0, SEEK_SET); in TEST()
1535 ASSERT_EQ(0, fseek(fp, offset_inside_mb, SEEK_SET)); in TEST()
1759 EXPECT_EQ(-1, fseek(fp, -2, SEEK_SET)); in TEST()
1760 EXPECT_EQ(-1, fseeko(fp, -2, SEEK_SET)); in TEST()
1761 EXPECT_EQ(-1, fseek(fp, sizeof(buf) + 1, SEEK_SET)); in TEST()
1762 EXPECT_EQ(-1, fseeko(fp, sizeof(buf) + 1, SEEK_SET)); in TEST()
1815 ASSERT_EQ(0, fseek(fp, 2, SEEK_SET)); in TEST()
1903 EXPECT_EQ(0L, fseek(fp, 0, SEEK_SET)); in TEST()
1969 ASSERT_EQ(0, fseek(fp, 0, SEEK_SET)); in TEST()
1977 ASSERT_EQ(0, fseek(fp, 0, SEEK_SET)); in TEST()
[all …]
Dfcntl_test.cpp165 check_lock.l_whence = SEEK_SET; in TEST()
179 check_lock.l_whence = SEEK_SET; in TEST()
Dsys_uio_test.cpp38 ASSERT_EQ(0, lseek(tf.fd, 0, 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.cpp143 lseek(fd.get(), 0, SEEK_SET); in backtrace_symbols()
/bionic/libc/tzcode/
Dbionic.cpp156 if (TEMP_FAILURE_RETRY(lseek(fd, ntohl(header.index_offset), SEEK_SET)) == -1) { in __bionic_open_tzdata_path()
227 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/upstream-openbsd/lib/libc/stdio/
Dopen_memstream.c81 case SEEK_SET: in memstream_seek()
Dopen_wmemstream.c85 case SEEK_SET: in wmemstream_seek()
/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/kernel/uapi/linux/
Dfs.h19 #define SEEK_SET 0 macro
/bionic/libc/dns/resolv/
Dres_cache.c1529 fseek(fp, 0, SEEK_SET); in _dump_answer()