make vfs & filesystems use failable copying
[minix3.git] / lib / libsys / mapdriver.c
blobe8675608893cd0c8cdbf3295ce5bb06abbd63ace
1 #include "syslib.h"
3 #include <string.h>
4 #include <unistd.h>
6 int
7 mapdriver(char *label, devmajor_t major)
9 message m;
11 memset(&m, 0, sizeof(m));
12 m.VFS_MAPDRIVER_LABEL = label;
13 m.VFS_MAPDRIVER_LABELLEN = strlen(label) + 1;
14 m.VFS_MAPDRIVER_MAJOR = major;
16 return _taskcall(VFS_PROC_NR, VFS_MAPDRIVER, &m);