Added _mapdriver5.c.

This commit is contained in:
Philip Homburg 2007-08-07 12:02:38 +00:00
parent 4d2f56daf6
commit 1f02168ce7
2 changed files with 27 additions and 4 deletions

View file

@ -5,24 +5,25 @@ CFLAGS="-O -D_MINIX -D_POSIX_SOURCE -I../../servers"
LIBRARIES=libc
libc_FILES=" \
__pm_findproc.c \
_brk.c \
_sbrk.c \
_cprofile.c \
_devctl.c \
__pm_findproc.c \
_getdents.c \
_getnpid.c \
_getsigset.c \
_getnprocnr.c \
_getpprocnr.c \
_getprocnr.c \
_getsigset.c \
_getsysinfo.c \
_lseek64.c \
_mapdriver5.c \
_reboot.c \
_sbrk.c \
_seekdir.c \
_sysuname.c \
_sprofile.c \
_svrctl.c \
_sysuname.c \
asynchio.c \
basename.c \
bcmp.c \

22
lib/other/_mapdriver5.c Normal file
View 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);
}