toaruos/libc/mount.c
2018-02-28 15:04:46 +09:00

15 lines
249 B
C

#include <syscall.h>
#include <errno.h>
int mount(char * source, char * target, char * type, unsigned long flags, void * data) {
int r = syscall_mount(source, target, type, flags, data);
if (r < 0) {
errno = -r;
return -1;
}
return r;
}