kern

diff include/kdef.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 083849df660b
line diff
     1.1 --- a/include/kdef.h	Thu Dec 08 18:19:35 2011 +0200
     1.2 +++ b/include/kdef.h	Fri Dec 09 13:44:15 2011 +0200
     1.3 @@ -32,6 +32,8 @@
     1.4  #define EAGAIN		1
     1.5  #define EINVAL		2
     1.6  #define ECHILD		3
     1.7 +
     1.8 +#define EBUG		255	/* not implemented yet */
     1.9  #endif	/* errno.h */
    1.10  
    1.11  
    1.12 @@ -47,8 +49,16 @@
    1.13  #define SYS_WAITPID		4
    1.14  #define SYS_GETPID		5
    1.15  #define SYS_GETPPID		6
    1.16 +#define SYS_MOUNT		7
    1.17 +#define SYS_UMOUNT		8
    1.18 +#define SYS_OPEN		9
    1.19 +#define SYS_CLOSE		10
    1.20 +#define SYS_READ		11
    1.21 +#define SYS_WRITE		12
    1.22 +#define SYS_LSEEK		13
    1.23  
    1.24 -#define NUM_SYSCALLS	7
    1.25 +/* keep this one more than the last syscall */
    1.26 +#define NUM_SYSCALLS	14
    1.27  
    1.28  #endif	/* syscall.h */
    1.29