toaruos/libc/mount.c

15 lines
249 B
C
Raw Normal View History

2018-02-28 09:04:46 +03:00
#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;
}