Differences From Artifact [6007ea2ce5]:
- File kcore/boot.c — part of check-in [a14ceee056] at 2019-06-27 21:39:17 on branch trunk — development milestone (user: lexi, size: 361) [annotate] [blame] [check-ins using]
- File kcore/boot.rt.c — part of check-in [d27f92e3b7] at 2019-06-28 04:32:40 on branch trunk — restructure file naming conventions and conclusively fix longstanding architectural build system problems with loads and loads of variables and a shit ton of function calls (user: lexi, size: 361) [annotate] [blame] [check-ins using]
To Artifact [a5bf4923b7]:
- File kcore/boot.rt.c — part of check-in [f0f16493ca] at 2019-08-21 03:44:37 on branch trunk — make crt behave as a C runtime launcher should; comment code thoroughly (user: lexi, size: 447) [annotate] [blame] [check-ins using]
- File mod/kcore/boot.rt.c — 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: 447) [annotate] [blame] [check-ins using]
1 1 #include <k/core.h> 2 2 extern stat entry(kenv); 3 3 4 -stat _boot(unsigned int argc, char** argv) { 4 +unsigned long long 5 +_boot(unsigned int argc, /* argument count */ 6 + char** argv, /* arguments */ 7 + char** envp /* environment */ ) { 5 8 kenv e = { 6 - // todo: determine terminal class and set term vs ansi correctly! 9 + /* TODO: determine terminal class and set term vs ansi correctly! */ 7 10 { {kiostream_term, 0}, {kiostream_term, 1} }, // chan std 8 11 { {kiostream_closed}, {kiostream_term, 2} }, // chan err 9 - argc, argv, 10 - null // no environment yet 12 + argc, argv, 13 + null // needs parsing 11 14 }; 12 15 return entry(e); 13 16 } 14 17