Introduction
Introduction Statistics Contact Development Disclaimer Help
proc.h - ubase - suckless linux base utils
git clone git://git.suckless.org/ubase
Log
Files
Refs
README
LICENSE
---
proc.h (883B)
---
1 /* See LICENSE file for copyright and license details. */
2 struct procstat {
3 int pid;
4 char comm[PATH_MAX + 2]; /* + 2 for '(' and ')' */
5 unsigned char state;
6 int ppid;
7 int pgrp;
8 int sid;
9 int tty_nr;
10 int tpgid;
11 unsigned flags;
12 unsigned long minflt;
13 unsigned long cminflt;
14 unsigned long majflt;
15 unsigned long cmajflt;
16 unsigned long utime;
17 unsigned long stime;
18 long cutime;
19 long cstime;
20 long priority;
21 long nice;
22 long num_threads;
23 long itrealvalue;
24 unsigned long long starttime;
25 unsigned long vsize;
26 long rss;
27 long rsslim;
28 };
29
30 struct procstatus {
31 uid_t uid;
32 uid_t euid;
33 gid_t gid;
34 gid_t egid;
35 };
36
37 int parsecmdline(pid_t pid, char *buf, size_t siz);
38 int parsestat(pid_t pid, struct procstat *ps);
39 int parsestatus(pid_t pid, struct procstatus *pstatus);
40 int proceuid(pid_t pid, uid_t *euid);
41 int procuid(pid_t pid, uid_t *euid);
42 int pidfile(const char *file);
You are viewing proxied material from suckless.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.