Support for tar -z option for uncompressing only
[oweals/busybox.git] / mkfifo.c
index f701a97d58f50b8124196507baf52be7d4145689..ef4a5256f4ec0327469160ea58eb128c732d7771 100644 (file)
--- a/mkfifo.c
+++ b/mkfifo.c
  *
  */
 
-#include "internal.h"
+#include "busybox.h"
 #include <stdio.h>
 #include <sys/types.h>
-#include <sys/stat.h>
 #include <errno.h>
 
-static const char mkfifo_usage[] = "mkfifo [OPTIONS] name\n"
-#ifndef BB_FEATURE_TRIVIAL_HELP
-       "\nCreates a named pipe (identical to 'mknod name p')\n\n"
-       "Options:\n"
-       "\t-m\tcreate the pipe using the specified mode (default a=rw)\n"
-#endif
-       ;
-
 extern int mkfifo_main(int argc, char **argv)
 {
        char *thisarg;
@@ -64,7 +55,7 @@ extern int mkfifo_main(int argc, char **argv)
                usage(mkfifo_usage);
        if (mkfifo(*argv, mode) < 0) {
                perror("mkfifo");
-               exit(255);
+               return EXIT_FAILURE;
        }
-       return(TRUE);
+       return EXIT_SUCCESS;
 }