/bionic/libc/include/ |
D | fcntl.h | 73 extern int fallocate(int, int, off_t, off_t) __RENAME(fallocate64); 74 extern int posix_fadvise(int, off_t, off_t, int) __RENAME(posix_fadvise64); 75 extern int posix_fallocate(int, off_t, off_t) __RENAME(posix_fallocate); 77 extern int fallocate(int, int, off_t, off_t); 78 extern int posix_fadvise(int, off_t, off_t, int); 79 extern int posix_fallocate(int, off_t, off_t);
|
D | unistd.h | 163 extern int truncate(const char *, off_t) __RENAME(truncate64); 164 extern off_t lseek(int, off_t, int) __RENAME(lseek64); 165 extern ssize_t pread(int, void *, size_t, off_t) __RENAME(pread64); 166 extern ssize_t pwrite(int, const void *, size_t, off_t) __RENAME(pwrite64); 167 extern int ftruncate(int, off_t) __RENAME(ftruncate64); 169 extern int truncate(const char *, off_t); 170 extern off_t lseek(int, off_t, int); 171 extern ssize_t pread(int, void *, size_t, off_t); 172 extern ssize_t pwrite(int, const void *, size_t, off_t); 173 extern int ftruncate(int, off_t); [all …]
|
D | regex.h | 46 typedef off_t regoff_t;
|
D | stdio.h | 60 typedef off_t fpos_t; /* stdio file position type */ 289 int fseeko(FILE *, off_t, int) 291 off_t ftello(FILE *) 296 int fseeko(FILE *, off_t, int); 297 off_t ftello(FILE *);
|
/bionic/libc/bionic/ |
D | ftruncate.cpp | 22 static_assert(sizeof(off_t) == 4, 28 int ftruncate(int filedes, off_t length) { in ftruncate()
|
D | posix_fallocate.cpp | 33 int posix_fallocate(int fd, off_t offset, off_t length) { in posix_fallocate()
|
D | legacy_32_bit_support.cpp | 71 ssize_t pread(int fd, void* buf, size_t byte_count, off_t offset) { in pread() 76 ssize_t pwrite(int fd, const void* buf, size_t byte_count, off_t offset) { in pwrite() 81 int fallocate(int fd, int mode, off_t offset, off_t length) { in fallocate()
|
D | posix_fadvise.cpp | 37 int posix_fadvise(int fd, off_t offset, off_t length, int advice) { in posix_fadvise()
|
D | __pread_chk.cpp | 33 extern "C" ssize_t __pread_chk(int fd, void* buf, size_t count, off_t offset, size_t buf_size) { in __pread_chk()
|
D | mmap.cpp | 62 void* mmap(void* addr, size_t size, int prot, int flags, int fd, off_t offset) { in mmap()
|
D | getentropy_linux.c | 423 off_t off; in getentropy_fallback() 446 (off_t)0), mm[m].p); in getentropy_fallback() 499 HX((off = lseek(0, (off_t)0, in getentropy_fallback()
|
D | dirent.cpp | 167 off_t ret = lseek(d->fd_, offset, SEEK_SET); in seekdir()
|
/bionic/libc/stdio/ |
D | stdio.c | 65 (void) TEMP_FAILURE_RETRY(lseek(fp->_file, (off_t)0, SEEK_END)); in __swrite() 74 off_t ret; in __sseek() 76 ret = TEMP_FAILURE_RETRY(lseek(fp->_file, (off_t)offset, whence)); in __sseek() 77 if (ret == (off_t)-1) in __sseek()
|
/bionic/tests/ |
D | sys_types_test.cpp | 33 ASSERT_EQ(8U, sizeof(off_t)); in TEST() 37 ASSERT_EQ(4U, sizeof(off_t)); in TEST()
|
D | sys_sendfile_test.cpp | 32 off_t offset = 2; in TEST()
|
D | stdio_test.cpp | 670 ASSERT_EQ(0, static_cast<off_t>(pos1)); in TEST() 671 ASSERT_EQ(1, static_cast<off_t>(pos2)); in TEST() 672 ASSERT_EQ(3, static_cast<off_t>(pos3)); in TEST() 673 ASSERT_EQ(6, static_cast<off_t>(pos4)); in TEST() 674 ASSERT_EQ(10, static_cast<off_t>(pos5)); in TEST() 733 ASSERT_EQ(offset_inside_mb, static_cast<off_t>(pos_inside_mb)); in TEST()
|
/bionic/libc/include/sys/ |
D | sendfile.h | 38 extern ssize_t sendfile(int out_fd, int in_fd, off_t* offset, size_t count) __RENAME(sendfile64); 40 extern ssize_t sendfile(int out_fd, int in_fd, off_t* offset, size_t count);
|
D | mman.h | 53 extern void* mmap(void*, size_t, int, int, int, off_t) __RENAME(mmap64); 55 extern void* mmap(void*, size_t, int, int, int, off_t);
|
D | types.h | 94 typedef int64_t off_t; typedef 95 typedef off_t loff_t; 99 typedef __kernel_off_t off_t; typedef
|
D | stat.h | 49 off_t st_size; \ 88 off_t st_size; \
|
/bionic/libc/upstream-netbsd/lib/libc/gen/ |
D | utmp.c | 55 (void)fseeko(ut, (off_t)0, SEEK_SET); in setutent() 63 off_t numentries; in getutent() 72 if ((off_t)(numentries * sizeof(utmp)) != st.st_size) in getutent()
|
/bionic/libc/upstream-openbsd/lib/libc/stdio/ |
D | ftell.c | 42 off_t 90 off_t offset = ftello(fp); in ftell()
|
D | fsetpos.c | 42 return (fseeko(iop, (off_t)*pos, SEEK_SET)); in fsetpos()
|
/bionic/libc/ |
D | SYSCALLS.TXT | 95 ssize_t pread64|pread(int, void*, size_t, off_t) arm64,mips64,x86_64 97 ssize_t pwrite64|pwrite(int, void*, size_t, off_t) arm64,mips64,x86_64 147 # Paired off_t/off64_t system calls. On 64-bit systems, 148 # sizeof(off_t) == sizeof(off64_t), so there we emit two symbols that are 151 off_t lseek(int, off_t, int) arm,mips,x86 153 off_t lseek|lseek64(int, off_t, int) arm64,mips64,x86_64 155 int ftruncate|ftruncate64(int, off_t) arm64,mips64,x86_64 156 ssize_t sendfile(int out_fd, int in_fd, off_t* offset, size_t count) arm,mips,x86 158 ssize_t sendfile|sendfile64(int out_fd, int in_fd, off_t* offset, size_t count) arm64,mips64,x86_64 159 int truncate(const char*, off_t) arm,mips,x86 [all …]
|
/bionic/libc/arch-mips64/bionic/ |
D | stat.cpp | 64 st->st_size = static_cast<off_t>(s->st_size); in copy_stat()
|