* same with xv6
[mascara-docs.git] / i386 / standford / 2004 / src / lab2 / inc / error.h
blob9fe29ed07a194c36dad4b781093cffcb1e640719
1 /* See COPYRIGHT for copyright information. */
3 #ifndef _ERROR_H_
4 #define _ERROR_H_
6 // Kernel error codes -- keep in sync with list in kern/printf.c.
7 #define E_UNSPECIFIED 1 // Unspecified or unknown problem
8 #define E_BAD_ENV 2 // Environment doesn't exist or otherwise
9 // cannot be used in requested action
10 #define E_INVAL 3 // Invalid parameter
11 #define E_NO_MEM 4 // Request failed due to memory shortage
12 #define E_NO_FREE_ENV 5 // Attempt to create a new environment beyond
13 // the maximum allowed
14 #define E_IPC_NOT_RECV 6 // Attempt to send to env that is not recving.
15 #define E_EOF 7 // Unexpected end of file
17 #define MAXERROR 7
19 #endif // _ERROR_H_