Home
last modified time | relevance | path

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

/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.cpp80 lseek(tf.fd, SEEK_SET, 0); in TEST()
672 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()
/bionic/libc/bionic/
Dpututline.c48 if (fseek(f, i - sizeof(struct utmp), SEEK_SET) < 0) in pututline()
Ddirent.cpp147 lseek(d->fd_, 0, SEEK_SET); in rewinddir()
/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.h194 #ifndef SEEK_SET
195 #define SEEK_SET 0 /* set file offset to offset */ macro
Dunistd.h46 #define SEEK_SET 0 macro
/bionic/libc/tzcode/
Dlocaltime.c2181 if (TEMP_FAILURE_RETRY(lseek(fd, ntohl(header.index_offset), SEEK_SET)) == -1) { in __bionic_open_tzdata_path()
2240 if (TEMP_FAILURE_RETRY(lseek(fd, specific_zone_offset, SEEK_SET)) == -1) { in __bionic_open_tzdata_path()
/bionic/libc/dns/resolv/
Dres_cache.c1465 fseek(fp, 0, SEEK_SET); in _dump_answer()