]> Zhao Yanbai Git Server - minix.git/commitdiff
Added _mapdriver5.c.
authorPhilip Homburg <philip@cs.vu.nl>
Tue, 7 Aug 2007 12:02:38 +0000 (12:02 +0000)
committerPhilip Homburg <philip@cs.vu.nl>
Tue, 7 Aug 2007 12:02:38 +0000 (12:02 +0000)
lib/other/Makefile.in
lib/other/_mapdriver5.c [new file with mode: 0644]

index 0528a068bbb95b5aec98de68c93d5cf3f1f23521..0d7356772600eeb3970bc5a9980dd6675a9996f5 100644 (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 \
diff --git a/lib/other/_mapdriver5.c b/lib/other/_mapdriver5.c
new file mode 100644 (file)
index 0000000..7f3051b
--- /dev/null
@@ -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);
+}
+