blob: 2760df44f79c85c3091053735974978d7bbaffa5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#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();
}
|