Differences From Artifact [a4a4905883]:
- File kcore/testbin.exe.c — part of check-in [5393623a84] at 2019-08-18 11:34:59 on branch trunk — add memory functions (user: lexi, size: 661) [annotate] [blame] [check-ins using]
To Artifact [c4d82c1a4a]:
- File kcore/testbin.exe.c — part of check-in [a8d93823f1] at 2019-08-18 13:42:35 on branch trunk — add functions, generate C syscall table (user: lexi, size: 529) [annotate] [blame] [check-ins using]
- File mod/kcore/testbin.exe.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: 529) [annotate] [blame] [check-ins using]
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
maybe = no;
if (kiosend(e.std, ptr, null) == kiocond_ok) {
/* great, continue */
} else {
return kbad_io;
}
kmptr object = kmheapao(sizeof (struct object) * 16);
if (object.kind == kmkind_fail) return kbad_mem;
/* struct object* block = kmheapa(sizeof (struct object) * 4); */
struct object* block = object.ref;
block[5].a = 5;
if (kmfree(object) != kmcond_ok) return kbad_mem;
return kbad_ok;
}
|
< < < > > | < < > < > |
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
maybe = no;
if (kiosend(e.std, ptr, null) == kiocond_ok) {
/* great, continue */
} else {
return kbad_io;
}
void* region = kmheapa(2048);
if (region == null) return kbad_mem;
kmzero(region,2048);
if (kmheapf(region) >= kmcond_fail) return kbad_mem;
return kbad_ok;
}
|