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

move process state definition in interface headers

parent 7f699021
Loading
Loading
Loading
Loading
+13 −1
Original line number Diff line number Diff line
@@ -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

+0 −13
Original line number Diff line number Diff line
@@ -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