/bionic/tools/versioner/tests/preprocessor_file_offset_bits/headers/ |
D | foo.h | 5 typedef int off_t; typedef 18 int truncate(const char* __path, off_t __length) __RENAME(truncate64) __INTRODUCED_IN(21); 20 int truncate(const char* __path, off_t __length); 24 ssize_t pread(int __fd, void* __buf, size_t __count, off_t __offset) __RENAME(pread64) 27 ssize_t pread(int __fd, void* __buf, size_t __count, off_t __offset); 31 off_t lseek(int __fd, off_t __offset, int __whence) __RENAME(lseek64); 33 off_t lseek(int __fd, off_t __offset, int __whence);
|
/bionic/tools/versioner/tests/preprocessor_file_offset_bits/expected/ |
D | foo.h | 5 typedef int off_t; typedef 18 int truncate(const char* __path, off_t __length) __RENAME(truncate64) __INTRODUCED_IN(21); 20 int truncate(const char* __path, off_t __length); 26 ssize_t pread(int __fd, void* __buf, size_t __count, off_t __offset) __RENAME(pread64) 31 ssize_t pread(int __fd, void* __buf, size_t __count, off_t __offset); 35 off_t lseek(int __fd, off_t __offset, int __whence) __RENAME(lseek64); 37 off_t lseek(int __fd, off_t __offset, int __whence);
|
/bionic/tests/headers/posix/ |
D | fcntl_h.c | 106 STRUCT_MEMBER(struct flock, off_t, l_start); in fcntl_h() 107 STRUCT_MEMBER(struct flock, off_t, l_len); in fcntl_h() 111 TYPE(off_t); in fcntl_h() 118 FUNCTION(posix_fadvise, int (*f)(int, off_t, off_t, int)); in fcntl_h() 119 FUNCTION(posix_fallocate, int (*f)(int, off_t, off_t)); in fcntl_h()
|
D | sys_mman_h.c | 66 TYPE(off_t); in sys_mman_h() 76 FUNCTION(mmap, void* (*f)(void*, size_t, int, int, int, off_t)); in sys_mman_h() 84 FUNCTION(posix_mem_offset, int (*f)(const void*, size_t, off_t*, size_t*, int*)); in sys_mman_h()
|
D | unistd_h.c | 284 TYPE(off_t); in unistd_h() 318 FUNCTION(ftruncate, int (*f)(int, off_t)); in unistd_h() 341 FUNCTION(lockf, int (*f)(int, int, off_t)); in unistd_h() 342 FUNCTION(lseek, off_t (*f)(int, off_t, int)); in unistd_h() 347 FUNCTION(pread, ssize_t (*f)(int, void*, size_t, off_t)); in unistd_h() 348 FUNCTION(pwrite, ssize_t (*f)(int, const void*, size_t, off_t)); in unistd_h() 370 FUNCTION(truncate, int (*f)(const char*, off_t)); in unistd_h()
|
D | stdio_h.c | 36 TYPE(off_t); in stdio_h() 100 FUNCTION(fseeko, int (*f)(FILE*, off_t, int)); in stdio_h() 103 FUNCTION(ftello, off_t (*f)(FILE*)); in stdio_h()
|
D | sys_stat_h.c | 66 STRUCT_MEMBER(struct stat, off_t, st_size); in sys_stat_h() 100 TYPE(off_t); in sys_stat_h()
|
/bionic/libc/include/ |
D | unistd.h | 249 int truncate(const char* __path, off_t __length) __RENAME(truncate64) __INTRODUCED_IN(21); 250 off_t lseek(int __fd, off_t __offset, int __whence) __RENAME(lseek64); 251 ssize_t pread(int __fd, void* __buf, size_t __count, off_t __offset) __RENAME(pread64); 252 ssize_t pwrite(int __fd, const void* __buf, size_t __count, off_t __offset) __RENAME(pwrite64); 253 int ftruncate(int __fd, off_t __length) __RENAME(ftruncate64); 255 int truncate(const char* __path, off_t __length); 256 off_t lseek(int __fd, off_t __offset, int __whence); 257 ssize_t pread(int __fd, void* __buf, size_t __count, off_t __offset); 258 ssize_t pwrite(int __fd, const void* __buf, size_t __count, off_t __offset); 259 int ftruncate(int __fd, off_t __length);
|
D | fcntl.h | 195 int fallocate(int __fd, int __mode, off_t __offset, off_t __length) __RENAME_IF_FILE_OFFSET64(fallo… 211 int posix_fadvise(int __fd, off_t __offset, off_t __length, int __advice) __RENAME_IF_FILE_OFFSET64… 223 int posix_fallocate(int __fd, off_t __offset, off_t __length) __RENAME_IF_FILE_OFFSET64(posix_fallo…
|
D | stdio.h | 55 typedef off_t fpos_t; 222 int fseeko(FILE* __fp, off_t __offset, int __whence) __RENAME(fseeko64) __INTRODUCED_IN(24); 223 off_t ftello(FILE* __fp) __RENAME(ftello64) __INTRODUCED_IN(24); 234 int fseeko(FILE* __fp, off_t __offset, int __whence); 235 off_t ftello(FILE* __fp);
|
/bionic/libc/bionic/ |
D | legacy_32_bit_support.cpp | 64 ssize_t pread(int fd, void* buf, size_t byte_count, off_t offset) { in pread() 69 ssize_t pwrite(int fd, const void* buf, size_t byte_count, off_t offset) { in pwrite() 77 ssize_t preadv(int fd, const struct iovec* ios, int count, off_t offset) { in preadv() 83 ssize_t pwritev(int fd, const struct iovec* ios, int count, off_t offset) { in pwritev() 91 int fallocate(int fd, int mode, off_t offset, off_t length) { in fallocate()
|
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 | posix_fadvise.cpp | 37 int posix_fadvise(int fd, off_t offset, off_t length, int advice) { in posix_fadvise()
|
/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/docs/ |
D | 32-bit-abi.md | 3 ## 32-bit `off_t` and `_FILE_OFFSET_BITS=64` 5 On 32-bit Android, `off_t` is a signed 32-bit integer. This limits functions 6 that use `off_t` to working on files no larger than 2GiB. 20 all you need are functions like `read` that don't take/return `off_t`, large 23 Android support for `_FILE_OFFSET_BITS=64` (which turns `off_t` into `off64_t` 24 and replaces each `off_t` function with its `off64_t` counterpart, such as 28 compiled with that was actually using a 32-bit `off_t`. With a new enough NDK, 30 all functions that take an `off_t` become unavailable. You've asked for their 44 you'll have a 32-bit `off_t` and use the 32-bit functions. Make sure you 60 In the 64-bit ABI, `off_t` is always 64-bit.
|
/bionic/libc/include/sys/ |
D | types.h | 101 typedef int64_t off_t; typedef 102 typedef off_t loff_t; 105 typedef __kernel_off_t off_t; typedef
|
D | sendfile.h | 43 ssize_t sendfile(int __out_fd, int __in_fd, off_t* __offset, size_t __count) __RENAME(sendfile64) _… 53 ssize_t sendfile(int __out_fd, int __in_fd, off_t* __offset, size_t __count);
|
D | uio.h | 42 ssize_t preadv(int __fd, const struct iovec* __iov, int __count, off_t __offset) __RENAME_IF_FILE_O… 43 ssize_t pwritev(int __fd, const struct iovec* __iov, int __count, off_t __offset) __RENAME_IF_FILE_…
|
D | mman.h | 52 void* mmap(void* __addr, size_t __size, int __prot, int __flags, int __fd, off_t __offset) __RENAME… 54 void* mmap(void* __addr, size_t __size, int __prot, int __flags, int __fd, off_t __offset);
|
/bionic/libc/include/bits/fortify/ |
D | unistd.h | 34 ssize_t __pread_chk(int, void*, size_t, off_t, size_t) __INTRODUCED_IN(23); 35 ssize_t __pread_real(int, void*, size_t, off_t) __RENAME(pread); 40 ssize_t __pwrite_chk(int, const void*, size_t, off_t, size_t) __INTRODUCED_IN(24); 41 ssize_t __pwrite_real(int, const void*, size_t, off_t) __RENAME(pwrite); 88 ssize_t pread(int fd, void* const __pass_object_size0 buf, size_t count, off_t offset) in pread() 120 ssize_t pwrite(int fd, const void* const __pass_object_size0 buf, size_t count, off_t offset) in pwrite()
|
/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()
|
/bionic/libc/include/bits/ |
D | flock.h | 54 off_t l_start; \ 55 off_t l_len; \
|
/bionic/libc/ |
D | SYSCALLS.TXT | 95 ssize_t pread64|pread(int, void*, size_t, off_t) lp64 97 ssize_t pwrite64|pwrite(int, void*, size_t, off_t) lp64 104 ssize_t preadv|preadv64(int, const struct iovec*, int, off_t) lp64 106 ssize_t pwritev|pwritev64(int, const struct iovec*, int, off_t) lp64 161 # Paired off_t/off64_t system calls. On 64-bit systems, 162 # sizeof(off_t) == sizeof(off64_t), so there we emit two symbols that are 165 off_t lseek(int, off_t, int) lp32 167 off_t lseek|lseek64(int, off_t, int) lp64 169 int ftruncate|ftruncate64(int, off_t) lp64 170 ssize_t sendfile(int out_fd, int in_fd, off_t* offset, size_t count) lp32 [all …]
|
/bionic/benchmarks/ |
D | get_heap_size_benchmark.cpp | 82 off_t result = lseek(statm_fd, 0 /* offset */, SEEK_SET); in BM_read_statm() 83 if (result == (off_t) -1) { in BM_read_statm()
|