Lines Matching defs:buf
876 unsigned char buf[68];
900 n = read(fd, buf, sizeof(buf) - 1);
906 buf[n] = '\0';
909 cp = buf + (n = ((buf[0] == 0xEF) && (buf[1] == 0xBB) &&
910 (buf[2] == 0xBF)) ? 3 : 0);
921 /* restore start of shebang position (buf+0 or buf+3) */
922 cp = buf + n;
972 m = buf[0] << 8 | buf[1];
973 if (m == 0x7F45 && buf[2] == 'L' && buf[3] == 'F')
975 32 * buf[4]);
986 (m == /* xz */ 0xFD37 && buf[2] == 'z' && buf[3] == 'X' &&
987 buf[4] == 'Z') || (m == /* 7zip */ 0x377A) ||
1713 select_fmt_entry(char *buf, size_t buflen, unsigned int i, const void *arg)
1718 shf_snprintf(buf, buflen, "%*u) %s",
1769 plain_fmt_entry(char *buf, size_t buflen, unsigned int i, const void *arg)
1771 strlcpy(buf, ((const char * const *)arg)[i], buflen);
1821 char buf[8];
1822 char *q = buf;
1826 (size_t)(q - buf) < sizeof(buf) - 1)
1829 ret = test_isop(meta, buf);