Skip to content

Commit

Permalink
Import NetBSD time(1)
Browse files Browse the repository at this point in the history
Change-Id: I035d21a926aa82434c24a84b914bd58ac064e66a
  • Loading branch information
dcvmoole committed Sep 29, 2015
1 parent d1e4d7c commit b7f0178
Show file tree
Hide file tree
Showing 10 changed files with 413 additions and 209 deletions.
2 changes: 1 addition & 1 deletion minix/commands/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ SUBDIR= add_route arp at backup \
slip spell sprofalyze sprofdiff srccrc \
svrctl swifi synctree sysenv \
tcpd tcpdp tcpstat telnet \
telnetd term termcap tget time \
telnetd term termcap tget \
truncate udpstat umount \
update version vol \
writeisofs fetch \
Expand Down
3 changes: 0 additions & 3 deletions minix/commands/time/Makefile

This file was deleted.

32 changes: 0 additions & 32 deletions minix/commands/time/time.1

This file was deleted.

172 changes: 0 additions & 172 deletions minix/commands/time/time.c

This file was deleted.

2 changes: 1 addition & 1 deletion usr.bin/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ SUBDIR= asa \
\
sdiff sed seq shar shlock \
shuffle sort split stat su \
tail tee tic touch tput \
tail tee tic time touch tput \
tr true tsort tty ul uname unexpand unifdef \
uniq units unvis unzip users \
uudecode uuencode uuidgen vis \
Expand Down
16 changes: 16 additions & 0 deletions usr.bin/time/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# $NetBSD: Makefile,v 1.9 2011/08/28 08:24:42 christos Exp $
# @(#)Makefile 8.1 (Berkeley) 6/6/93

.include <bsd.own.mk>

CPPFLAGS+= -DNOT_CSH
CPPFLAGS+= -I. -I${NETBSDSRCDIR}/bin
SRCS= time.c xtime.c
PROG= time

.PATH: ${NETBSDSRCDIR}/bin/csh

LDADD+=-lutil
DPADD+=${LIBUTIL}

.include <bsd.prog.mk>
5 changes: 5 additions & 0 deletions usr.bin/time/ext.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/* $NetBSD: ext.h,v 1.2 2011/11/09 19:10:10 christos Exp $ */

/* borrowed from ../../bin/csh/extern.h */
void prusage(FILE *, struct rusage *, struct rusage *, struct timespec *,
struct timespec *);
Loading

0 comments on commit b7f0178

Please sign in to comment.