9a9b91c940
It's finally done.. Signed-off-by: kaguya <vpshinomiya@protonmail.com>
15 lines
277 B
C
15 lines
277 B
C
#include <sys/syscall.h>
|
|
#include <unistd.h>
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
#include <assert.h>
|
|
|
|
int main() {
|
|
char *data = "hello mlibc\n";
|
|
long ret = syscall(SYS_write, 1, data, strlen(data));
|
|
assert(ret == (long)strlen(data));
|
|
|
|
syscall(SYS_exit, 0);
|
|
abort();
|
|
}
|