toaruos/libc/sys/mount.c

11 lines
305 B
C

#include <syscall.h>
#include <syscall_nums.h>
#include <errno.h>
DEFN_SYSCALL5(mount, SYS_MOUNT, char *, char *, char *, unsigned long, void *);
int mount(char * source, char * target, char * type, unsigned long flags, void * data) {
__sets_errno(syscall_mount(source, target, type, flags, data));
}