Files
RedBear-OS/tests/unistd/fsync.c
T
Tibor Nagy 4381bb2a22 tests: Remove redundant return statements
When the execution reaches the end of the main functions, they implicitly return a successful status.
2019-02-20 21:09:03 +01:00

12 lines
221 B
C

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