+ if (isatty(fileno(stdin))) {
+ printf("Format %s to %s density (y/n)? ",
+ argv[filarg], idens ? "double" : "single");
+ i = c = getchar();
+ while (c != '\n' && c != EOF)
+ c = getchar();
+ if (i != 'y')
+ exit(0);
+ } else
+ printf("Formatting %s to %s density\n",
+ argv[filarg], idens ? "double" : "single");
+ /*
+ * Change the ioctl command when dkio.h has
+ * been finished.
+ */
+ if (ioctl(fd, RXIOC_FORMAT, &idens) == 0)
+ exit(0);
+ else {
+ perror(devname);
+ exit(1);