Import NetBSD mktemp
This commit is contained in:
parent
2e2caf5919
commit
0b2db08aec
5 changed files with 4 additions and 6 deletions
|
@ -33,7 +33,7 @@ SUBDIR= add_route arp ash at \
|
|||
unstack update uud uue version vol wc \
|
||||
whereis which who write writeisofs fetch \
|
||||
xargs yes zdump zmodem pkgin_cd \
|
||||
mktemp worldstone updateboot update_bootcfg
|
||||
worldstone updateboot update_bootcfg
|
||||
|
||||
.if ${MACHINE_ARCH} == "i386"
|
||||
SUBDIR+= atnormalize dosread fdisk loadfont \
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
.include <bsd.own.mk>
|
||||
|
||||
# NetBSD imports
|
||||
SUBDIR= login indent m4 make stat tic sed mkdep uniq seq du man \
|
||||
SUBDIR= login indent m4 make mktemp stat tic sed mkdep uniq seq du man \
|
||||
apropos chpass newgrp passwd bzip2 bzip2recover gzip su genassym \
|
||||
ldd/elf32 .WAIT ldd
|
||||
|
||||
|
|
|
@ -49,11 +49,9 @@
|
|||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#if 0
|
||||
#if defined(__RCSID) && !defined(__lint)
|
||||
__RCSID("$NetBSD: mktemp.c,v 1.11 2009/08/15 20:02:28 christos Exp $");
|
||||
#endif /* !__lint */
|
||||
#endif
|
||||
|
||||
static void usage(void) __dead;
|
||||
|
||||
|
@ -81,7 +79,7 @@ main(int argc, char **argv)
|
|||
case 'p':
|
||||
tmpdir = optarg;
|
||||
break;
|
||||
|
||||
|
||||
case 'q':
|
||||
qflag++;
|
||||
break;
|
||||
|
@ -120,7 +118,7 @@ main(int argc, char **argv)
|
|||
} else if (argc < 1) {
|
||||
usage();
|
||||
}
|
||||
|
||||
|
||||
/* generate all requested files */
|
||||
while (name != NULL || argc > 0) {
|
||||
if (name == NULL) {
|
Loading…
Reference in a new issue