Home
last modified time | relevance | path

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

12345678910>>...12

/external/bsdiff/
Dbsdiff.cc53 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 …]
Dfile.cc62 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/
Dmacho_walker.h53 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_;
Dmacho_walker.cc92 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()
Dmacho_id.h92 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,
Dmacho_id.cc131 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/
Dstrings.c52 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 …]
Dranlib.c134 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()
Dar.c439 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/
Dhelpers.h9 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);
Dhelpers.c13 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/
Dllseek.c95 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/
Dllseek.c109 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/
Dzran.c68 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/
DC_FileIO.cpp38 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/
Dlargefile.m416 /* 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/
Dcore-file.c44 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/
Dunistd.in.h576 _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/
Dlib.h130 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/
Dunistd.h888 _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/
Dunistd.h888 _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/
Dminidump_descriptor.h99 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/
Dmemory_mapped_file_posix.cc27 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/
Dos-sunos4.h87 int ftruncate(int, off_t);
120 off_t lseek(int, off_t, int);
184 int truncate(char *, off_t);
/external/elfutils/libelf/
Delf_update.c43 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()

12345678910>>...12