X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?p=palacios.git;a=blobdiff_plain;f=test%2Fgeekos_test_vm%2Finclude%2Fgeekos%2Ferrno.h;fp=test%2Fgeekos_test_vm%2Finclude%2Fgeekos%2Ferrno.h;h=3159eae728869931135576b6ad35e69c07b06098;hp=0000000000000000000000000000000000000000;hb=a70930549d1b741704dd7af4e6bb0e89f6f8a519;hpb=afb634a80f946634454a5d067a92aa600227bd93 diff --git a/test/geekos_test_vm/include/geekos/errno.h b/test/geekos_test_vm/include/geekos/errno.h new file mode 100644 index 0000000..3159eae --- /dev/null +++ b/test/geekos_test_vm/include/geekos/errno.h @@ -0,0 +1,37 @@ +/* + * GeekOS error codes + * Copyright (c) 2003,2004 David H. Hovemeyer + * $Revision: 1.1 $ + * + * This is free software. You are permitted to use, + * redistribute, and modify it as specified in the file "COPYING". + */ + +#ifndef GEEKOS_ERRNO_H +#define GEEKOS_ERRNO_H + +/* + * Error codes returned by kernel functions and + * system calls. These are meant to be returned to user + * code to describe system call failures. + */ +#define EUNSPECIFIED -1 /* Unspecified error */ +#define ENOTFOUND -2 /* No such file or directory */ +#define EUNSUPPORTED -3 /* Operation not supported */ +#define ENODEV -4 /* No such device */ +#define EIO -5 /* Input/output error */ +#define EBUSY -6 /* Resource in use */ +#define ENOMEM -7 /* Out of memory */ +#define ENOFILESYS -8 /* No such filesystem */ +#define ENAMETOOLONG -9 /* Name too long */ +#define EINVALIDFS -10 /* Invalid format for filesystem */ +#define EACCESS -11 /* Permission denied */ +#define EINVALID -12 /* Invalid argument */ +#define EMFILE -13 /* File descriptor table full */ +#define ENOTDIR -14 /* Not a directory */ +#define EEXIST -15 /* File or directory already exists */ +#define ENOSPACE -16 /* Out of space on device */ +#define EPIPE -17 /* Pipe has no reader */ +#define ENOEXEC -18 /* Invalid executable format */ + +#endif /* GEEKOS_ERRNO_H */