summaryrefslogtreecommitdiffstats
path: root/usr.bin/time
Commit message (Collapse)AuthorAgeFilesLines
* Add META_MODE support.sjg2015-06-131-0/+18
|\ | | | | | | | | | | | | | | | | | | | | Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree. Still need to add real targets under targets/ to build packages. Differential Revision: D2796 Reviewed by: brooks imp
| * dirdeps.mk now sets DEP_RELDIRsjg2015-06-081-2/+0
| |
| * Merge sync of headsjg2015-05-271-6/+12
| |\ | |/ |/|
| * Updated dependenciessjg2014-05-161-1/+0
| |
| * Updated dependenciessjg2014-05-101-0/+2
| |
| * Updated dependenciessjg2013-03-111-0/+1
| |
| * Updated dependenciessjg2013-02-161-2/+0
| |
| * Sync with HEAD.obrien2013-02-081-3/+1
| |\
| | \
| | \
| *-. \ Sync from headsjg2012-11-041-3/+3
| |\ \ \
| * | | | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.marcel2012-08-221-0/+19
| | |/ / | |/| | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net>
* | | | Don't do things we aren't allowed to do in a signal handler... Deferjmg2015-05-181-6/+12
| |_|/ |/| | | | | | | | | | | | | | | | | | | | the work to the main thread... This fixes a possible crash if SIGINFO is delivered at the wrong time... This still leaves getrusage broken for some reason, but I believe that is a kernel issue and cannot be fixed here...
* | | time: Use close-on-exec instead of fclose() in the child process.jilles2012-12-081-3/+1
| |/ |/|
* | Rework all non-contributed files that use `struct timezone'.ed2012-09-011-3/+3
|/ | | | | | | | | | | | | | 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.
* Remove the advertising clause from UCB copyrighted files in usr.bin. Thisjoel2010-12-112-8/+0
| | | | | | | | | 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
* Build usr.bin/ with WARNS=6 by default.ed2010-01-021-1/+0
| | | | Also add some missing $FreeBSD$ to keep svn happy.
* Revert most part of 200420 as requested, as more review and polish isdelphij2009-12-131-0/+1
| | | | needed.
* Remove unneeded header includes from usr.bin/ except contributed code.delphij2009-12-111-1/+0
| | | | Tested with: make universe
* Cast to intmax_t to print tv_sec in struct timeval.dwmalone2007-05-072-16/+19
| | | | | Avoid shadowing a global variable with a function argument. Set WARNS to 6.
* Markup fixes.ru2006-09-291-1/+1
|
* Handle SIGINFO in time(1) by printing the time the given command is running.pjd2006-05-142-37/+72
| | | | I find it quite handy to just hit ^T and see the time.
* o Close an output file -o flag opened before execvp(3) in a child.maxim2006-04-161-0/+2
| | | | | | PR: bin/89666 Submitted by: Arne H Juul MFC after: 1 month
* Sync program's usage() with manpage's SYNOPSIS.ru2005-05-211-1/+1
|
* Added the EXIT STATUS section where appropriate.ru2005-01-171-1/+1
|
* Mechanically kill hard sentence breaks.ru2004-07-021-3/+5
|
* Uses wait4() instead of wait3() when waiting for a child process to exit.seanc2003-10-171-1/+1
| | | | Reviewed by: yar
* Assorted minor fixes, mostly style(9):yar2003-10-041-12/+16
| | | | | | | | - 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.
* Don't dump core from the time(1) process itselfyar2003-10-041-1/+6
| | | | | if the child process has exited on a signal whose default action is to dump core.
* Introduce options definition the standard way. command -> utility.charnier2003-06-091-3/+3
|
* english(4) police.schweikh2002-12-271-1/+1
|
* ANSIify function definitions.dwmalone2002-09-041-10/+5
| | | | | | | | | 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
* Document the fairly obvious effects of the PATH environment variable.tjr2002-06-281-0/+8
|
* time(1) does not use the shell to execute the specified utility, removetjr2002-06-201-6/+2
| | | | sentence stating it did.
* Make it obvious that command line arguments may be specified for the utilitytjr2002-06-202-10/+11
| | | | | that is to be invoked on the command line. Use "utility" instead of "command" in manual page and usage message for consistency with POSIX.
* Correct History: time(1) appeared at least as early as V3.tjr2002-06-031-1/+1
|
* Determine exit status to use before writing diagnostic message; warn()tjr2002-05-251-6/+1
| | | | may change errno.
* remove __Pimp2002-03-221-3/+3
|
* Fix one warning - still not warns clean.dwmalone2001-12-031-1/+1
|
* Remove whitespace at EOL.dd2001-07-151-4/+4
|
* mdoc(7) police: removed HISTORY info from the .Os call.ru2001-07-101-1/+1
|
* Localize it (LC_NUMERIC)ache2001-02-101-13/+25
|
* Remove vestages of a previous implimentation of "-h".obrien2000-10-311-2/+2
| | | | Submitted by: Tony Finch <dot@dotat.at>
* Add a new "-h" Human-friendly h/m/s output format.obrien2000-10-282-5/+45
| | | | Reviewed by: bde
* getopt and friends are declared in <unistd.h>imp2000-09-041-3/+0
| | | | getopt returns -1 not EOF.
* Correct some hard sentence breaks. Only those surrounding the previoussheldonh1999-09-141-4/+6
| | | | | | | | 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
* Improve shell documentation:sheldonh1999-09-081-8/+7
| | | | | | | | | | | | | | | | | | | | | | | | | * 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
* $Id$ -> $FreeBSD$peter1999-08-282-2/+2
|
* Add $Id$, to make it simpler for members of the translation teams tonik1999-07-121-0/+1
| | | | | | | | | | | | | | | | | 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
* Adds the '-p' option to make time(1) output POSIX.2 compliant.roberto1999-03-102-21/+63
| | | | | | | | | | 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>
* Calls one or more of malloc(), warn(), err(), syslog(), execlp() ordes1998-10-131-2/+2
| | | | | | | | | | | 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
* When exiting on SIGINT, exit with signal statuscracauer1998-08-241-2/+12
|
OpenPOWER on IntegriCloud