Importing usr.bin/mkfifo
Replaces commands/mkfifo. No Minix-specific changes needed. Change-Id: Idb20430d4297c7011fb7e2ef6b0876ebb2776c1c
This commit is contained in:
parent
3ab548a3d9
commit
ef03affb84
|
@ -15,7 +15,7 @@ SUBDIR= add_route arp ash at backup btrace \
|
||||||
intr ipcrm ipcs irdpd isoread last \
|
intr ipcrm ipcs irdpd isoread last \
|
||||||
less loadkeys loadramdisk logger look lp \
|
less loadkeys loadramdisk logger look lp \
|
||||||
lpd lspci mail MAKEDEV \
|
lpd lspci mail MAKEDEV \
|
||||||
mined mkfifo \
|
mined \
|
||||||
mount mt netconf \
|
mount mt netconf \
|
||||||
nonamed patch \
|
nonamed patch \
|
||||||
ping postinstall poweroff prep printroot \
|
ping postinstall poweroff prep printroot \
|
||||||
|
|
|
@ -200,6 +200,7 @@
|
||||||
2012/10/17 12:00:00,usr.bin/menuc
|
2012/10/17 12:00:00,usr.bin/menuc
|
||||||
2013/10/25 12:00:00,usr.bin/mesg
|
2013/10/25 12:00:00,usr.bin/mesg
|
||||||
2010/10/15 05:46:48,usr.bin/mkdep
|
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
|
2012/10/17 12:00:00,usr.bin/mkstr
|
||||||
2009/08/15 20:44:56,usr.bin/mktemp
|
2009/08/15 20:44:56,usr.bin/mktemp
|
||||||
2012/10/17 12:00:00,usr.bin/msgc
|
2012/10/17 12:00:00,usr.bin/msgc
|
||||||
|
|
|
@ -16,7 +16,7 @@ SUBDIR= asa \
|
||||||
lam ldd leave \
|
lam ldd leave \
|
||||||
lock login logname lorder m4 \
|
lock login logname lorder m4 \
|
||||||
machine make man menuc mesg \
|
machine make man menuc mesg \
|
||||||
mkdep mkstr mktemp \
|
mkdep mkfifo mkstr mktemp \
|
||||||
msgc \
|
msgc \
|
||||||
nbperf newgrp nice nl nohup nvi \
|
nbperf newgrp nice nl nohup nvi \
|
||||||
passwd paste pathchk pr \
|
passwd paste pathchk pr \
|
||||||
|
|
|
@ -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
|
* Copyright (c) 1990, 1993
|
||||||
|
@ -30,21 +30,17 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
#if 0
|
|
||||||
#ifndef lint
|
#ifndef lint
|
||||||
__COPYRIGHT("@(#) Copyright (c) 1990, 1993\
|
__COPYRIGHT("@(#) Copyright (c) 1990, 1993\
|
||||||
The Regents of the University of California. All rights reserved.");
|
The Regents of the University of California. All rights reserved.");
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
#endif
|
|
||||||
|
|
||||||
#if 0
|
|
||||||
#ifndef lint
|
#ifndef lint
|
||||||
#if 0
|
#if 0
|
||||||
static char sccsid[] = "@(#)mkfifo.c 8.2 (Berkeley) 1/5/94";
|
static char sccsid[] = "@(#)mkfifo.c 8.2 (Berkeley) 1/5/94";
|
||||||
#endif
|
#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 /* not lint */
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.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 <unistd.h>
|
||||||
#include <err.h>
|
#include <err.h>
|
||||||
|
|
||||||
int main __P((int, char **));
|
__dead static void usage(void);
|
||||||
static void usage __P((void));
|
|
||||||
|
|
||||||
int
|
int
|
||||||
main(argc, argv)
|
main(int argc, char *argv[])
|
||||||
int argc;
|
|
||||||
char *argv[];
|
|
||||||
{
|
{
|
||||||
int ch, exitval;
|
int ch, exitval;
|
||||||
void *set;
|
void *set;
|
||||||
|
@ -107,7 +100,7 @@ main(argc, argv)
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
usage()
|
usage(void)
|
||||||
{
|
{
|
||||||
(void)fprintf(stderr, "usage: mkfifo [-m mode] fifoname ...\n");
|
(void)fprintf(stderr, "usage: mkfifo [-m mode] fifoname ...\n");
|
||||||
exit(1);
|
exit(1);
|
Loading…
Reference in a new issue