ac9ab099c8
- clean up kernel section of minix/com.h somewhat - remove ALLOCMEM and VM_ALLOCMEM calls - remove non-safecopy and minix-vmd support from Inet - remove SYS_VIRVCOPY and SYS_PHYSVCOPY calls - remove obsolete segment encoding in SYS_SAFECOPY* - remove DEVCTL call, svrctl(FSDEVUNMAP), map_driverX - remove declarations of unimplemented svrctl requests - remove everything related to swapping to disk - remove floppysetup.sh - remove traces of rescue device - update DESCRIBE.sh with new devices - some other small changes
22 lines
380 B
C
22 lines
380 B
C
#include <lib.h>
|
|
#define mapdriver _mapdriver
|
|
#include <string.h>
|
|
#include <unistd.h>
|
|
|
|
|
|
PUBLIC int mapdriver(label, major, dev_style, force)
|
|
char *label;
|
|
int major;
|
|
int dev_style;
|
|
int force;
|
|
{
|
|
message m;
|
|
m.m2_p1 = label;
|
|
m.m2_l1 = strlen(label);
|
|
m.m2_i1 = major;
|
|
m.m2_i2 = dev_style;
|
|
m.m2_i3 = force;
|
|
if (_syscall(FS, MAPDRIVER, &m) < 0) return(-1);
|
|
return(0);
|
|
}
|
|
|