Artifact f1bdb07ea2cdf164dc0f298b6c6fc76b11b10deab2bf3ced0de9d85a4101ac49:
- File kcore/testbin.exe.c — 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: 308) [annotate] [blame] [check-ins using]
#include <k/core.h>
#include <k/mem.h>
#include <k/io.h>
#include <k/magic.h>
kbad entry(kenv e) {
const char msg[] = "hello from libk\n";
ksraw ptr = { Kmsz(msg), msg };
bool maybe = true;
maybe = no;
if (kiosend(e.std, ptr, null) == kiocond_ok) {
return kbad_ok;
} else {
return kbad_io;
}
}