《操作系统》的实验代码。
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
611 B

12 years ago
  1. #ifndef __LIBS_ERROR_H__
  2. #define __LIBS_ERROR_H__
  3. /* kernel error codes -- keep in sync with list in lib/printfmt.c */
  4. #define E_UNSPECIFIED 1 // Unspecified or unknown problem
  5. #define E_BAD_PROC 2 // Process doesn't exist or otherwise
  6. #define E_INVAL 3 // Invalid parameter
  7. #define E_NO_MEM 4 // Request failed due to memory shortage
  8. #define E_NO_FREE_PROC 5 // Attempt to create a new process beyond
  9. #define E_FAULT 6 // Memory fault
  10. /* the maximum allowed */
  11. #define MAXERROR 6
  12. #endif /* !__LIBS_ERROR_H__ */