mirror of
git://git.suckless.org/ubase
synced 2024-12-20 05:40:37 +00:00
e84531958e
Fix missing break in tty.c as well.
35 lines
753 B
C
35 lines
753 B
C
/* See LICENSE file for copyright and license details. */
|
|
struct procstat {
|
|
int pid;
|
|
char comm[PATH_MAX + 2]; /* + 2 for '(' and ')' */
|
|
unsigned char state;
|
|
int ppid;
|
|
int pgrp;
|
|
int sid;
|
|
int tty_nr;
|
|
int tpgid;
|
|
unsigned flags;
|
|
unsigned long minflt;
|
|
unsigned long cminflt;
|
|
unsigned long majflt;
|
|
unsigned long cmajflt;
|
|
unsigned long utime;
|
|
unsigned long stime;
|
|
long cutime;
|
|
long cstime;
|
|
long priority;
|
|
long nice;
|
|
long num_threads;
|
|
long itrealvalue;
|
|
unsigned long long starttime;
|
|
unsigned long vsize;
|
|
long rss;
|
|
long rsslim;
|
|
};
|
|
|
|
int parsecmdline(pid_t pid, char *buf, size_t siz);
|
|
int parsestat(pid_t pid, struct procstat *ps);
|
|
int proceuid(pid_t pid, uid_t *euid);
|
|
int procuid(pid_t pid, uid_t *euid);
|
|
int validps(const char *path);
|