Importing usr.bin/mkfifo

Replaces commands/mkfifo. No Minix-specific changes needed.

Change-Id: Idb20430d4297c7011fb7e2ef6b0876ebb2776c1c
This commit is contained in:
Thomas Cort 2013-11-18 16:40:55 -05:00 committed by Gerrit Code Review
parent 3ab548a3d9
commit ef03affb84
6 changed files with 8 additions and 14 deletions

View File

@ -15,7 +15,7 @@ SUBDIR= add_route arp ash at backup btrace \
intr ipcrm ipcs irdpd isoread last \
less loadkeys loadramdisk logger look lp \
lpd lspci mail MAKEDEV \
mined mkfifo \
mined \
mount mt netconf \
nonamed patch \
ping postinstall poweroff prep printroot \

View File

@ -200,6 +200,7 @@
2012/10/17 12:00:00,usr.bin/menuc
2013/10/25 12:00:00,usr.bin/mesg
2010/10/15 05:46:48,usr.bin/mkdep
2012/10/17 12:00:00,usr.bin/mkfifo
2012/10/17 12:00:00,usr.bin/mkstr
2009/08/15 20:44:56,usr.bin/mktemp
2012/10/17 12:00:00,usr.bin/msgc

View File

@ -16,7 +16,7 @@ SUBDIR= asa \
lam ldd leave \
lock login logname lorder m4 \
machine make man menuc mesg \
mkdep mkstr mktemp \
mkdep mkfifo mkstr mktemp \
msgc \
nbperf newgrp nice nl nohup nvi \
passwd paste pathchk pr \

View File

@ -1,4 +1,4 @@
/* $NetBSD: mkfifo.c,v 1.12 2008/07/21 14:19:24 lukem Exp $ */
/* $NetBSD: mkfifo.c,v 1.13 2011/09/04 20:30:34 joerg Exp $ */
/*
* Copyright (c) 1990, 1993
@ -30,21 +30,17 @@
*/
#include <sys/cdefs.h>
#if 0
#ifndef lint
__COPYRIGHT("@(#) Copyright (c) 1990, 1993\
The Regents of the University of California. All rights reserved.");
#endif /* not lint */
#endif
#if 0
#ifndef lint
#if 0
static char sccsid[] = "@(#)mkfifo.c 8.2 (Berkeley) 1/5/94";
#endif
__RCSID("$NetBSD: mkfifo.c,v 1.12 2008/07/21 14:19:24 lukem Exp $");
__RCSID("$NetBSD: mkfifo.c,v 1.13 2011/09/04 20:30:34 joerg Exp $");
#endif /* not lint */
#endif
#include <stdio.h>
#include <stdlib.h>
@ -56,13 +52,10 @@ __RCSID("$NetBSD: mkfifo.c,v 1.12 2008/07/21 14:19:24 lukem Exp $");
#include <unistd.h>
#include <err.h>
int main __P((int, char **));
static void usage __P((void));
__dead static void usage(void);
int
main(argc, argv)
int argc;
char *argv[];
main(int argc, char *argv[])
{
int ch, exitval;
void *set;
@ -107,7 +100,7 @@ main(argc, argv)
}
static void
usage()
usage(void)
{
(void)fprintf(stderr, "usage: mkfifo [-m mode] fifoname ...\n");
exit(1);