SCCS-vsn: sbin/dump/dumprmt.c 5.17
-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>
+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;