projects
/
oweals
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fail silently on failure to read tar header, its unfortunate that many tar implementa...
[oweals/busybox.git]
/
mkfifo.c
diff --git
a/mkfifo.c
b/mkfifo.c
index 728e1ec2f44d7a01d1278a2698ff46ca49cb7fb7..ca217fa236d2d4919a9559ade6491950c7155543 100644
(file)
--- a/
mkfifo.c
+++ b/
mkfifo.c
@@
-20,10
+20,11
@@
*
*/
*
*/
-#include "busybox.h"
#include <stdio.h>
#include <sys/types.h>
#include <errno.h>
#include <stdio.h>
#include <sys/types.h>
#include <errno.h>
+#include <stdlib.h>
+#include "busybox.h"
extern int mkfifo_main(int argc, char **argv)
{
extern int mkfifo_main(int argc, char **argv)
{
@@
-36,7
+37,7
@@
extern int mkfifo_main(int argc, char **argv)
/* Parse any options */
while (argc > 1) {
if (**argv != '-')
/* Parse any options */
while (argc > 1) {
if (**argv != '-')
-
usage(mkfifo_usage
);
+
show_usage(
);
thisarg = *argv;
thisarg++;
switch (*thisarg) {
thisarg = *argv;
thisarg++;
switch (*thisarg) {
@@
-46,13
+47,13
@@
extern int mkfifo_main(int argc, char **argv)
parse_mode(*argv, &mode);
break;
default:
parse_mode(*argv, &mode);
break;
default:
-
usage(mkfifo_usage
);
+
show_usage(
);
}
argc--;
argv++;
}
if (argc < 1 || *argv[0] == '-')
}
argc--;
argv++;
}
if (argc < 1 || *argv[0] == '-')
-
usage(mkfifo_usage
);
+
show_usage(
);
if (mkfifo(*argv, mode) < 0)
perror_msg_and_die("mkfifo");
return EXIT_SUCCESS;
if (mkfifo(*argv, mode) < 0)
perror_msg_and_die("mkfifo");
return EXIT_SUCCESS;