kern
diff src/proc.h @ 90:7ff2b4971216
started work on the filesystem
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Fri, 09 Dec 2011 13:44:15 +0200 |
parents | 3941e82b07f2 |
children | 07fe6a614185 |
line diff
1.1 --- a/src/proc.h Thu Dec 08 18:19:35 2011 +0200 1.2 +++ b/src/proc.h Fri Dec 09 13:44:15 2011 +0200 1.3 @@ -4,8 +4,10 @@ 1.4 #include <inttypes.h> 1.5 #include "asmops.h" 1.6 #include "rbtree.h" 1.7 +#include "file.h" 1.8 1.9 #define MAX_PROC 128 1.10 +#define MAX_FD 64 1.11 1.12 struct context { 1.13 /*struct registers regs;*/ /* saved general purpose registers */ 1.14 @@ -46,6 +48,9 @@ 1.15 1.16 struct context ctx; 1.17 1.18 + /* open files */ 1.19 + struct file files[MAX_FD]; 1.20 + 1.21 struct process *child_list; 1.22 1.23 struct process *next, *prev; /* for the scheduler queues */