History log of /freebsd-9.3-release/usr.bin/truncate/
Revision Date Author Comments
267654 20-Jun-2014 gjb

Copy stable/9 to releng/9.3 as part of the 9.3-RELEASE cycle.

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


225736 23-Sep-2011 kensmith

Copy head to stable/9 as part of 9.0-RELEASE release cycle.

Approved by: re (implicit)


204654 03-Mar-2010 sobomax

Use expand_number(3) from libutil instead of home-grown function to parse
human-friendly power-of-two numbers (i.e. 2k, 5M etc).

Suggested by: many
MFC after: 1 week


188887 21-Feb-2009 delphij

Initialize 'sz' as 0.


181279 04-Aug-2008 cperciva

Don't close file descriptor number <whatever random garbage was on the
stack>.

Found by: LLVM/Clang Static Checker
MFC after: 1 week


165346 19-Dec-2006 ru

The -r option can also cause the files to be extended (not
necessarily truncated).


162792 29-Sep-2006 ru

Markup fixes.


162412 18-Sep-2006 maxim

o Don't leak fd on error.
o parselength() returns 0 or -1 so int is enough for its return type.

Submitted by: Ighighi Ighighi, sheldonh
MFC after: 3 weeks


162114 07-Sep-2006 ceri

Chase revision 1.10 in usage string and a comment.


157614 09-Apr-2006 pjd

Allow to specify size in terabytes by using T or t suffix.
This speeds up my testing a bit. Because truncate(1) doesn't allocate
blocks on file system before they are used, it is very useful to
emulate huge file systems:

# truncate -s 16T fs.img
# mdconfig -a -f fs.img
# newfs /dev/mdX

(-t swap can be used as well)


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.


132542 22-Jul-2004 le

Make size suffix case insensitive.

PR: bin/27604
Submitted by: David Xu <davidx@viasoft.com.cn>


92922 22-Mar-2002 imp

remove __P


87714 12-Dec-2001 markm

Remove WARNS?=2 and -Wall. WARNS?=2 is going to be the default.


81758 16-Aug-2001 sheldonh

* Update author's e-mail address.

* When the author of an utility also wrote its manual page (a rarety, I
know), it is not necessary to say that the utility "and this manual
page" were written by the author.


81754 16-Aug-2001 sheldonh

Use the .Cm macro to mark up the modifiers of the -s flag's size argument.


81687 15-Aug-2001 ru

mdoc(7) police: utilize the new .Ex macro.


79755 15-Jul-2001 dd

Remove whitespace at EOL.


79011 30-Jun-2001 dd

Set WARNS=2 on programs that compile cleanly with it; add $FreeBSD$
where necessary.

Submitted by: Mike Barcroft <mike@q9media.com>


69860 11-Dec-2000 ru

mdoc(7) police: use canonical form of .Dd macro.


68963 20-Nov-2000 ru

mdoc(7) police: use the new features of the Nm macro.


64225 04-Aug-2000 sheldonh

Merge the truncate(1) utility onto the RELENG_4 branch and adjust
the HISTORY section to reflect the first release of FreeBSD in
which this utility will appear.


63817 24-Jul-2000 sheldonh

Simplify some conditionals.


63816 24-Jul-2000 sheldonh

Shut an optimizing compiler up about possibly (but never) unused
variables.

Submitted by: charnier


63790 24-Jul-2000 sheldonh

truncate.c:
Do not include unused header files.
Add rcsid.
Change copyright.

truncate.1:
Add AUTHORS section.

Submitted by: charnier


63774 23-Jul-2000 sheldonh

Close file descriptors after use so as not to abuse the descriptor
table when a long argument list is given. :-)

Reported by: Sven Agnew <afterhours80@hotmail.com>


63719 21-Jul-2000 sheldonh

Add a STANDARDS section to discourage the use of this utility
in environments where portability is a concern.


63437 18-Jul-2000 sheldonh

Import the new truncate(1) utility.

Approved by: jdp