/external/bsdiff/ |
D | bsdiff.cc | 53 static off_t matchlen(u_char *old, off_t oldsize, u_char *new_buf, in matchlen() 54 off_t newsize) { in matchlen() 55 off_t i; in matchlen() 63 static off_t search(saidx_t *I,u_char *old,off_t oldsize, in search() 64 u_char *new_buf,off_t newsize,off_t st,off_t en,off_t *pos) in search() 66 off_t x,y; in search() 89 static void offtout(off_t x,u_char *buf) in offtout() 91 off_t y; in offtout() 111 off_t oldsize,newsize; in bsdiff() 113 off_t scan,pos=0,len; in bsdiff() [all …]
|
D | file.cc | 62 bool File::Seek(off_t pos) { in Seek() 72 off_t newpos = lseek(fd_, pos, SEEK_SET); in Seek() 114 off_t pos = lseek(fd_, 0, SEEK_CUR); in GetSize() 117 off_t end_pos = lseek(fd_, 0, SEEK_END); in GetSize()
|
/external/google-breakpad/src/common/mac/ |
D | macho_walker.h | 53 off_t offset, bool swap, void *context); 70 bool ReadBytes(void *buffer, size_t size, off_t offset); 73 bool CurrentHeader(struct mach_header_64 *header, off_t *offset); 80 off_t &offset); 84 bool WalkHeaderAtOffset(off_t offset); 85 bool WalkHeader64AtOffset(off_t offset); 88 bool WalkHeaderCore(off_t offset, uint32_t number_of_commands, bool swap); 110 off_t current_header_offset_;
|
D | macho_walker.cc | 92 off_t offset; in WalkHeader() 103 bool MachoWalker::ReadBytes(void *buffer, size_t size, off_t offset) { in ReadBytes() 121 bool MachoWalker::CurrentHeader(struct mach_header_64 *header, off_t *offset) { in CurrentHeader() 133 off_t &offset) { in FindHeader() 204 bool MachoWalker::WalkHeaderAtOffset(off_t offset) { in WalkHeaderAtOffset() 230 bool MachoWalker::WalkHeader64AtOffset(off_t offset) { in WalkHeader64AtOffset() 250 bool MachoWalker::WalkHeaderCore(off_t offset, uint32_t number_of_commands, in WalkHeaderCore()
|
D | macho_id.h | 92 void Update(MachoWalker *walker, off_t offset, size_t size); 99 static bool WalkerCB(MachoWalker *walker, load_command *cmd, off_t offset, 103 static bool UUIDWalkerCB(MachoWalker *walker, load_command *cmd, off_t offset, 107 static bool IDWalkerCB(MachoWalker *walker, load_command *cmd, off_t offset,
|
D | macho_id.cc | 131 void MachoID::Update(MachoWalker *walker, off_t offset, size_t size) { in Update() 138 off_t file_offset = offset; in Update() 253 bool MachoID::WalkerCB(MachoWalker *walker, load_command *cmd, off_t offset, in WalkerCB() 267 off_t header_offset; in WalkerCB() 300 off_t header_offset; in WalkerCB() 332 bool MachoID::UUIDWalkerCB(MachoWalker *walker, load_command *cmd, off_t offset, in UUIDWalkerCB() 353 bool MachoID::IDWalkerCB(MachoWalker *walker, load_command *cmd, off_t offset, in IDWalkerCB()
|
/external/elfutils/src/ |
D | strings.c | 52 static int read_fd (int fd, const char *fname, off_t fdlen); 53 static int read_elf (Elf *elf, int fd, const char *fname, off_t fdlen); 141 static off_t elfmap_off; 193 off_t fdlen = (fstat_fail in main() 195 if (fdlen > (off_t) min_len_bytes) in main() 329 process_chunk_mb (const char *fname, const unsigned char *buf, off_t to, in process_chunk_mb() 406 process_chunk (const char *fname, const unsigned char *buf, off_t to, in process_chunk() 470 map_file (int fd, off_t start_off, off_t fdlen, size_t *map_sizep) in map_file() 483 size_t map_size = MIN ((off_t) mmap_max, fdlen); in map_file() 518 read_block_no_mmap (int fd, const char *fname, off_t from, off_t fdlen) in read_block_no_mmap() [all …]
|
D | ranlib.c | 134 copy_content (Elf *elf, int newfd, off_t off, size_t n) in copy_content() 191 off_t index_off = -1; in handle_file() 193 off_t cur_off = SARMAG; in handle_file() 210 cur_off += (((arhdr->ar_size + 1) & ~((off_t) 1)) in handle_file() 257 off_t rest_off; in handle_file()
|
D | ar.c | 439 copy_content (Elf *elf, int newfd, off_t off, size_t n) in copy_content() 478 off_t index_off = -1; in do_oper_extract() 480 off_t cur_off = SARMAG; in do_oper_extract() 527 cur_off += (((arhdr->ar_size + 1) & ~((off_t) 1)) in do_oper_extract() 792 off_t rest_off; in do_oper_extract() 836 off_t off; 837 off_t old_off; 852 write_member (struct armem *memb, off_t *startp, off_t *lenp, Elf *elf, in write_member() 853 off_t end_off, int newfd) in write_member() 941 off_t cur_off = SARMAG; in do_oper_delete() [all …]
|
/external/fio/ |
D | helpers.h | 9 extern int fallocate(int fd, int mode, off_t offset, off_t len); 10 extern int posix_fallocate(int fd, off_t offset, off_t len); 13 extern int posix_fadvise(int fd, off_t offset, off_t len, int advice);
|
D | helpers.c | 13 int fallocate(int fd, int mode, off_t offset, off_t len) in fallocate() 21 int posix_fallocate(int fd, off_t offset, off_t len) in posix_fallocate() 36 int posix_fadvise(int fd, off_t offset, off_t len, int advice) in posix_fadvise()
|
/external/e2fsprogs/lib/blkid/ |
D | llseek.c | 95 if ((sizeof(off_t) >= sizeof(blkid_loff_t)) || in blkid_llseek() 96 (offset < ((blkid_loff_t) 1 << ((sizeof(off_t)*8) -1)))) in blkid_llseek() 97 return lseek(fd, (off_t) offset, whence); in blkid_llseek() 131 if ((sizeof(off_t) < sizeof(blkid_loff_t)) && in blkid_llseek() 132 (offset >= ((blkid_loff_t) 1 << ((sizeof(off_t)*8) - 1)))) { in blkid_llseek() 136 return lseek(fd, (off_t) offset, origin); in blkid_llseek()
|
/external/e2fsprogs/lib/ext2fs/ |
D | llseek.c | 109 if (offset < ((ext2_loff_t) 1 << ((sizeof(off_t)*8) -1))) in ext2fs_llseek() 110 return lseek(fd, (off_t) offset, origin); in ext2fs_llseek() 129 if ((sizeof(off_t) < sizeof(ext2_loff_t)) && in ext2fs_llseek() 130 (offset >= ((ext2_loff_t) 1 << ((sizeof(off_t)*8) -1)))) { in ext2fs_llseek() 134 return lseek (fd, (off_t) offset, origin); in ext2fs_llseek()
|
/external/zlib/src/examples/ |
D | zran.c | 68 off_t out; /* corresponding offset in uncompressed data */ 69 off_t in; /* offset in input file of first full byte */ 93 off_t in, off_t out, unsigned left, unsigned char *window) in addpoint() 144 local int build_index(FILE *in, off_t span, struct access **built) in build_index() 147 off_t totin, totout; /* our own total counters to avoid 4GB limit */ in build_index() 148 off_t last; /* totout value of last access point */ in build_index() 249 local int extract(FILE *in, struct access *index, off_t offset, in extract() 357 off_t offset; in main()
|
/external/lzma/CPP/Common/ |
D | C_FileIO.cpp | 38 off_t curPos = Seek(0, SEEK_CUR); in GetLength() 39 off_t lengthTemp = Seek(0, SEEK_END); in GetLength() 45 off_t CFileBase::Seek(off_t distanceToMove, int moveMethod) const in Seek()
|
/external/bison/m4/ |
D | largefile.m4 | 16 /* Check that off_t can represent 2**63 - 1 correctly. 20 @%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 109 # overrides ensure that off_t or 'struct size.st_size' are 64-bit, respectively. 116 dnl mingw64 defines off_t to a 64-bit type already, if 118 AC_CACHE_CHECK([for 64-bit off_t], [gl_cv_type_off_t_64], 122 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1]; 138 dnl A 64-bit off_t is
|
/external/elfutils/libdwfl/ |
D | core-file.c | 44 do_fail (int error, off_t *next, off_t offset) in do_fail() 59 elf_begin_rand (Elf *parent, off_t offset, off_t size, off_t *next) in elf_begin_rand() 64 off_t min = (parent->kind == ELF_K_ELF ? in elf_begin_rand() 71 || unlikely (offset >= (off_t) parent->maximum_size)) in elf_begin_rand() 98 || unlikely ((off_t) parent->maximum_size - offset < size)) in elf_begin_rand() 102 if (unlikely ((off_t) parent->maximum_size - offset < size)) in elf_begin_rand() 110 && unlikely (size == (off_t) parent->maximum_size)) in elf_begin_rand() 120 assert ((off_t) data->d_size == size); in elf_begin_rand()
|
/external/bison/lib/ |
D | unistd.in.h | 576 _GL_FUNCDECL_RPL (ftruncate, int, (int fd, off_t length)); 577 _GL_CXXALIAS_RPL (ftruncate, int, (int fd, off_t length)); 580 _GL_FUNCDECL_SYS (ftruncate, int, (int fd, off_t length)); 582 _GL_CXXALIAS_SYS (ftruncate, int, (int fd, off_t length)); 1086 _GL_FUNCDECL_RPL (lseek, off_t, (int fd, off_t offset, int whence)); 1087 _GL_CXXALIAS_RPL (lseek, off_t, (int fd, off_t offset, int whence)); 1089 _GL_CXXALIAS_SYS (lseek, off_t, (int fd, off_t offset, int whence)); 1160 (int fd, void *buf, size_t bufsize, off_t offset) 1163 (int fd, void *buf, size_t bufsize, off_t offset)); 1167 (int fd, void *buf, size_t bufsize, off_t offset) [all …]
|
/external/toybox/lib/ |
D | lib.h | 130 off_t xlseek(int fd, off_t offset, int whence); 131 char *xreadfile(char *name, char *buf, off_t len); 165 off_t lskip(int fd, off_t offset); 168 char *readfileat(int dirfd, char *name, char *buf, off_t *len); 169 char *readfile(char *name, char *buf, off_t len); 186 off_t fdlength(int fd);
|
/external/bison/linux-lib/ |
D | unistd.h | 888 _GL_FUNCDECL_RPL (ftruncate, int, (int fd, off_t length)); 889 _GL_CXXALIAS_RPL (ftruncate, int, (int fd, off_t length)); 892 _GL_FUNCDECL_SYS (ftruncate, int, (int fd, off_t length)); 894 _GL_CXXALIAS_SYS (ftruncate, int, (int fd, off_t length)); 1398 _GL_FUNCDECL_RPL (lseek, off_t, (int fd, off_t offset, int whence)); 1399 _GL_CXXALIAS_RPL (lseek, off_t, (int fd, off_t offset, int whence)); 1401 _GL_CXXALIAS_SYS (lseek, off_t, (int fd, off_t offset, int whence)); 1472 (int fd, void *buf, size_t bufsize, off_t offset) 1475 (int fd, void *buf, size_t bufsize, off_t offset)); 1479 (int fd, void *buf, size_t bufsize, off_t offset) [all …]
|
/external/bison/darwin-lib/ |
D | unistd.h | 888 _GL_FUNCDECL_RPL (ftruncate, int, (int fd, off_t length)); 889 _GL_CXXALIAS_RPL (ftruncate, int, (int fd, off_t length)); 892 _GL_FUNCDECL_SYS (ftruncate, int, (int fd, off_t length)); 894 _GL_CXXALIAS_SYS (ftruncate, int, (int fd, off_t length)); 1398 _GL_FUNCDECL_RPL (lseek, off_t, (int fd, off_t offset, int whence)); 1399 _GL_CXXALIAS_RPL (lseek, off_t, (int fd, off_t offset, int whence)); 1401 _GL_CXXALIAS_SYS (lseek, off_t, (int fd, off_t offset, int whence)); 1472 (int fd, void *buf, size_t bufsize, off_t offset) 1475 (int fd, void *buf, size_t bufsize, off_t offset)); 1479 (int fd, void *buf, size_t bufsize, off_t offset) [all …]
|
/external/google-breakpad/src/client/linux/handler/ |
D | minidump_descriptor.h | 99 off_t size_limit() const { return size_limit_; } in size_limit() 100 void set_size_limit(off_t limit) { size_limit_ = limit; } in set_size_limit() 124 off_t size_limit_;
|
/external/libchrome/base/files/ |
D | memory_mapped_file_posix.cc | 27 off_t map_start = 0; in MapFileRegionToMemory() 54 aligned_start > std::numeric_limits<off_t>::max() || in MapFileRegionToMemory() 63 map_start = static_cast<off_t>(aligned_start); in MapFileRegionToMemory()
|
/external/libpcap/lbl/ |
D | os-sunos4.h | 87 int ftruncate(int, off_t); 120 off_t lseek(int, off_t, int); 184 int truncate(char *, off_t);
|
/external/elfutils/libelf/ |
D | elf_update.c | 43 static off_t 44 write_file (Elf *elf, off_t size, int change_bo, size_t shnum) in write_file() 149 off_t 153 off_t size; in elf_update()
|