blob: 2a9287514d6534f8d44a616a05d4a3618675e507 [file] [log] [blame]
Rich Felker0b44a032011-02-12 00:22:29 -05001#ifndef _SYS_PROCFS_H
2#define _SYS_PROCFS_H
3#ifdef __cplusplus
4extern "C" {
5#endif
6
7#include <sys/time.h>
8#include <sys/types.h>
9#include <sys/user.h>
10
Rich Felker0b44a032011-02-12 00:22:29 -050011struct elf_siginfo {
12 int si_signo;
13 int si_code;
14 int si_errno;
15};
16
17struct elf_prstatus {
18 struct elf_siginfo pr_info;
19 short int pr_cursig;
20 unsigned long int pr_sigpend;
21 unsigned long int pr_sighold;
22 pid_t pr_pid;
23 pid_t pr_ppid;
24 pid_t pr_pgrp;
25 pid_t pr_sid;
26 struct timeval pr_utime;
27 struct timeval pr_stime;
28 struct timeval pr_cutime;
29 struct timeval pr_cstime;
30 elf_gregset_t pr_reg;
31 int pr_fpvalid;
32};
33
Rich Felker0b44a032011-02-12 00:22:29 -050034#define ELF_PRARGSZ 80
35
36struct elf_prpsinfo
Rich Felker093288d2016-07-03 14:38:53 -040037{
Rich Felker0b44a032011-02-12 00:22:29 -050038 char pr_state;
39 char pr_sname;
40 char pr_zomb;
41 char pr_nice;
42 unsigned long int pr_flag;
Rich Felker73f5b092014-03-08 00:50:19 -050043#if UINTPTR_MAX == 0xffffffff
Rich Felker0b44a032011-02-12 00:22:29 -050044 unsigned short int pr_uid;
45 unsigned short int pr_gid;
46#else
47 unsigned int pr_uid;
48 unsigned int pr_gid;
49#endif
50 int pr_pid, pr_ppid, pr_pgrp, pr_sid;
51 char pr_fname[16];
52 char pr_psargs[ELF_PRARGSZ];
53};
54
Rich Felker0b44a032011-02-12 00:22:29 -050055typedef void *psaddr_t;
56typedef elf_gregset_t prgregset_t;
57typedef elf_fpregset_t prfpregset_t;
Rich Felker0b44a032011-02-12 00:22:29 -050058typedef pid_t lwpid_t;
59typedef struct elf_prstatus prstatus_t;
60typedef struct elf_prpsinfo prpsinfo_t;
61
Rich Felker0b44a032011-02-12 00:22:29 -050062#ifdef __cplusplus
63}
64#endif
65#endif