/openbsd-current/sys/dev/microcode/bwi/extract/ |
H A D | extract.c | 30 int filesize; member in struct:header 67 if (read(fdin, &h[i]->filesize, sizeof(h[i]->filesize)) < 1) 68 err(1, "filesize header read failed\n"); 69 h[i]->filesize = htonl(h[i]->filesize); 80 if ((p = malloc(h[i]->filesize)) == NULL) 84 if (read(fdin, p, h[i]->filesize) < 1) 86 if (write(fdout, p, h[i]->filesize) < 1) 90 printf("extracting %s (filesize [all...] |
/openbsd-current/usr.bin/ctfconv/ |
H A D | elf.c | 33 iself(const char *p, size_t filesize) argument 37 if (filesize < sizeof(Elf_Ehdr)) { 57 if (eh->e_shoff > filesize) { 66 if (eh->e_shnum > (filesize - eh->e_shoff) / eh->e_shentsize) { 79 elf_getshstab(const char *p, size_t filesize, const char **shstab, argument 87 if (shoff > (filesize - sizeof(*sh))) { 97 if (sh->sh_offset > filesize) { 101 if (sh->sh_size > filesize - sh->sh_offset) { 114 elf_getsymtab(const char *p, size_t filesize, const char *shstab, argument 128 if (shoff > (filesize 178 elf_getsection(char *p, size_t filesize, const char *sname, const char *shstab, size_t shstabsz, const char **psdata, size_t *pssz) argument 263 elf_reloc_apply(const char *p, size_t filesize, const char *shstab, size_t shstabsz, ssize_t sidx, char *sdata, size_t ssz) argument [all...] |
H A D | ctfconv.c | 223 elf_convert(char *p, size_t filesize) argument 231 if (elf_getshstab(p, filesize, &shstab, &shstabsz)) 235 if (elf_getsymtab(p, filesize, shstab, shstabsz, &symtab, &nsymb, 240 if (elf_getsection(p, filesize, DEBUG_ABBREV, shstab, shstabsz, &abbuf, 246 if (elf_getsection(p, filesize, DEBUG_INFO, shstab, shstabsz, &infobuf, 253 if (elf_getsection(p, filesize, DEBUG_STR, shstab, shstabsz, &dstrbuf,
|
/openbsd-current/sys/dev/microcode/bwi/build/ |
H A D | build.c | 35 int filesize; member in struct:header 66 h[j].filesize = s.st_size; 69 fwsize += h[j].filesize; 72 h[j].filename, h[j].filesize); 89 offset += h[i].filesize; 101 h[i].filesize = htonl(h[i].filesize); 121 h[i].filesize = ntohl(h[i].filesize); 132 if ((p = malloc(h[i].filesize)) [all...] |
/openbsd-current/gnu/usr.bin/texinfo/info/ |
H A D | filesys.h | 55 extern char *filesys_read_info_file (char *pathname, long int *filesize, 58 extern char *filesys_read_compressed (char *pathname, long int *filesize);
|
H A D | dir.c | 139 long filesize; local 141 char *contents = filesys_read_info_file (fullpath, &filesize, 146 add_menu_to_file_buffer (contents, filesize, dir_buffer); 179 fb_binding.end = fb->filesize; 226 fb_binding.end = fb->filesize; 280 end = fb->filesize; 282 contents = (char *)xmalloc (fb->filesize + textlen + 1); 288 fb->filesize += textlen; 289 fb->finfo.st_size = fb->filesize;
|
H A D | filesys.c | 454 filesys_read_info_file (char *pathname, long int *filesize, argument 459 *filesize = filesys_error_number = 0; 464 return (filesys_read_compressed (pathname, filesize)); 497 *filesize = convert_eols (contents, st_size); 501 if (*filesize < st_size) 502 contents = (char *)xrealloc (contents, 1 + *filesize); 503 contents[*filesize] = '\0'; 516 filesys_read_compressed (char *pathname, long int *filesize) argument 522 *filesize = filesys_error_number = 0; 585 *filesize [all...] |
H A D | nodes.h | 107 long filesize; /* The number of bytes this file expands to. */ 106 long filesize; /* The number of bytes this file expands to. */ member in struct:__anon7376
|
H A D | nodes.c | 166 node->nodelen = file_buffer->filesize; 315 long filesize; 363 contents = filesys_read_info_file (fullpath, &filesize, &finfo, &compressed); 374 file_buffer->filesize = filesize; 400 binding.start = file_buffer->filesize; 454 binding.end = file_buffer->filesize; 508 binding.end = file_buffer->filesize; 762 binding.end = file_buffer->filesize; 1002 (subfile->filesize 312 long filesize; local [all...] |
H A D | man.c | 93 oldsize = file_buffer->filesize; 102 file_buffer->filesize = newsize; 160 file_buffer->filesize = 0;
|
/openbsd-current/sys/miscfs/fuse/ |
H A D | fusefs_node.h | 45 off_t filesize; member in struct:fusefs_node
|
/openbsd-current/sys/ddb/ |
H A D | db_dwarf.c | 460 size_t filesize = st.st_size; local 462 const char *p = mmap(NULL, filesize, PROT_READ, MAP_SHARED, fd, 0); 477 if (ehdr.e_shoff > filesize) 481 if (ehdr.e_shnum > (filesize - ehdr.e_shoff) / ehdr.e_shentsize) 492 if (shdr.sh_offset > filesize) 494 if (shdr.sh_size > filesize - shdr.sh_offset) 510 if (shdr.sh_offset > filesize) 512 if (shdr.sh_size > filesize - shdr.sh_offset)
|
/openbsd-current/sbin/dump/ |
H A D | traverse.c | 291 off_t filesize; local 318 filesize = (off_t)DIP(dp, di_size); 319 for (ret = 0, i = 0; filesize > 0 && i < NDADDR; i++) { 323 filesize, tapesize, nodump); 325 filesize = 0; 327 filesize -= sblock->fs_bsize; 329 for (i = 0; filesize > 0 && i < NIADDR; i++) { 332 ret |= dirindir(ino, DIP(&di, di_ib[i]), i, &filesize, 361 dirindir(ino_t ino, daddr_t blkno, int ind_level, off_t *filesize, argument 370 for (i = 0; *filesize > 404 searchdir(ino_t ino, daddr_t blkno, long size, off_t filesize, int64_t *tapesize, int nodump) argument [all...] |
/openbsd-current/sbin/ncheck_ffs/ |
H A D | ncheck_ffs.c | 348 off_t filesize; local 353 filesize = (off_t)DIP(dp, di_size); 354 for (i = 0; filesize > 0 && i < NDADDR; i++) { 358 filesize, path); 360 filesize -= sblock->fs_bsize; 362 for (i = 0; filesize > 0 && i < NIADDR; i++) { 364 dirindir(ino, DIP(dp, di_ib[i]), i, &filesize, path); 414 searchdir(ufsino_t ino, daddr_t blkno, long size, off_t filesize, argument 428 if (filesize < size) 429 size = filesize; [all...] |
/openbsd-current/usr.bin/ftp/ |
H A D | ftp_var.h | 167 extern off_t filesize; /* size of file being transferred */
|
H A D | util.c | 738 * - Before the transfer, set filesize to size of file (or -1 if unknown), 773 if (!progress || filesize < 0) 777 if (filesize) 778 ratio = cursize * 100 / filesize; 878 } else if (bytes <= 0 || elapsed <= 0.0 || cursize > filesize) { 885 remaining = (int)((filesize - restart_point) / 915 * direction to be defined by xfer routines, and filesize and bytes 948 if (siginfo && bytes > 0 && elapsed > 0.0 && filesize >= 0 && 949 bytes + restart_point <= filesize) { 950 remaining = (int)((filesize [all...] |
H A D | ftp.c | 592 filesize = -1; 668 filesize = st.st_size; 753 if (hash && (!progress || filesize < 0) ) { 763 if (hash && (!progress || filesize < 0) && bytes > 0) { 782 while (hash && (!progress || filesize < 0) && 798 if (hash && (!progress || filesize < 0)) { 890 filesize = -1; 979 filesize = remotesize(remote, 0); 1081 if (hash && (!progress || filesize < 0)) { 1091 if (hash && (!progress || filesize < [all...] |
H A D | fetch.c | 201 filesize = -1; 203 filesize = st.st_size; 871 filesize = -1; 895 filesize = strtonum(cp, 0, LLONG_MAX, &errstr); 900 filesize += restart_point; 995 filesize = -1; 1101 filesize != -1 && len == 0 && bytes != filesize) {
|
/openbsd-current/gnu/usr.bin/cvs/src/ |
H A D | subr.c | 649 size_t filesize; 654 filesize = 100; /* force allocation of minimum buffer */ 668 filesize = s.st_size; 673 if (*buf == NULL || *bufsize <= filesize) 675 *bufsize = filesize + 1; 648 size_t filesize; local
|
/openbsd-current/gnu/usr.bin/binutils-2.17/binutils/ |
H A D | strings.c | 161 bfd_size_type filesize; 336 ARG->filename and whose size might be in ARG->filesize. If it 361 filesizep = & filename_and_sizep->filesize; 422 filename_and_size.filesize = 0; 160 bfd_size_type filesize; member in struct:__anon1
|
/openbsd-current/usr.bin/ssh/ |
H A D | progressmeter.c | 246 start_progress_meter(const char *f, off_t filesize, off_t *ctr) argument 251 end_pos = filesize;
|
/openbsd-current/gnu/llvm/llvm/tools/dsymutil/ |
H A D | MachOUtils.cpp | 132 Seg64.filesize = Seg.filesize; 267 Segment.filesize = EHFrameSize; 270 Segment.filesize = LinkeditSize; 274 Segment.fileoff = Segment.filesize = 0;
|
/openbsd-current/gnu/usr.bin/gcc/gcc/testsuite/gcc.c-torture/compile/ |
H A D | 980408-1.c | 19 filesize; member in struct:_Image
|
/openbsd-current/gnu/llvm/llvm/lib/ObjCopy/MachO/ |
H A D | MachOLayoutBuilder.cpp | 197 MLC.segment_command_data.filesize = SegFileSize; 206 MLC.segment_command_64_data.filesize = SegFileSize; 325 MLC->segment_command_data.filesize = LinkEditSize; 331 MLC->segment_command_64_data.filesize = LinkEditSize;
|
/openbsd-current/gnu/llvm/llvm/tools/gold/ |
H A D | gold-plugin.cpp | 80 off_t filesize; member in struct:__anon3653::claimed_file 526 MemoryBufferRef(StringRef((const char *)view, file->filesize), ""); 536 file->name, file->filesize, offset); 584 // Save the filesize since for parallel ThinLTO backends we can only 586 cf.filesize = file->filesize; 735 MemoryBufferRef BufferRef(StringRef((const char *)View, F.filesize),
|