3 * Copyright (c) 2003,2004 David H. Hovemeyer <daveho@cs.umd.edu>
6 * This is free software. You are permitted to use,
7 * redistribute, and modify it as specified in the file "COPYING".
10 #ifndef GEEKOS_ERRNO_H
11 #define GEEKOS_ERRNO_H
14 * Error codes returned by kernel functions and
15 * system calls. These are meant to be returned to user
16 * code to describe system call failures.
18 #define EUNSPECIFIED -1 /* Unspecified error */
19 #define ENOTFOUND -2 /* No such file or directory */
20 #define EUNSUPPORTED -3 /* Operation not supported */
21 #define ENODEV -4 /* No such device */
22 #define EIO -5 /* Input/output error */
23 #define EBUSY -6 /* Resource in use */
24 #define ENOMEM -7 /* Out of memory */
25 #define ENOFILESYS -8 /* No such filesystem */
26 #define ENAMETOOLONG -9 /* Name too long */
27 #define EINVALIDFS -10 /* Invalid format for filesystem */
28 #define EACCESS -11 /* Permission denied */
29 #define EINVALID -12 /* Invalid argument */
30 #define EMFILE -13 /* File descriptor table full */
31 #define ENOTDIR -14 /* Not a directory */
32 #define EEXIST -15 /* File or directory already exists */
33 #define ENOSPACE -16 /* Out of space on device */
34 #define EPIPE -17 /* Pipe has no reader */
35 #define ENOEXEC -18 /* Invalid executable format */
37 #endif /* GEEKOS_ERRNO_H */