Searched refs:procpid (Results 1 - 10 of 10) sorted by relevance
/third_party/toybox/porting/liteos_a/toys/posix/ |
H A D | kill.c | 110 int count, procpid, procsid; in kill_main() local 112 if (!(procpid = atoi(entry->d_name))) continue; in kill_main() 114 snprintf(toybuf, sizeof(toybuf), "/proc/%d/stat", procpid); in kill_main() 117 if (pid == procpid || sid == procsid || procpid == 1) continue; in kill_main() 120 snprintf(toybuf, sizeof(toybuf), "/proc/%d/cmdline", procpid); in kill_main() 125 if (procpid == olist[count]) break; in kill_main() 128 kill(procpid, signum); in kill_main()
|
H A D | ps.c | 187 * toybox as a struct procpid. Simple ps calls then pass toybuf directly to 191 * struct procpid contains a slot[] array of 64 bit values, with the following 238 struct procpid { struct 256 * slot: which slot[] out of procpid. Negative means it's a string field. 297 // String fields (-1 is procpid->str, rest are str+offset[1-slot]) 459 static char *string_field(struct procpid *tb, struct ofields *field) in string_field() 596 struct procpid *tb = p; in show_ps() 657 // Fills toybuf with struct procpid and either DIRTREE_SAVEs a copy to ->extra 665 // sources for procpid->offset[] data in get_ps() 670 struct procpid *t in get_ps() [all...] |
/third_party/toybox/toys/posix/ |
H A D | kill.c | 116 int count, procpid, procsid; in kill_main() local 118 if (!(procpid = atoi(entry->d_name))) continue; in kill_main() 120 snprintf(toybuf, sizeof(toybuf), "/proc/%d/stat", procpid); in kill_main() 123 if (pid == procpid || sid == procsid || procpid == 1) continue; in kill_main() 126 snprintf(toybuf, sizeof(toybuf), "/proc/%d/cmdline", procpid); in kill_main() 131 if (procpid == olist[count]) break; in kill_main() 134 kill(procpid, signum); in kill_main()
|
H A D | ps.c | 230 * toybox as a struct procpid. Simple ps calls then pass toybuf directly to 234 * struct procpid contains a slot[] array of 64 bit values, with the following 281 struct procpid { struct 299 * slot: which slot[] out of procpid. Negative means it's a string field. 340 // String fields (-1 is procpid->str, rest are str+offset[1-slot]) 502 static char *string_field(struct procpid *tb, struct ofields *field) in string_field() 639 struct procpid *tb = p; in show_ps() 700 // Fills toybuf with struct procpid and either DIRTREE_SAVEs a copy to ->extra 708 // sources for procpid->offset[] data in get_ps() 713 struct procpid *t in get_ps() [all...] |
/third_party/mksh/ |
H A D | jobs.c | 293 if (j->ppid == procpid && in j_exit() 297 (Flag(FLOGIN) && !Flag(FNOHUP) && procpid == kshpid))))) { in j_exit() 318 if (kshpid == procpid && restore_ttypgrp >= 0) { in j_exit() 483 (int)procpid); 501 j->ppid = procpid; 532 p->pid = cldpid ? cldpid : (procpid = getpid()); 732 if (j->ppid == procpid && j->state == PRUNNING) 743 if (j->ppid != procpid) { 927 if (j->ppid == procpid && j->state == PSTOPPED) 930 if (Flag(FLOGIN) && !Flag(FNOHUP) && procpid [all...] |
H A D | main.c | 196 kshpid = procpid = getpid(); in chvt_reinit() 1208 if (tp->pid == procpid) in remove_temps() 1762 tp->pid = procpid; in maketemp()
|
H A D | var.c | 1272 num.u = (mksh_uari_t)procpid; in getspec() 1810 z.pp = procpid; in rndset()
|
H A D | histrap.c | 822 nhname = shf_smprintf("%s.%d", hname, (int)procpid); in hist_persist_init()
|
H A D | misc.c | 319 if ((what == OF_CMDLINE || what == OF_SET) && procpid == kshpid) in change_flag()
|
H A D | sh.h | 910 EXTERN pid_t procpid; /* PID of executing process */ variable
|
Completed in 21 milliseconds