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)
476 MakeProcName(char *procname, pid_t pid)
478 (void) sprintf(procname, "/proc/%d", (int)pid);
487 char procname[64]; /* /proc/nnnnn/fname */
492 MakeProcName(procname, cp->pid);
493 fname = procname + strlen(procname);
500 if ((fd = open(procname, omode, 0)) < 0 ||
505 if ((fd = open(procname, O_WRONLY, 0)) < 0 ||
510 if ((fd = open(procname, O_RDONLY, 0)) < 0 ||
710 char procname[64]; /* /proc/<pid>/psinfo */
713 MakeProcName(procname, cp->pid);
714 (void) strcat(procname, "/psinfo");
715 if ((fd = open(procname, O_RDONLY, 0)) < 0) {
732 char procname[64]; /* /proc/<pid>/sigact */
737 MakeProcName(procname, cp->pid);
738 (void) strcat(procname, "/sigact");
740 if ((fd = open(procname, O_RDONLY, 0)) >= 0) {