Lines Matching refs:procname
168 char procname[64]; /* /proc/<pid>/ctl */
171 MakeProcName(procname, getpid());
172 (void) strcat(procname, "/ctl");
173 if ((fd = open(procname, O_WRONLY, 0)) < 0)
468 MakeProcName(char *procname, pid_t pid)
470 (void) sprintf(procname, "/proc/%ld", pid);
479 char procname[64]; /* /proc/nnnnn/fname */
484 MakeProcName(procname, cp->pid);
485 fname = procname + strlen(procname);
492 if ((fd = open(procname, omode, 0)) < 0 ||
497 if ((fd = open(procname, O_WRONLY, 0)) < 0 ||
502 if ((fd = open(procname, O_RDONLY, 0)) < 0 ||
700 char procname[64]; /* /proc/<pid>/psinfo */
703 MakeProcName(procname, cp->pid);
704 (void) strcat(procname, "/psinfo");
705 if ((fd = open(procname, O_RDONLY, 0)) < 0) {
722 char procname[64]; /* /proc/<pid>/sigact */
727 MakeProcName(procname, cp->pid);
728 (void) strcat(procname, "/sigact");
730 if ((fd = open(procname, O_RDONLY, 0)) >= 0) {