1
0
mirror of git://git.suckless.org/sbase synced 2024-12-23 15:34:38 +00:00
sbase/mkfifo.c

18 lines
430 B
C
Raw Normal View History

2011-05-25 10:00:15 +00:00
/* See LICENSE file for copyright and license details. */
#include <fcntl.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/stat.h>
#include "util.h"
int
main(int argc, char *argv[])
{
while(getopt(argc, argv, "") != -1)
exit(EXIT_FAILURE);
for(; optind < argc; optind++)
2011-06-04 11:20:41 +00:00
if(mkfifo(argv[optind], S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH) == -1)
2011-05-25 10:00:15 +00:00
eprintf("mkfifo %s:", argv[optind]);
return EXIT_SUCCESS;
}