Lines Matching refs:toybuf
36 int endian = toybuf[5], bits = toybuf[4], i, j, dynamic = 0, stripped = 1,
61 i = elf_int(toybuf+16, 2);
67 if (elf_int(toybuf+36+12*(bits==2), 4) & 0x8000) printf(" (fdpic)");
87 j = elf_int(toybuf+18, 2);
105 // Stash what we need from the header; it's okay to reuse toybuf after this.
106 phentsize = elf_int(toybuf+42+12*bits, 2);
107 phnum = elf_int(toybuf+44+12*bits, 2);
108 phoff = elf_int(toybuf+28+4*bits, 4+4*bits);
109 shsize = elf_int(toybuf+46+12*bits, 2);
110 shnum = elf_int(toybuf+48+12*bits, 2);
111 shoff = elf_int(toybuf+32+8*bits, 4+4*bits);
215 memset(toybuf, 0, 80);
216 if ((len = readall(fd, s = toybuf, sizeof(toybuf)))<0) perror_msg("%s", name);
250 else if (len>32 && !memcmp(toybuf, "\xff\xd8", 2)) xputs("JPEG image data");
267 if (toybuf[5] == '7') cpioformat = "pre-SVR4 or odc";
268 else if (toybuf[5] == '1') cpioformat = "SVR4 with no CRC";
269 else if (toybuf[5] == '2') cpioformat = "SVR4 with CRC";
280 int ver = toybuf[4];
418 for (what = s; (s-toybuf)<len && !isspace(*s); s++);
423 if (!(isprint(toybuf[i]) || isspace(toybuf[i]))) {
460 sprintf(what = toybuf, "%s special (%u/%u)",
478 sprintf(what = toybuf, "%ssymbolic link to %s",