Commit 0b81fd9a authored by Léo Grange's avatar Léo Grange

move process state definition in interface headers

parent 7f699021
......@@ -29,12 +29,24 @@
#define WCONTINUED (1<<2)
// FiXos specific definitions of process status
#define PROCESS_STATE_RUNNING 2
// used at process creation :
#define PROCESS_STATE_CREATE 3
// used after calling exit()
#define PROCESS_STATE_ZOMBIE 5
// sleeping states
#define PROCESS_STATE_STOPPED 4
#define PROCESS_STATE_INTERRUPTIBLE 6
#define PROCESS_STATE_UNINTERRUPTIBLE 7
// process information for user (through sysctl() interfaces)
struct proc_uinfo {
__kernel_pid_t pid;
__kernel_pid_t ppid;
// FIXME state definition here
int state;
int exit_status; // only valid when state is PROCESS_STATE_ZOMBIE
......
......@@ -16,19 +16,6 @@
#include <arch/memory.h>
// process status
#define PROCESS_STATE_RUNNING 2
// used at process creation :
#define PROCESS_STATE_CREATE 3
// used after calling exit()
#define PROCESS_STATE_ZOMBIE 5
// sleeping states
#define PROCESS_STATE_STOPPED 4
#define PROCESS_STATE_INTERRUPTIBLE 6
#define PROCESS_STATE_UNINTERRUPTIBLE 7
// maximum files opened at a time by a process
#define PROCESS_MAX_FILE 12
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment