Added _mapdriver5.c.
This commit is contained in:
parent
4d2f56daf6
commit
1f02168ce7
2 changed files with 27 additions and 4 deletions
|
@ -5,24 +5,25 @@ CFLAGS="-O -D_MINIX -D_POSIX_SOURCE -I../../servers"
|
||||||
LIBRARIES=libc
|
LIBRARIES=libc
|
||||||
|
|
||||||
libc_FILES=" \
|
libc_FILES=" \
|
||||||
|
__pm_findproc.c \
|
||||||
_brk.c \
|
_brk.c \
|
||||||
_sbrk.c \
|
|
||||||
_cprofile.c \
|
_cprofile.c \
|
||||||
_devctl.c \
|
_devctl.c \
|
||||||
__pm_findproc.c \
|
|
||||||
_getdents.c \
|
_getdents.c \
|
||||||
_getnpid.c \
|
_getnpid.c \
|
||||||
_getsigset.c \
|
|
||||||
_getnprocnr.c \
|
_getnprocnr.c \
|
||||||
_getpprocnr.c \
|
_getpprocnr.c \
|
||||||
_getprocnr.c \
|
_getprocnr.c \
|
||||||
|
_getsigset.c \
|
||||||
_getsysinfo.c \
|
_getsysinfo.c \
|
||||||
_lseek64.c \
|
_lseek64.c \
|
||||||
|
_mapdriver5.c \
|
||||||
_reboot.c \
|
_reboot.c \
|
||||||
|
_sbrk.c \
|
||||||
_seekdir.c \
|
_seekdir.c \
|
||||||
_sysuname.c \
|
|
||||||
_sprofile.c \
|
_sprofile.c \
|
||||||
_svrctl.c \
|
_svrctl.c \
|
||||||
|
_sysuname.c \
|
||||||
asynchio.c \
|
asynchio.c \
|
||||||
basename.c \
|
basename.c \
|
||||||
bcmp.c \
|
bcmp.c \
|
||||||
|
|
22
lib/other/_mapdriver5.c
Normal file
22
lib/other/_mapdriver5.c
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
#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);
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue