12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- #include "libbb.h"
- #include "libcoreutils/coreutils.h"
- int mkfifo_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
- int mkfifo_main(int argc UNUSED_PARAM, char **argv)
- {
- mode_t mode;
- int retval = EXIT_SUCCESS;
- mode = getopt_mk_fifo_nod(argv);
- argv += optind;
- if (!*argv) {
- bb_show_usage();
- }
- do {
- if (mkfifo(*argv, mode) < 0) {
- bb_simple_perror_msg(*argv);
- retval = EXIT_FAILURE;
- }
- } while (*++argv);
- return retval;
- }
|