get_proc_info () syscall, CE procinfo command
This commit is contained in:
18
include/proc_info.h
Normal file
18
include/proc_info.h
Normal file
@@ -0,0 +1,18 @@
|
||||
#ifndef _PROC_INFO_H
|
||||
#define _PROC_INFO_H
|
||||
|
||||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
#include <path_defs.h>
|
||||
|
||||
struct proc_info {
|
||||
int pid;
|
||||
int exec_pid;
|
||||
uint32_t flags;
|
||||
int cpu;
|
||||
int state;
|
||||
int pgid;
|
||||
char name[PATH_MAX + VOLUME_MAX];
|
||||
};
|
||||
|
||||
#endif // _PROC_INFO_H
|
||||
@@ -37,5 +37,6 @@
|
||||
#define SYS_GET_SELF_PID 34
|
||||
#define SYS_STREAM_WRITE 35
|
||||
#define SYS_STREAM_READ 36
|
||||
#define SYS_GET_PROC_INFO 37
|
||||
|
||||
#endif // _M_SYSCALL_DEFS_H
|
||||
|
||||
Reference in New Issue
Block a user