Lines Matching full:what
173 char *what = 0; in do_regular_file() local
178 for (what = s; (s-toybuf)<len && !isspace(*s); s++); in do_regular_file()
187 if (!what) what = "UTF-8 text"; in do_regular_file()
189 what = "data"; in do_regular_file()
194 xputs(what ? what : "ASCII text"); in do_regular_file()
201 char *what = "unknown"; in do_file() local
205 if (!fstat(fd, &sb)) what = "cannot open"; in do_file()
207 if (sb.st_size == 0) what = "empty"; in do_file()
212 } else if (S_ISBLK(sb.st_mode)) what = "block special"; in do_file()
213 else if (S_ISCHR(sb.st_mode)) what = "character special"; in do_file()
214 else if (S_ISDIR(sb.st_mode)) what = "directory"; in do_file()
215 else if (S_ISFIFO(sb.st_mode)) what = "fifo"; in do_file()
216 else if (S_ISSOCK(sb.st_mode)) what = "socket"; in do_file()
217 else if (S_ISLNK(sb.st_mode)) what = "symbolic link"; in do_file()
218 xputs(what); in do_file()