Differences From Artifact [1f7f63c3e2]:
- File kcore/magic.h — part of check-in [e794c5edef] at 2019-06-29 09:31:50 on branch trunk — add a bunch of code, port the header mechanism to gpp; add a fuckton of definitions and compatibility header code; notably, add core function kstop and x86.lin.{32,64} impl. update docs accordingly (user: lexi, size: 1860) [annotate] [blame] [check-ins using]
To Artifact [a7232aabca]:
- File kcore/magic.h — part of check-in [6479e060a3] at 2019-07-26 09:51:02 on branch trunk — major update. fix ridiculous old type size determination mechanism. mmap is still broken and i'm not sure why; the syscall does not appear to be going through correctly - see posix_mmap, kmheapa, and kcore/testbin.exe.fn (user: lexi, size: 2010) [annotate] [blame] [check-ins using]
- File mod/kcore/magic.h — part of check-in [14172a910a] at 2019-08-21 06:00:24 on branch trunk — move modules to a subdirectory in order to keep the directory tree organized and make room for OS-specific build files (user: lexi, size: 2010) [annotate] [blame] [check-ins using]
4 4 * software. for this reason, we define here a variety 5 5 * of "magical numbers" used to signal or describe 6 6 * various states, messages, and errors. suggestions are 7 7 * welcome. 8 8 */ 9 +#ifndef KImagic 10 +#define KImagic 11 + 9 12 #include <k/type.h> 10 13 11 14 typedef enum kbad { 12 15 // values to be returned by an entry function 13 16 kbad_ok = 0, 14 17 /* the requested operation completed 15 18 * successfully */ 16 19 20 + kbad_mem = 1, 21 + /* the system does not have enough free 22 + * memory to complete the requested operation */ 23 + 17 24 /* these are synchronized with freebsd's existing 18 25 * sysexit.h conventions. */ 19 26 kbad_usage = 64, 20 27 /* # fbsd EX_USAGE 21 28 * a usage screen was displayed to the user ................................................................................ 63 70 * to do the thing requested */ 64 71 kbad_conf = 78, 65 72 /* # fbsd EX_CONFIG 66 73 * your configuration is fucked */ 67 74 } kbad; 75 + 76 +#endif