aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/time
Commit message (Collapse)AuthorAgeFilesLines
* time(1): Add EXAMPLES sectionFernando ApesteguĂ­a2020-07-071-1/+57
| | | | | | | | | Add EXAMPLES showing all five flags: -a, -h, -l, -o, -p Approved by: manpages (bcr) Notes: svn path=/head/; revision=362992
* time(1): use the monotonic clockAlan Somers2018-05-041-3/+3
| | | | | | | | | | | The monotonic clock is more appropriate than the realtime clock for measuring durations. Reviewed by: ken, jilles Differential Revision: https://reviews.freebsd.org/D14032 Notes: svn path=/head/; revision=333251
* time(1): use clock_gettime(2) instead of gettimeofday(2)Alan Somers2018-01-241-17/+21
| | | | | | | | | | | | This is a prerequisite to adding support for the monotonic clock Reviewed by: ken, imp MFC after: 3 weeks Sponsored by: Spectra Logic Corp Differential Revision: https://reviews.freebsd.org/D14030 Notes: svn path=/head/; revision=328343
* General further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-201-1/+3
| | | | | | | | | | | | | | | | | Mainly focus on files that use BSD 3-Clause license. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Special thanks to Wind River for providing access to "The Duke of Highlander" tool: an older (2014) run over FreeBSD tree was useful as a starting point. Notes: svn path=/head/; revision=326025
* DIRDEPS_BUILD: Update dependencies.Bryan Drewery2017-10-311-1/+0
| | | | | | | Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=325188
* Renumber copyright clause 4Warner Losh2017-02-282-2/+2
| | | | | | | | | | | | Renumber cluase 4 to 3, per what everybody else did when BSD granted them permission to remove clause 3. My insistance on keeping the same numbering for legal reasons is too pedantic, so give up on that point. Submitted by: Jan Schaumann <jschauma@stevens.edu> Pull Request: https://github.com/freebsd/freebsd/pull/96 Notes: svn path=/head/; revision=314436
* Add META_MODE support.Simon J. Gerraty2015-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 Notes: svn path=/head/; revision=284345
| * dirdeps.mk now sets DEP_RELDIRSimon J. Gerraty2015-06-081-2/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=284172
| * Merge sync of headSimon J. Gerraty2015-05-271-6/+12
| |\ | |/ |/| | | Notes: svn path=/projects/bmake/; revision=283595
| * Updated dependenciesSimon J. Gerraty2014-05-161-1/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=266219
| * Updated dependenciesSimon J. Gerraty2014-05-101-0/+2
| | | | | | | | Notes: svn path=/projects/bmake/; revision=265802
| * Updated dependenciesSimon J. Gerraty2013-03-111-0/+1
| | | | | | | | Notes: svn path=/projects/bmake/; revision=248169
| * Updated dependenciesSimon J. Gerraty2013-02-161-2/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=246868
| * Sync with HEAD.David E. O'Brien2013-02-081-3/+1
| |\ | | | | | | | | | Notes: svn path=/projects/bmake/; revision=246555
| * \ Sync from headSimon J. Gerraty2012-11-041-3/+3
| |\ \ | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=242545
| * | | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.Marcel Moolenaar2012-08-221-0/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net> Notes: svn path=/projects/bmake/; revision=239572
* | | | Don't do things we aren't allowed to do in a signal handler... DeferJohn-Mark Gurney2015-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... Notes: svn path=/head/; revision=283073
* | | time: Use close-on-exec instead of fclose() in the child process.Jilles Tjoelker2012-12-081-3/+1
| |/ |/| | | | | Notes: svn path=/head/; revision=244034
* | Rework all non-contributed files that use `struct timezone'.Ed Schouten2012-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. Notes: svn path=/head/; revision=239991
* Remove the advertising clause from UCB copyrighted files in usr.bin. ThisJoel Dahl2010-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 Notes: svn path=/head/; revision=216370
* Build usr.bin/ with WARNS=6 by default.Ed Schouten2010-01-021-1/+0
| | | | | | | Also add some missing $FreeBSD$ to keep svn happy. Notes: svn path=/head/; revision=201386
* Revert most part of 200420 as requested, as more review and polish isXin LI2009-12-131-0/+1
| | | | | | | needed. Notes: svn path=/head/; revision=200462
* Remove unneeded header includes from usr.bin/ except contributed code.Xin LI2009-12-111-1/+0
| | | | | | | Tested with: make universe Notes: svn path=/head/; revision=200420
* Cast to intmax_t to print tv_sec in struct timeval.David Malone2007-05-072-16/+19
| | | | | | | | Avoid shadowing a global variable with a function argument. Set WARNS to 6. Notes: svn path=/head/; revision=169346
* Markup fixes.Ruslan Ermilov2006-09-291-1/+1
| | | | Notes: svn path=/head/; revision=162792
* Handle SIGINFO in time(1) by printing the time the given command is running.Pawel Jakub Dawidek2006-05-142-37/+72
| | | | | | | I find it quite handy to just hit ^T and see the time. Notes: svn path=/head/; revision=158560
* o Close an output file -o flag opened before execvp(3) in a child.Maxim Konovalov2006-04-161-0/+2
| | | | | | | | | PR: bin/89666 Submitted by: Arne H Juul MFC after: 1 month Notes: svn path=/head/; revision=157796
* Sync program's usage() with manpage's SYNOPSIS.Ruslan Ermilov2005-05-211-1/+1
| | | | Notes: svn path=/head/; revision=146466
* Added the EXIT STATUS section where appropriate.Ruslan Ermilov2005-01-171-1/+1
| | | | Notes: svn path=/head/; revision=140368
* Mechanically kill hard sentence breaks.Ruslan Ermilov2004-07-021-3/+5
| | | | Notes: svn path=/head/; revision=131491
* Uses wait4() instead of wait3() when waiting for a child process to exit.Sean Chittenden2003-10-171-1/+1
| | | | | | | Reviewed by: yar Notes: svn path=/head/; revision=121153
* Assorted minor fixes, mostly style(9):Yaroslav Tykhiy2003-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. Notes: svn path=/head/; revision=120747
* Don't dump core from the time(1) process itselfYaroslav Tykhiy2003-10-041-1/+6
| | | | | | | | if the child process has exited on a signal whose default action is to dump core. Notes: svn path=/head/; revision=120744
* Introduce options definition the standard way. command -> utility.Philippe Charnier2003-06-091-3/+3
| | | | Notes: svn path=/head/; revision=116115
* english(4) police.Jens Schweikhardt2002-12-271-1/+1
| | | | Notes: svn path=/head/; revision=108317
* ANSIify function definitions.David Malone2002-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 Notes: svn path=/head/; revision=102944
* Document the fairly obvious effects of the PATH environment variable.Tim J. Robbins2002-06-281-0/+8
| | | | Notes: svn path=/head/; revision=98969
* time(1) does not use the shell to execute the specified utility, removeTim J. Robbins2002-06-201-6/+2
| | | | | | | sentence stating it did. Notes: svn path=/head/; revision=98479
* Make it obvious that command line arguments may be specified for the utilityTim J. Robbins2002-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. Notes: svn path=/head/; revision=98476
* Correct History: time(1) appeared at least as early as V3.Tim J. Robbins2002-06-031-1/+1
| | | | Notes: svn path=/head/; revision=97770
* Determine exit status to use before writing diagnostic message; warn()Tim J. Robbins2002-05-251-6/+1
| | | | | | | may change errno. Notes: svn path=/head/; revision=97268
* remove __PWarner Losh2002-03-221-3/+3
| | | | Notes: svn path=/head/; revision=92922
* Fix one warning - still not warns clean.David Malone2001-12-031-1/+1
| | | | Notes: svn path=/head/; revision=87300
* Remove whitespace at EOL.Dima Dorfman2001-07-151-4/+4
| | | | Notes: svn path=/head/; revision=79755
* mdoc(7) police: removed HISTORY info from the .Os call.Ruslan Ermilov2001-07-101-1/+1
| | | | Notes: svn path=/head/; revision=79535
* Localize it (LC_NUMERIC)Andrey A. Chernov2001-02-101-13/+25
| | | | Notes: svn path=/head/; revision=72338
* Remove vestages of a previous implimentation of "-h".David E. O'Brien2000-10-311-2/+2
| | | | | | | Submitted by: Tony Finch <dot@dotat.at> Notes: svn path=/head/; revision=68029
* Add a new "-h" Human-friendly h/m/s output format.David E. O'Brien2000-10-282-5/+45
| | | | | | | Reviewed by: bde Notes: svn path=/head/; revision=67813
* getopt and friends are declared in <unistd.h>Warner Losh2000-09-041-3/+0
| | | | | | | getopt returns -1 not EOF. Notes: svn path=/head/; revision=65428
* Correct some hard sentence breaks. Only those surrounding the previousSheldon Hearn1999-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 Notes: svn path=/head/; revision=51275