minix/lib/other/_mapdriver5.c

23 lines
370 B
C
Raw Normal View History

2007-08-07 14:02:38 +02:00
#include <lib.h>
#define mapdriver5 _mapdriver5
#include <unistd.h>
PUBLIC int mapdriver5(label, len, major, dev_style, force)
char *label;
size_t len;
int major;
int dev_style;
int force;
{
message m;
m.m2_p1 = label;
m.m2_l1 = len;
m.m2_i1 = major;
m.m2_i2 = dev_style;
m.m2_i3 = force;
if (_syscall(FS, MAPDRIVER, &m) < 0) return(-1);
return(0);
}