New message added to messages.c: full_version
[oweals/busybox.git] / fdflush.c
index 81f0472c6400308a4b0d36308c291f7c8823ad31..6bc3e7d66cc05543f5dbd16c18c38c9ac440aa7f 100644 (file)
--- a/fdflush.c
+++ b/fdflush.c
 #include "internal.h"
 #include <stdio.h>
 #include <sys/ioctl.h>
-#include <linux/fd.h>
 #include <fcntl.h>
 
+/* From <linux/fd.h> */
+#define FDFLUSH  _IO(2,0x4b)
 
 extern int fdflush_main(int argc, char **argv)
 {
        int value;
        int fd;
 
-       if (argc <= 1 || **(++argv) == '-') {
-               usage("fdflush DEVICE\n"
-#ifndef BB_FEATURE_TRIVIAL_HELP
-                               "\nForces floppy disk drive to detect disk change\n"
-#endif
-                               );
-       }
+       if (argc <= 1 || **(++argv) == '-')
+               usage(fdflush_usage);
 
        fd = open(*argv, 0);
        if (fd < 0) {