/external/toybox/toys/posix/ |
kill.c | 110 int count, procpid, procsid; local 112 if (!(procpid = atoi(entry->d_name))) continue; 114 snprintf(toybuf, sizeof(toybuf), "/proc/%d/stat", procpid); 117 if (pid == procpid || sid == procsid || procpid == 1) continue; 120 snprintf(toybuf, sizeof(toybuf), "/proc/%d/cmdline", procpid); 125 if (procpid == olist[count]) break; 128 kill(procpid, signum);
|
ps.c | 298 * toybox as a struct procpid. Simple ps calls then pass toybuf directly to 302 * struct procpid contains a slot[] array of 64 bit values, with the following 348 struct procpid { struct 366 * slot: which slot[] out of procpid. Negative means it's a string field. 393 // String fields (-1 is procpid->str, rest are str+offset[1-slot]) 466 static char *string_field(struct procpid *tb, struct ofields *field) 595 struct procpid *tb = p; 656 // Fills toybuf with struct procpid and either DIRTREE_SAVEs a copy to ->extra 664 // sources for procpid->offset[] data 669 struct procpid *tb = (void *)toybuf [all...] |
/external/mksh/src/ |
jobs.c | 298 if (j->ppid == procpid && 302 (Flag(FLOGIN) && !Flag(FNOHUP) && procpid == kshpid))))) { 323 if (kshpid == procpid && restore_ttypgrp >= 0) { 484 (int)procpid); 502 j->ppid = procpid; 533 p->pid = cldpid ? cldpid : (procpid = getpid()); 733 if (j->ppid == procpid && j->state == PRUNNING) 744 if (j->ppid != procpid) { 928 if (j->ppid == procpid && j->state == PSTOPPED) 931 if (Flag(FLOGIN) && !Flag(FNOHUP) && procpid == kshpid & [all...] |
main.c | 190 kshpid = procpid = getpid(); 1160 if (tp->pid == procpid) [all...] |
var.c | 1239 num.u = (mksh_uari_t)procpid; [all...] |
histrap.c | 819 nhname = shf_smprintf("%s.%d", hname, (int)procpid); [all...] |
misc.c | 281 if ((what == OF_CMDLINE || what == OF_SET) && procpid == kshpid) [all...] |
sh.h | 858 EXTERN pid_t procpid; /* PID of executing process */ variable [all...] |