Searched refs:file_size (Results 1 – 9 of 9) sorted by relevance
/bionic/libc/bionic/ |
D | execinfo.cpp | 120 off_t file_size = lseek(fd.get(), 0, SEEK_END); in backtrace_symbols() local 121 if (file_size <= 0) { in backtrace_symbols() 130 if (__builtin_add_overflow(ptr_size, file_size, &symbol_data_size) || in backtrace_symbols() 144 ssize_t num_read = read(fd.get(), cur_string, file_size); in backtrace_symbols() 146 if (num_read != file_size) { in backtrace_symbols() 152 if (cur_string[file_size] != '\n') { in backtrace_symbols() 153 cur_string[file_size++] = '\n'; in backtrace_symbols()
|
/bionic/tests/ |
D | unistd_test.cpp | 1258 constexpr off64_t file_size = 32*1024LL; in TEST() local 1261 ASSERT_EQ(0, ftruncate(tf.fd, file_size)); in TEST() 1265 ASSERT_EQ(0, lockf64(tf.fd, F_LOCK, file_size)); in TEST() 1269 ASSERT_EQ(0, lockf64(tf.fd, F_TLOCK, file_size)); in TEST() 1273 ASSERT_EQ(0, lockf64(tf.fd, F_TEST, file_size)); in TEST() 1277 ASSERT_EQ(0, lockf64(tf.fd, F_ULOCK, file_size)); in TEST() 1281 constexpr off64_t file_size = 32*1024LL; in TEST() local 1284 ASSERT_EQ(0, ftruncate(tf.fd, file_size)); in TEST() 1292 ASSERT_EQ(0, lockf64(tf.fd, F_TEST, file_size)); in TEST() 1295 ASSERT_EQ(0, ftruncate(tf.fd, 2*file_size)); in TEST() [all …]
|
D | dlext_test.cpp | 2053 size_t file_size = file_stat.st_size; in TEST() local 2065 rec.offset, file_size); in TEST()
|
/bionic/libc/kernel/uapi/sound/sof/ |
D | fw.h | 49 __u32 file_size; member
|
/bionic/linker/ |
D | linker_phdr.cpp | 167 bool ElfReader::Read(const char* name, int fd, off64_t file_offset, off64_t file_size) { in Read() argument 174 file_size_ = file_size; in Read() 1260 off_t file_size = file_stat.st_size; in phdr_table_map_gnu_relro() local 1262 if (file_size > 0) { in phdr_table_map_gnu_relro() 1263 temp_mapping = mmap(nullptr, file_size, PROT_READ, MAP_PRIVATE, fd, 0); in phdr_table_map_gnu_relro() 1286 if (file_size - *file_offset < size) { in phdr_table_map_gnu_relro() 1312 munmap(temp_mapping, file_size); in phdr_table_map_gnu_relro() 1323 munmap(temp_mapping, file_size); in phdr_table_map_gnu_relro()
|
D | linker_phdr.h | 46 [[nodiscard]] bool Read(const char* name, int fd, off64_t file_offset, off64_t file_size);
|
D | linker.cpp | 623 bool read(const char* realpath, off64_t file_size) { in read() argument 625 return elf_reader.Read(realpath, fd_, file_offset_, file_size); in read()
|
/bionic/libc/kernel/uapi/drm/ |
D | panfrost_drm.h | 137 __u32 file_size; member
|
/bionic/libc/kernel/uapi/linux/ |
D | hyperv.h | 71 __u64 file_size; member
|