Files
RedBear-OS/tests/unistd/fchdir.c
T
2018-07-22 11:24:50 +02:00

13 lines
256 B
C

#include <unistd.h>
#include <fcntl.h>
#include <stdio.h>
int main (int argc, char** argv) {
int fd = open("..", 0, 0);
int status;
status = fchdir(fd);
printf("fchdir exited with status code %d\n", status);
close(fd);
return 0;
}