Lines Matching refs:toybuf
96 long long *slot = (void *)(toybuf+1024); in do_ps()
105 sprintf(toybuf, "%lld/stat", *slot); in do_ps()
106 if (!readfileat(dirtree_parentfd(new), toybuf, toybuf, 1024)) return 0; in do_ps()
109 if (!(s = strchr(toybuf, '('))) return 0; in do_ps()
125 char *out = toybuf+2048; in do_ps()
149 sprintf(toybuf+512, "%lld/wchan", *slot); in do_ps()
150 readfileat(dirtree_parentfd(new), toybuf+512, out, 2047); in do_ps()
160 sprintf(toybuf+512, "%lld/fd/%i", *slot, i); in do_ps()
162 if (!fstatat(fd, toybuf+512, &st, 0) && S_ISCHR(st.st_mode) in do_ps()
164 && 0<(len = readlinkat(fd, toybuf+512, out, 2047))) in do_ps()
253 sysinfo((void *)toybuf); in ps_main()
256 long *sigh = (long *)toybuf; in ps_main()