#ifndef _PROC_H
#define _PROC_H
struct string_table_struct;
struct file_struct;
struct map_info_struct;
struct interrupted_instruction_struct;
void proc_init();
void proc_print_info();
int spawn_init();
int proc_get_pid_table(int **pid_table, unsigned int *size);
int proc_get_ppid_pid(int pid, int *ppid);
int proc_get_pgid_pid(int pid, int *pgid);
int proc_get_state_pid(int pid, int *state);
int proc_get_cmdline_pid(int pid, struct string_table_struct *cmdline);
int proc_get_wd_pid(int pid, struct file_struct **wd);
int proc_get_maps(int pid, struct map_info_struct **map_info_array, unsigned int *count);
int is_orphaned_pg(int pgid);
void signal_pg(int pgid, int sig);
void preempt(const struct interrupted_instruction_struct *interrupted_instruction);
#endif