toaruos/libc/unistd/truncate.c
2021-03-19 11:25:10 +09:00

10 lines
143 B
C

#include <unistd.h>
#include <errno.h>
#include <sys/types.h>
int truncate(const char * path, off_t length) {
errno = EINVAL;
return -1;
}