Lines Matching full:what
91 // If what we've seen so far doesn't seem consistent, bail.
103 // Stash what we need from the header; it's okay to reuse toybuf after this.
284 char *what; in do_regular_file() local
288 if (s[4] == 7) what = (bit==32)?"x86":"x86-"; in do_regular_file()
289 else if (s[4] == 12) what = "arm"; in do_regular_file()
290 else if (s[4] == 18) what = "ppc"; in do_regular_file()
291 else what = NULL; in do_regular_file()
292 if (what) xprintf("%s%s ", what, (bit==32)?"":"64"); in do_regular_file()
295 if (s[12] == 1) what = "object"; in do_regular_file()
296 else if (s[12] == 2) what = "executable"; in do_regular_file()
297 else if (s[12] == 6) what = "shared library"; in do_regular_file()
298 else what = NULL; in do_regular_file()
299 if (what) xprintf("%s\n", what); in do_regular_file()
378 char *what = 0; in do_regular_file() local
386 for (what = s; (s-toybuf)<len && !isspace(*s); s++); in do_regular_file()
395 if (!what) what = "UTF-8 text"; in do_regular_file()
397 what = "data"; in do_regular_file()
402 xputs(what ? what : "ASCII text"); in do_regular_file()
418 char *name = *arg, *what = "cannot open"; in file_main() local
429 if (!fd && !sb.st_size) what = "empty"; in file_main()
435 } else if (S_ISFIFO(sb.st_mode)) what = "fifo"; in file_main()
436 else if (S_ISBLK(sb.st_mode)) what = "block special"; in file_main()
437 else if (S_ISCHR(sb.st_mode)) what = "character special"; in file_main()
438 else if (S_ISDIR(sb.st_mode)) what = "directory"; in file_main()
439 else if (S_ISSOCK(sb.st_mode)) what = "socket"; in file_main()
440 else if (S_ISLNK(sb.st_mode)) what = "symbolic link"; in file_main()
441 else what = "unknown"; in file_main()
444 xputs(what); in file_main()