Searched defs:procpid (Results 1 - 3 of 3) sorted by relevance

/external/toybox/toys/posix/
H A Dkill.c110 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);
H A Dps.c298 * 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 *t
[all...]
/external/mksh/src/
H A Dsh.h858 EXTERN pid_t procpid; /* PID of executing process */ variable

Completed in 120 milliseconds