Artifact a5bf4923b72b5bc404e81de716008f36dce3f50ac6d27c9a4ba36f93687118b7:
- 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]
#include <k/core.h> extern stat entry(kenv); unsigned long long _boot(unsigned int argc, /* argument count */ char** argv, /* arguments */ char** envp /* environment */ ) { kenv e = { /* TODO: determine terminal class and set term vs ansi correctly! */ { {kiostream_term, 0}, {kiostream_term, 1} }, // chan std { {kiostream_closed}, {kiostream_term, 2} }, // chan err argc, argv, null // needs parsing }; return entry(e); }