From 1f02168ce7bb211591307b8c98b4f2956c012f6b Mon Sep 17 00:00:00 2001 From: Philip Homburg Date: Tue, 7 Aug 2007 12:02:38 +0000 Subject: [PATCH] Added _mapdriver5.c. --- lib/other/Makefile.in | 9 +++++---- lib/other/_mapdriver5.c | 22 ++++++++++++++++++++++ 2 files changed, 27 insertions(+), 4 deletions(-) create mode 100644 lib/other/_mapdriver5.c diff --git a/lib/other/Makefile.in b/lib/other/Makefile.in index 0528a068b..0d7356772 100644 --- a/lib/other/Makefile.in +++ b/lib/other/Makefile.in @@ -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 \ diff --git a/lib/other/_mapdriver5.c b/lib/other/_mapdriver5.c new file mode 100644 index 000000000..7f3051b5f --- /dev/null +++ b/lib/other/_mapdriver5.c @@ -0,0 +1,22 @@ +#include +#define mapdriver5 _mapdriver5 +#include + + +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); +} + -- 2.44.0