Files
my-os-project2/share/sysdefs/processctl.h

30 lines
525 B
C

#ifndef SHARE_HDRS_PROCESSCTL_H_
#define SHARE_HDRS_PROCESSCTL_H_
#define PROC_ARG_MAX 128
#define PCTL_KILL 0
#define PCTL_SPAWN 1
#define PCTL_POLLSTATE 2
#define PCTL_RUN 3
#define PCTL_GETPID 4
#define PCTL_ARGLEN 5
#define PCTL_ARGV 6
#define PCTL_PLS_SZ 7
#define PCTL_PLS_STAT 8
#if !defined(__ASSEMBLER__)
typedef struct {
uint64_t pid;
char name[0x100];
uint8_t state;
size_t usemem;
} ProcStat;
typedef uint64_t PID_t;
#endif
#endif // SHARE_HDRS_PROCESSCTL_H_