Searched refs:procpid (Results 1 – 8 of 8) sorted by relevance
/external/toybox/toys/posix/ |
D | kill.c | 109 int count, procpid, procsid; local 111 if (!(procpid = atoi(entry->d_name))) continue; 113 snprintf(toybuf, sizeof(toybuf), "/proc/%d/stat", procpid); 116 if (pid == procpid || sid == procsid || procpid == 1) continue; 119 snprintf(toybuf, sizeof(toybuf), "/proc/%d/cmdline", procpid); 124 if (procpid == olist[count]) break; 127 kill(procpid, signum);
|
D | ps.c | 281 struct procpid { struct 502 static char *string_field(struct procpid *tb, struct ofields *field) in string_field() 631 struct procpid *tb = p; in show_ps() 705 struct procpid *tb = (void *)toybuf; in get_ps() 721 struct procpid *tb2 = (struct procpid *)TT.threadparent->extra; in get_ps() 874 struct procpid *ptb = 0; in get_ps() 995 struct procpid *tb; in get_threads() 1211 struct procpid *ta = *(struct procpid **)aa, *tb = *(struct procpid **)bb; in ksort() 1237 static struct procpid **collate_leaves(struct procpid **tb, struct dirtree *dt) in collate_leaves() 1253 static struct procpid **collate(int count, struct dirtree *dt) in collate() [all …]
|
/external/mksh/src/ |
D | jobs.c | 292 if (j->ppid == procpid && in j_exit() 296 (Flag(FLOGIN) && !Flag(FNOHUP) && procpid == kshpid))))) { in j_exit() 317 if (kshpid == procpid && restore_ttypgrp >= 0) { in j_exit() 478 (int)procpid); in exchild() 496 j->ppid = procpid; in exchild() 527 p->pid = cldpid ? cldpid : (procpid = getpid()); in exchild() 727 if (j->ppid == procpid && j->state == PRUNNING) in waitfor() 738 if (j->ppid != procpid) { in waitfor() 922 if (j->ppid == procpid && j->state == PSTOPPED) in j_stopped_running() 925 if (Flag(FLOGIN) && !Flag(FNOHUP) && procpid == kshpid && in j_stopped_running() [all …]
|
D | main.c | 191 kshpid = procpid = getpid(); in chvt_reinit() 1161 if (tp->pid == procpid) in remove_temps() 1681 tp->pid = procpid; in maketemp()
|
D | var.c | 1239 num.u = (mksh_uari_t)procpid; in getspec() 1777 z.pp = procpid; in rndset()
|
D | histrap.c | 819 nhname = shf_smprintf("%s.%d", hname, (int)procpid); in hist_persist_init()
|
D | misc.c | 281 if ((what == OF_CMDLINE || what == OF_SET) && procpid == kshpid) in change_flag()
|
D | sh.h | 862 EXTERN pid_t procpid; /* PID of executing process */ variable
|