aruu

[MIRROR] Actual replacement for Busybox | suckless
git clone https://git.daat.foo/aruu.git
Log | Files | Refs | README | LICENSE

commit 3c63756e14f3b28fa944ada0f743043ea92e7b71
parent 23456faa5135fe30fe440ce22e081936f94d7a59
Author: xplshn <anto@xplshn.com.ar>
Date:   Mon, 23 Nov 2026 21:27:20 -0300

proc.h stands alone

Diffstat:
Mshared/proc.h | 11+++++++++++
1 file changed, 11 insertions(+), 0 deletions(-)

diff --git a/shared/proc.h b/shared/proc.h @@ -1,4 +1,13 @@ /* see LICENSE file for copyright and license details */ +#ifndef ARUU_PROC_H +#define ARUU_PROC_H + +#include <sys/types.h> + +#include <limits.h> +#include <stddef.h> +#include <time.h> + struct procstat { int pid; char comm[PATH_MAX + 2]; /* + 2 for '(' and ')' */ @@ -71,3 +80,5 @@ int proc_info(pid_t pid, struct procinfo *p); int proc_args(pid_t pid, char *buf, size_t n); /* the terminal's name as ps shows it: pts/3, tty1 or ? for none */ void proc_ttyname(unsigned major, unsigned minor, char *buf, size_t n); + +#endif