Lines Matching refs:toybuf
103 fgets(toybuf, sizeof(toybuf), fp); in show_ip()
105 while (fgets(toybuf, sizeof(toybuf), fp)) { in show_ip()
115 if (16 != sscanf(toybuf, in show_ip()
123 if (10 != sscanf(toybuf, in show_ip()
150 if (FLAG(n)) sprintf(s = toybuf, "%d", uid); in show_ip()
173 fgets(toybuf, sizeof(toybuf), fp); in show_unix_sockets()
190 sprintf(toybuf, "[ %s]", flags ? "ACC " : ""); in show_unix_sockets()
192 refcount, toybuf, types[type], states[state], inode); in show_unix_sockets()
210 char *s = toybuf+256; in scan_pids()
218 sprintf(toybuf, "/proc/%d/cmdline", pid); in scan_pids()
219 if (!(readfile(toybuf, toybuf, 256))) return 0; in scan_pids()
225 s = toybuf+256; in scan_pids()
226 if (!readlinkat0(dirfd, entry->d_name, s, sizeof(toybuf)-256)) continue; in scan_pids()
231 sprintf(s, "%d/%s", pid, getbasename(toybuf)); in scan_pids()
249 char *out = toybuf, *flag_val; in display_routes()
254 fgets(toybuf, sizeof(toybuf), fp); in display_routes()