#include <stdio.h>
Go to the source code of this file.
◆ pids_cmdline()
int pids_cmdline |
( |
int |
pid, |
|
|
char * |
cmdline |
|
) |
| |
Definition at line 6 of file darwin.c.
static static fork const void static count close
static static fork const void static count static fd const char const char static newpath char char char static envp time_t static t const char static mode static whence const char static dir time_t static t unsigned static seconds const char struct utimbuf static buf static inc pid
#define rz_xread(fd, buf, count)
static const z80_opcode fd[]
References close, fd, O_RDONLY, pid, rz_xread, and sprintf.
Referenced by pids_sons_of_r().
◆ pids_sons_of_r()
Definition at line 21 of file darwin.c.
22 int p, mola,
tmp,
n = 0;
32 dh = opendir(
"/proc/");
38 p = atoi(
file->d_name);
44 fscanf(
fd,
"%d %s %s %d",
45 &
tmp, tmp2, tmp3, &mola);
50 cons_printf(
" `- %d : %s (%s)\n",
51 p, tmp2, (tmp3[0] ==
'S') ?
"sleeping" : (tmp3[0] ==
'T') ?
"stopped"
54 if (recursive <
limit) {
int pids_sons_of_r(int pid, int recursive, int limit)
int pids_cmdline(int pid, char *cmdline)
static static fork const void static count static fd const char static mode const char static pathname const char static path const char static dev const char static group static getpid static getuid void void static data static pause const char static mode static sync const char const char static newpath const char static pathname unsigned long static filedes void static end_data_segment static handler static getegid char static len static pgid const char static path static newfd static getpgrp static euid const sigset_t static mask const char static len const gid_t static list const char const char static newpath const char static library readdir
static uint32_t const uint8_t uint32_t uint32_t limit
References fd, file, benchmark::FILE, limit, n, p, pid, pids_cmdline(), readdir, sprintf, and autogen_x86imm::tmp.