-
Notifications
You must be signed in to change notification settings - Fork 0
/
error.h
32 lines (26 loc) · 1.3 KB
/
error.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/* See COPYRIGHT for copyright information. */
#ifndef JOS_INC_ERROR_H
#define JOS_INC_ERROR_H
enum {
// Kernel error codes -- keep in sync with list in lib/printfmt.c.
E_UNSPECIFIED = 1, // Unspecified or unknown problem
E_BAD_ENV, // Environment doesn't exist or otherwise
// cannot be used in requested action
E_INVAL, // Invalid parameter
E_NO_MEM, // Request failed due to memory shortage
E_NO_FREE_ENV, // Attempt to create a new environment beyond
// the maximum allowed
E_FAULT, // Memory fault
E_IPC_NOT_RECV, // Attempt to send to env that is not recving
E_EOF, // Unexpected end of file
// File system error codes -- only seen in user-level
E_NO_DISK, // No free space left on disk
E_MAX_OPEN, // Too many files are open
E_NOT_FOUND, // File or block not found
E_BAD_PATH, // Bad path
E_FILE_EXISTS, // File already exists
E_NOT_EXEC, // File not a valid executable
E_NOT_SUPP, // Operation not supported
MAXERROR
};
#endif // !JOS_INC_ERROR_H */