Differences From Artifact [e3e3209cc1]:
- File mod/kcore/boot.rt.c — part of check-in [c0e04b9015] at 2019-10-30 03:34:34 on branch trunk — begin work on kcli module; continue to build out infra for error explanation function (user: lexi, size: 1184) [annotate] [blame] [check-ins using]
To Artifact [a8282db34a]:
- File mod/kcore/boot.rt.c — part of check-in [927371b674] at 2019-10-31 03:44:25 on branch trunk — add usage display for parameters and command line switches for kcli_set, the structure used to define command line syntax for the parser; add more string & buffer functions (user: lexi, size: 1259) [annotate] [blame] [check-ins using]
1 1 #include <k/core.h> 2 2 #include <k/type.h> 3 3 extern stat entry(kenv); 4 4 5 +const char* _k_internal_binary_name; 6 + 5 7 unsigned long long 6 8 _boot(unsigned int argc, /* argument count */ 7 9 const char** argv, /* arguments */ 8 10 char** envp /* environment */ ) { 11 + 12 + _k_internal_binary_name = argv[0]; 9 13 10 14 envp ++; /* envp seems to point at a leading null; 11 15 this is probably a sign of breakage but 12 16 i don't know what else to do about it for 13 17 the moment. */ 14 18 15 19 char** ep;