History log of /freebsd-10.0-release/usr.bin/time/
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
259065 07-Dec-2013 gjb

- Copy stable/10 (r259064) to releng/10.0 as part of the
10.0-RELEASE cycle.
- Update __FreeBSD_version [1]
- Set branch name to -RC1

[1] 10.0-CURRENT __FreeBSD_version value ended at '55', so
start releng/10.0 at '100' so the branch is started with
a value ending in zero.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

256281 10-Oct-2013 gjb

Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation


244034 08-Dec-2012 jilles

time: Use close-on-exec instead of fclose() in the child process.


239991 01-Sep-2012 ed

Rework all non-contributed files that use `struct timezone'.

This structure is not part of POSIX. According to POSIX, gettimeofday()
has the following prototype:

int gettimeofday(struct timeval *restrict tp, void *restrict tzp);

Also, POSIX states that gettimeofday() shall return 0 (as long as tzp is
not used). Remove dead error handling code. Also use NULL for a
nul-pointer instead of integer 0.

While there, change all pieces of code that only use tv_sec to use
time(3), as this provides less overhead.


216370 11-Dec-2010 joel

Remove the advertising clause from UCB copyrighted files in usr.bin. This
is in accordance with the information provided at
ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change

Also add $FreeBSD$ to a few files to keep svn happy.

Discussed with: imp, rwatson


201386 02-Jan-2010 ed

Build usr.bin/ with WARNS=6 by default.

Also add some missing $FreeBSD$ to keep svn happy.


200462 13-Dec-2009 delphij

Revert most part of 200420 as requested, as more review and polish is
needed.


200420 11-Dec-2009 delphij

Remove unneeded header includes from usr.bin/ except contributed code.

Tested with: make universe


169346 07-May-2007 dwmalone

Cast to intmax_t to print tv_sec in struct timeval.
Avoid shadowing a global variable with a function argument.
Set WARNS to 6.


162792 29-Sep-2006 ru

Markup fixes.


158560 14-May-2006 pjd

Handle SIGINFO in time(1) by printing the time the given command is running.
I find it quite handy to just hit ^T and see the time.


157796 16-Apr-2006 maxim

o Close an output file -o flag opened before execvp(3) in a child.

PR: bin/89666
Submitted by: Arne H Juul
MFC after: 1 month


146466 21-May-2005 ru

Sync program's usage() with manpage's SYNOPSIS.


140368 17-Jan-2005 ru

Added the EXIT STATUS section where appropriate.


131491 02-Jul-2004 ru

Mechanically kill hard sentence breaks.


121153 17-Oct-2003 seanc

Uses wait4() instead of wait3() when waiting for a child process to exit.

Reviewed by: yar


120747 04-Oct-2003 yar

Assorted minor fixes, mostly style(9):
- PID should be pid_t, not int;
- sort #include's and local variables;
- don't overuse initializers;
- use warn(3) instead of perror(3) consistently;
- amplify the comment on signals.


120744 04-Oct-2003 yar

Don't dump core from the time(1) process itself
if the child process has exited on a signal
whose default action is to dump core.


116115 09-Jun-2003 charnier

Introduce options definition the standard way. command -> utility.


108317 27-Dec-2002 schweikh

english(4) police.


102944 04-Sep-2002 dwmalone

ANSIify function definitions.
Add some constness to avoid some warnings.
Remove use register keyword.
Deal with missing/unneeded extern/prototypes.
Some minor type changes/casts to avoid warnings.

Reviewed by: md5


98969 28-Jun-2002 tjr

Document the fairly obvious effects of the PATH environment variable.


98479 20-Jun-2002 tjr

time(1) does not use the shell to execute the specified utility, remove
sentence stating it did.


98476 20-Jun-2002 tjr

Make it obvious that command line arguments may be specified for the utility
that is to be invoked on the command line. Use "utility" instead of "command"
in manual page and usage message for consistency with POSIX.


97770 03-Jun-2002 tjr

Correct History: time(1) appeared at least as early as V3.


97268 25-May-2002 tjr

Determine exit status to use before writing diagnostic message; warn()
may change errno.


92922 22-Mar-2002 imp

remove __P


87300 03-Dec-2001 dwmalone

Fix one warning - still not warns clean.


79755 15-Jul-2001 dd

Remove whitespace at EOL.


79535 10-Jul-2001 ru

mdoc(7) police: removed HISTORY info from the .Os call.


72338 10-Feb-2001 ache

Localize it (LC_NUMERIC)


68029 31-Oct-2000 obrien

Remove vestages of a previous implimentation of "-h".

Submitted by: Tony Finch <dot@dotat.at>


67813 28-Oct-2000 obrien

Add a new "-h" Human-friendly h/m/s output format.

Reviewed by: bde


65428 04-Sep-2000 imp

getopt and friends are declared in <unistd.h>
getopt returns -1 not EOF.


51275 14-Sep-1999 sheldonh

Correct some hard sentence breaks. Only those surrounding the previous
commit and those which cause ugly nroff output have been fixed, since
the purpose of the style guideline which they contravene is to reduce
the sizes of deltas.

Reported by: bde


51090 08-Sep-1999 sheldonh

Improve shell documentation:

* Consistently misspell built-in as builtin.

* Add a builtin(1) manpage and create builtin(1) MLINKS for all shell
builtin commands for which no standalone utility exists. These MLINKS
replace those that were created for csh(1).

* Add appropriate xrefs for builtin(1) to the csh(1) and sh(1) manpages,
as well as to the manpages of standalone utilities which are supported
as shell builtin commands in at least one of the shells. In such
manpages, explain that similar functionality may be provided as a
shell builtin command.

* Improve sh(1)'s description of the cd builtin command. Csh(1) already
describes it adequately. Replace the cd(1) manpage with a builtin(1)
MLINKS link.

* Clean up some mdoc problems: use Xr instead of literal "foo(n)"; use
Ic instead of Xr for shell builtin commands.

* Undo English contractions.

Reviewed by: mpp, rgrimes


50477 28-Aug-1999 peter

$Id$ -> $FreeBSD$


48792 12-Jul-1999 nik

Add $Id$, to make it simpler for members of the translation teams to
track.

The $Id$ line is normally at the bottom of the main comment block in the
man page, separated from the rest of the manpage by an empty comment,
like so;

.\" $Id$
.\"

If the immediately preceding comment is a @(#) format ID marker than the
the $Id$ will line up underneath it with no intervening blank lines.
Otherwise, an additional blank line is inserted.

Approved by: bde


44640 10-Mar-1999 roberto

Adds the '-p' option to make time(1) output POSIX.2 compliant.
Updates the manpage as well.

I've rewritten the patch as it was for 2.2.7. It can probably be put
into 3.1-STABLE as well.

PR: bin/10515
Submitted by: Jens Schweikhardt <schweikh@noc.dfn.de>


40301 13-Oct-1998 des

Calls one or more of malloc(), warn(), err(), syslog(), execlp() or
execvp() in the child branch of a vfork(). Changed to use fork()
instead.

Some of these (mv, find, apply, xargs) might benefit greatly from
being rewritten to use vfork() properly.

PR: Loosely related to bin/8252
Approved by: jkh and bde


38520 24-Aug-1998 cracauer

When exiting on SIGINT, exit with signal status


37913 28-Jul-1998 des

Brucifixion.


37891 27-Jul-1998 des

Behave like GNU time. More cleanup. Reword man page.

Pointed out by: Bruce Evans


37888 27-Jul-1998 des

Clean up the previous commit.


37855 24-Jul-1998 phk

By default, /usr/bin/time writes its output to stderr. Two options
have been added to time(1) to write output to an alternative destination.
Option "-f filename" will write to filename, and filename can be - to
write to stdout. Option "-a filename" will append the output to filename.
Time(1) man page has been updated to reflect the change.

PR: 7368
Submitted by: Steven G. Kargl <kargl@troutmask.apl.washington.edu>


28203 14-Aug-1997 charnier

Add usage() and use err(3).


24360 29-Mar-1997 imp

compare return value from getopt against -1 rather than EOF, per the final
posix standard on the topic.


22319 06-Feb-1997 mpp

Add a couple of relavant man page xrefs for more information
on the structures time(1) displays, instead of refering
he reading to an include file.

Obtained from: NetBSD-bugs mailing list PR#3193


18889 12-Oct-1996 jkh

Close PR#1781 - time returns with EXIT_SUCCESS on some failures
Submitted-By: Tor Egge <Tor.Egge@idt.ntnu.no>


17351 30-Jul-1996 jdp

Fix a bug under time's "-l" option. The values reported for average
shared memory size, average unshared data size, and average unshared
stack size were too high by a factor of 128/100, because the program
used a hard-coded hz value of 100. The correct value is the frequency
of the statistics clock, currently 128. The program now uses sysctl
to get the stathz value from the kernel.

Discussed with: bde@freebsd.org (Bruce Evans)


11873 28-Oct-1995 pst

Close out PR#723: time -l dumps core


6548 18-Feb-1995 ats

Submitted by: Ollivier ROBERT roberto@keltia.frmug.fr.net
There is a typo in the include file specification in the man page of
time(1).


1591 27-May-1994 rgrimes

This commit was generated by cvs2svn to compensate for changes in r1590,
which included commits to RCS files with non-trunk default branches.