statx
a bit more. I think that the structure currently is exactly 256 bytes in length, as per the definition here:root@buildroot:~# cat fork_test.c
#include <stdio.h>
#include <sys/types.h>
#include <unistd.h>
#include <errno.h>
int main() {
int p;
int err;
p = fork();
err = errno;
printf("p = %d\n", p);
printf("errno = %d\n", err);
if (p < 0) {
printf("Fork failed\n");
} else if (p == 0) {
printf("Child process\n");
} else {
printf("Parent process\n");
}
return 0;
}
root@buildroot:~# ./a.out
p = 193
errno = 0
p = 0
errno = 0
Parent process
Child process
stime
.
mkdir
and rmdir
in the core lcc set. Come to think of it, maybe nice
is also not in the 80% of usage set.