Home
last modified time | relevance | path

Searched refs:off_t (Results 1 – 25 of 40) sorted by relevance

12

/bionic/tools/versioner/tests/preprocessor_file_offset_bits/expected/
Dfoo.h5 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/tools/versioner/tests/preprocessor_file_offset_bits/headers/
Dfoo.h5 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/tests/headers/posix/
Dfcntl_h.c110 STRUCT_MEMBER(struct flock, off_t, l_start); in fcntl_h()
111 STRUCT_MEMBER(struct flock, off_t, l_len); in fcntl_h()
115 TYPE(off_t); in fcntl_h()
122 FUNCTION(posix_fadvise, int (*f)(int, off_t, off_t, int)); in fcntl_h()
123 FUNCTION(posix_fallocate, int (*f)(int, off_t, off_t)); in fcntl_h()
Dsys_mman_h.c66 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()
Dunistd_h.c302 TYPE(off_t); in unistd_h()
336 FUNCTION(ftruncate, int (*f)(int, off_t)); in unistd_h()
359 FUNCTION(lockf, int (*f)(int, int, off_t)); in unistd_h()
360 FUNCTION(lseek, off_t (*f)(int, off_t, int)); in unistd_h()
365 FUNCTION(pread, ssize_t (*f)(int, void*, size_t, off_t)); in unistd_h()
366 FUNCTION(pwrite, ssize_t (*f)(int, const void*, size_t, off_t)); in unistd_h()
388 FUNCTION(truncate, int (*f)(const char*, off_t)); in unistd_h()
Dstdio_h.c36 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()
/bionic/libc/include/
Dfcntl.h185 int fallocate(int __fd, int __mode, off_t __offset, off_t __length) __RENAME_IF_FILE_OFFSET64(fallo…
199 int posix_fadvise(int __fd, off_t __offset, off_t __length, int __advice) __RENAME_IF_FILE_OFFSET64…
209 int posix_fallocate(int __fd, off_t __offset, off_t __length) __RENAME_IF_FILE_OFFSET64(posix_fallo…
Dunistd.h317 int truncate(const char* _Nonnull __path, off_t __length) __RENAME(truncate64);
318 off_t lseek(int __fd, off_t __offset, int __whence) __RENAME(lseek64);
319 ssize_t pread(int __fd, void* _Nonnull __buf, size_t __count, off_t __offset) __RENAME(pread64);
320 ssize_t pwrite(int __fd, const void* _Nonnull __buf, size_t __count, off_t __offset) __RENAME(pwrit…
321 int ftruncate(int __fd, off_t __length) __RENAME(ftruncate64);
323 int truncate(const char* _Nonnull __path, off_t __length);
324 off_t lseek(int __fd, off_t __offset, int __whence);
325 ssize_t pread(int __fd, void* _Nonnull __buf, size_t __count, off_t __offset);
326 ssize_t pwrite(int __fd, const void* _Nonnull __buf, size_t __count, off_t __offset);
327 int ftruncate(int __fd, off_t __length);
Dstdio.h55 typedef off_t fpos_t;
210 int fseeko(FILE* _Nonnull __fp, off_t __offset, int __whence) __RENAME(fseeko64) __INTRODUCED_IN(24…
211 __wur off_t ftello(FILE* _Nonnull __fp) __RENAME(ftello64) __INTRODUCED_IN(24);
223 int fseeko(FILE* _Nonnull __fp, off_t __offset, int __whence);
224 __wur off_t ftello(FILE* _Nonnull __fp);
/bionic/libc/include/sys/
Duio.h72 ssize_t preadv(int __fd, const struct iovec* _Nonnull __iov, int __count, off_t __offset) __RENAME_…
84 ssize_t pwritev(int __fd, const struct iovec* _Nonnull __iov, int __count, off_t __offset) __RENAME…
110 ssize_t preadv2(int __fd, const struct iovec* _Nonnull __iov, int __count, off_t __offset, int __fl…
122 ssize_t pwritev2(int __fd, const struct iovec* _Nonnull __iov, int __count, off_t __offset, int __f…
Dtypes.h101 typedef int64_t off_t; typedef
102 typedef off_t loff_t;
105 typedef __kernel_off_t off_t; typedef
Dsendfile.h43 ssize_t sendfile(int __out_fd, int __in_fd, off_t* _Nullable __offset, size_t __count) __RENAME(sen…
51 ssize_t sendfile(int __out_fd, int __in_fd, off_t* _Nullable __offset, size_t __count);
Dmman.h53 void* _Nonnull mmap(void* _Nullable __addr, size_t __size, int __prot, int __flags, int __fd, off_t
55 void* _Nonnull mmap(void* _Nullable __addr, size_t __size, int __prot, int __flags, int __fd, off_t
/bionic/libc/bionic/
Dpreadv_pwritev.cpp45 ssize_t preadv(int fd, const struct iovec* ios, int count, off_t offset) { in preadv()
57 ssize_t pwritev(int fd, const struct iovec* ios, int count, off_t offset) { in pwritev()
69 ssize_t preadv2(int fd, const struct iovec* ios, int count, off_t offset, int flags) { in preadv2()
81 ssize_t pwritev2(int fd, const struct iovec* ios, int count, off_t offset, int flags) { in pwritev2()
Dftruncate.cpp22 static_assert(sizeof(off_t) == 4,
28 int ftruncate(int filedes, off_t length) { in ftruncate()
Dlegacy_32_bit_support.cpp67 ssize_t pread(int fd, void* buf, size_t byte_count, off_t offset) { in pread()
72 ssize_t pwrite(int fd, const void* buf, size_t byte_count, off_t offset) { in pwrite()
77 int fallocate(int fd, int mode, off_t offset, off_t length) { in fallocate()
136 void* mmap(void* addr, size_t size, int prot, int flags, int fd, off_t offset) { in mmap()
Dposix_fallocate.cpp33 int posix_fallocate(int fd, off_t offset, off_t length) { in posix_fallocate()
Dposix_fadvise.cpp37 int posix_fadvise(int fd, off_t offset, off_t length, int advice) { in posix_fadvise()
/bionic/tests/
Dsys_types_test.cpp34 ASSERT_EQ(8U, sizeof(off_t)); in TEST()
38 ASSERT_EQ(4U, sizeof(off_t)); in TEST()
/bionic/libc/include/bits/
Dflock.h54 off_t l_start; \
55 off_t l_len; \
Dlockf.h59 int lockf(int __fd, int __op, off_t __length) __RENAME_IF_FILE_OFFSET64(lockf64) __INTRODUCED_IN(24…
/bionic/libc/include/bits/fortify/
Dunistd.h34 ssize_t __pread_chk(int, void* _Nonnull, size_t, off_t, size_t) __INTRODUCED_IN(23);
35 ssize_t __pread_real(int, void* _Nonnull, size_t, off_t) __RENAME(pread);
40 ssize_t __pwrite_chk(int, const void* _Nonnull, size_t, off_t, size_t) __INTRODUCED_IN(24);
41 ssize_t __pwrite_real(int, const void* _Nonnull, size_t, off_t) __RENAME(pwrite);
88 ssize_t pread(int fd, void* const _Nonnull __pass_object_size0 buf, size_t count, off_t offset) in pread()
120 ssize_t pwrite(int fd, const void* const _Nonnull __pass_object_size0 buf, size_t count, off_t offs… in pwrite()
/bionic/docs/
D32-bit-abi.md3 ## 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/benchmarks/
Dget_heap_size_benchmark.cpp80 off_t result = lseek(statm_fd, 0 /* offset */, SEEK_SET); in BM_read_statm()
81 if (result == (off_t) -1) { in BM_read_statm()
/bionic/libc/
DSYSCALLS.TXT101 ssize_t pread64|pread(int, void*, size_t, off_t) lp64
103 ssize_t pwrite64|pwrite(int, void*, size_t, off_t) lp64
169 # Paired off_t/off64_t system calls. On 64-bit systems,
170 # sizeof(off_t) == sizeof(off64_t), so there we emit two symbols that are
173 off_t lseek(int, off_t, int) lp32
175 off_t lseek|lseek64(int, off_t, int) lp64
176 ssize_t sendfile(int out_fd, int in_fd, off_t* offset, size_t count) lp32
178 ssize_t sendfile|sendfile64(int out_fd, int in_fd, off_t* offset, size_t count) lp64
179 int truncate(const char*, off_t) lp32
181 int truncate|truncate64(const char*, off_t) lp64
[all …]

12