@@ -5,8 +5,11 @@ * of "magical numbers" used to signal or describe * various states, messages, and errors. suggestions are * welcome. */ +#ifndef KImagic +#define KImagic + #include typedef enum kbad { // values to be returned by an entry function @@ -13,8 +16,12 @@ kbad_ok = 0, /* the requested operation completed * successfully */ + kbad_mem = 1, + /* the system does not have enough free + * memory to complete the requested operation */ + /* these are synchronized with freebsd's existing * sysexit.h conventions. */ kbad_usage = 64, /* # fbsd EX_USAGE @@ -64,4 +71,6 @@ kbad_conf = 78, /* # fbsd EX_CONFIG * your configuration is fucked */ } kbad; + +#endif