put back rmtioctl in case someone is using it
authorKirk McKusick <mckusick@ucbvax.Berkeley.EDU>
Tue, 26 Jan 1993 08:08:53 +0000 (00:08 -0800)
committerKirk McKusick <mckusick@ucbvax.Berkeley.EDU>
Tue, 26 Jan 1993 08:08:53 +0000 (00:08 -0800)
SCCS-vsn: sbin/dump/dumprmt.c 5.17

usr/src/sbin/dump/dumprmt.c

index 1aaeb10..256b926 100644 (file)
@@ -6,7 +6,7 @@
  */
 
 #ifndef lint
  */
 
 #ifndef lint
-static char sccsid[] = "@(#)dumprmt.c  5.16 (Berkeley) %G%";
+static char sccsid[] = "@(#)dumprmt.c  5.17 (Berkeley) %G%";
 #endif /* not lint */
 
 #include <sys/param.h>
 #endif /* not lint */
 
 #include <sys/param.h>
@@ -268,6 +268,18 @@ rmtstatus()
        return (&mts);
 }
 
        return (&mts);
 }
 
+int
+rmtioctl(cmd, count)
+       int cmd, count;
+{
+       char buf[256];
+
+       if (count < 0)
+               return (-1);
+       (void)sprintf(buf, "I%d\n%d\n", cmd, count);
+       return (rmtcall("ioctl", buf));
+}
+
 static int
 rmtcall(cmd, buf)
        char *cmd, *buf;
 static int
 rmtcall(cmd, buf)
        char *cmd, *buf;