/aosp12/bionic/tools/versioner/tests/preprocessor_file_offset_bits/expected/ |
H A 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);
|
/aosp12/bionic/tools/versioner/tests/preprocessor_file_offset_bits/headers/ |
H A 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);
|
/aosp12/art/libelffile/stream/ |
H A D | vector_output_stream.h | 40 off_t new_offset = offset_ + byte_count; in WriteFully() 48 off_t Seek(off_t offset, Whence whence) override; 55 void EnsureCapacity(off_t new_offset) { in EnsureCapacity() 56 if (new_offset > static_cast<off_t>(vector_->size())) { in EnsureCapacity() 61 off_t offset_;
|
H A D | error_delaying_output_stream.h | 53 off_t Seek(off_t offset, Whence whence) override { in Seek() 56 off_t new_offset; in Seek() 69 off_t actual_offset = output_->Seek(offset, whence); in Seek() 70 if (actual_offset == static_cast<off_t>(-1)) { in Seek() 98 off_t output_offset_; // Keep track of the current position in the stream.
|
/aosp12/bionic/tests/headers/posix/ |
H A 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()
|
/aosp12/bionic/libc/include/ |
H A 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);
|
H A 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…
|
/aosp12/frameworks/native/include/android/ |
H A D | asset_manager.h | 139 off_t AAsset_seek(AAsset* asset, off_t offset, int whence) 168 off_t AAsset_getLength(AAsset* asset) 180 off_t AAsset_getRemainingLength(AAsset* asset) 198 int AAsset_openFileDescriptor(AAsset* asset, off_t* outStart, off_t* outLength)
|
/aosp12/system/update_engine/common/ |
H A D | hash_calculator.cc | 46 off_t HashCalculator::UpdateFile(const string& name, off_t length) { in UpdateFile() 54 off_t bytes_processed = 0; in UpdateFile() 56 off_t bytes_to_read = buffer.size(); in UpdateFile() 103 off_t HashCalculator::RawHashOfFile(const string& name, in RawHashOfFile() 104 off_t length, in RawHashOfFile() 107 off_t res = calc.UpdateFile(name, length); in RawHashOfFile()
|
H A D | multi_range_http_fetcher.h | 60 void AddRange(off_t offset, size_t size) { in AddRange() 65 void AddRange(off_t offset) { ranges_.push_back(Range(offset)); } in AddRange() 68 void SetOffset(off_t offset) override; 130 Range(off_t offset, size_t length) : offset_(offset), length_(length) {} in Range() 131 explicit Range(off_t offset) : offset_(offset), length_(0) {} in Range() 133 inline off_t offset() const { return offset_; } in offset() 141 off_t offset_;
|
H A D | utils.h | 64 bool PWriteAll(int fd, const void* buf, size_t count, off_t offset); 71 off_t off); 79 off_t offset); 92 int fd, void* buf, size_t count, off_t offset, ssize_t* out_bytes_read); 98 off_t offset, 107 off_t offset, 118 off_t offset, 119 off_t size, 129 off_t BlockDevSize(int fd); 135 off_t FileSize(const std::string& path); [all …]
|
H A D | hash_calculator.h | 50 off_t UpdateFile(const std::string& name, off_t length); 75 static off_t RawHashOfFile(const std::string& name, 76 off_t length,
|
H A D | utils.cc | 198 off_t offset) { in WriteAll() 224 off_t offset, in ReadAll() 245 off_t offset, in PReadAll() 258 off_t offset) { in PWriteAll() 292 off_t bytes_to_read = sizeof(buf); in Read() 355 off_t offset, in ReadFileChunk() 356 off_t size, in ReadFileChunk() 361 off_t BlockDevSize(int fd) { in BlockDevSize() 371 off_t FileSize(int fd) { in FileSize() 387 off_t FileSize(const string& path) { in FileSize() [all …]
|
/aosp12/packages/modules/adb/fastdeploy/deploypatchgenerator/ |
H A D | apk_archive.h | 38 off_t offset = 0; 39 off_t size = 0; 65 Location GetSignatureLocation(off_t cdRecordOffset); 69 off_t FindEndOfCDRecord() const; 78 off_t size_;
|
H A D | apk_archive.cpp | 108 off_t ApkArchive::FindEndOfCDRecord() const { in FindEndOfCDRecord() 110 constexpr off_t endOfCDMinSize = 22; in FindEndOfCDRecord() 111 constexpr off_t endOfCDMaxSize = 65535 + endOfCDMinSize; in FindEndOfCDRecord() 153 constexpr off_t cdEntryHeaderSizeBytes = 22; in GetCDLocation() 157 off_t eocdRecord = FindEndOfCDRecord(); in GetCDLocation() 176 ApkArchive::Location ApkArchive::GetSignatureLocation(off_t cdRecordOffset) { in GetSignatureLocation() 180 constexpr off_t endOfSignatureSize = 24; in GetSignatureLocation() 181 off_t signatureOffset = cdRecordOffset - endOfSignatureSize; in GetSignatureLocation() 366 off_t ddOffset = localFileHeaderOffset + kLocalFileHeaderSize + lfh->file_name_length + in CalculateLocalFileEntrySize() 385 off_t localDDOffset = 0; in CalculateLocalFileEntrySize()
|
/aosp12/frameworks/base/native/android/ |
H A D | asset_manager.cpp | 154 off_t AAsset_seek(AAsset* asset, off_t offset, int whence) in AAsset_seek() 175 off_t AAsset_getLength(AAsset* asset) in AAsset_getLength() 185 off_t AAsset_getRemainingLength(AAsset* asset) in AAsset_getRemainingLength() 195 int AAsset_openFileDescriptor(AAsset* asset, off_t* outStart, off_t* outLength) in AAsset_openFileDescriptor() 201 *outStart = off_t(outStart64); in AAsset_openFileDescriptor() 202 *outLength = off_t(outLength64); in AAsset_openFileDescriptor()
|
/aosp12/hardware/google/graphics/common/libion/test/ |
H A D | ion_test_fixture.h | 114 void *ptr, size_t size, off_t offset); 119 void ionTestWriteDma(int fd, void *ptr, size_t size, off_t offset) { in ionTestWriteDma() 122 void ionTestReadDma(int fd, void *ptr, size_t size, off_t offset) { in ionTestReadDma() 125 void ionTestWriteKernel(int fd, void *ptr, size_t size, off_t offset) { in ionTestWriteKernel() 128 void ionTestReadKernel(int fd, void *ptr, size_t size, off_t offset) { in ionTestReadKernel() 132 void fill(void *ptr, size_t size, off_t offset); 133 bool check(void *ptr, size_t size, off_t offset);
|
H A D | ion_allocate_api_test.cpp | 36 off_t checkZero(int fd, size_t size, unsigned long *val) { in checkZero() 41 off_t idx; in checkZero() 42 for (idx = 0; idx < static_cast<off_t>(size / sizeof(*p)); idx++) { in checkZero() 114 off_t erridx; in TEST_F() 116 EXPECT_EQ(static_cast<off_t>(size), erridx = checkZero(fd, size, &val)) in TEST_F()
|
/aosp12/system/update_engine/ |
H A D | test_http_server.cc | 76 off_t start_offset{0}; 155 string Itoa(off_t num) { in Itoa() 184 const off_t start_offset, in WriteHeaders() 185 const off_t end_offset, in WriteHeaders() 227 const off_t start_offset, in WritePayload() 228 const off_t end_offset, in WritePayload() 280 const off_t start_offset, in WritePayload() 281 const off_t end_offset) { in WritePayload() 484 const off_t start_offset = request.start_offset; in HandleDefault() 514 inline const char* GetCStr(const off_t index) const { in GetCStr() [all …]
|
/aosp12/bionic/libc/bionic/ |
H A 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()
|
/aosp12/frameworks/compile/mclinker/include/mcld/MC/ |
H A D | Input.h | 53 off_t pFileOffset = 0); 59 off_t pFileOffset = 0); 89 off_t fileOffset() const { return m_fileOffset; } in fileOffset() 91 void setFileOffset(off_t pFileOffset) { m_fileOffset = pFileOffset; } in setFileOffset() 116 off_t m_fileOffset;
|
/aosp12/frameworks/native/include/binder/ |
H A D | MemoryHeapBase.h | 44 MemoryHeapBase(int fd, size_t size, uint32_t flags = 0, off_t offset = 0); 68 off_t getOffset() const override; 82 status_t mapfd(int fd, bool writeableByCaller, size_t size, off_t offset = 0); 90 off_t mOffset;
|
/aosp12/frameworks/native/libs/binder/include/binder/ |
H A D | MemoryHeapBase.h | 44 MemoryHeapBase(int fd, size_t size, uint32_t flags = 0, off_t offset = 0); 68 off_t getOffset() const override; 82 status_t mapfd(int fd, bool writeableByCaller, size_t size, off_t offset = 0); 90 off_t mOffset;
|
/aosp12/system/update_engine/payload_generator/ |
H A D | block_mapping.h | 50 BlockId AddDiskBlock(int fd, off_t byte_offset); 57 off_t initial_byte_offset, 67 BlockId AddBlock(int fd, off_t byte_offset, const brillo::Blob& block_data); 83 off_t byte_offset{0};
|
/aosp12/system/media/audio_utils/tests/ |
H A D | fifo_multiprocess.cpp | 50 sizeof(audio_utils_fifo_index), PROT_READ | PROT_WRITE, MAP_SHARED, frontFd, (off_t) 0); in main() 55 sizeof(audio_utils_fifo_index), PROT_READ | PROT_WRITE, MAP_SHARED, rearFd, (off_t) 0); in main() 60 MAP_SHARED, dataFd, (off_t) 0); in main() 84 (off_t) 0); in main() 147 (off_t) 0); in main() 157 MAP_SHARED | MAP_FIXED, dataFd, (off_t) 0); in main()
|