Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Use expand_number(3) from libutil instead of home-grown function to parse | sobomax | 2010-03-03 | 2 | -62/+7 |
| | | | | | | | human-friendly power-of-two numbers (i.e. 2k, 5M etc). Suggested by: many MFC after: 1 week | ||||
* | Initialize 'sz' as 0. | delphij | 2009-02-21 | 1 | -2/+2 |
| | |||||
* | Don't close file descriptor number <whatever random garbage was on the | cperciva | 2008-08-04 | 1 | -0/+1 |
| | | | | | | | stack>. Found by: LLVM/Clang Static Checker MFC after: 1 week | ||||
* | The -r option can also cause the files to be extended (not | ru | 2006-12-19 | 1 | -2/+2 |
| | | | | necessarily truncated). | ||||
* | Markup fixes. | ru | 2006-09-29 | 1 | -1/+1 |
| | |||||
* | o Don't leak fd on error. | maxim | 2006-09-18 | 1 | -4/+6 |
| | | | | | | | o parselength() returns 0 or -1 so int is enough for its return type. Submitted by: Ighighi Ighighi, sheldonh MFC after: 3 weeks | ||||
* | Chase revision 1.10 in usage string and a comment. | ceri | 2006-09-07 | 1 | -2/+2 |
| | |||||
* | Allow to specify size in terabytes by using T or t suffix. | pjd | 2006-04-09 | 2 | -5/+10 |
| | | | | | | | | | | | | 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) | ||||
* | Sync program's usage() with manpage's SYNOPSIS. | ru | 2005-05-21 | 1 | -1/+1 |
| | |||||
* | Added the EXIT STATUS section where appropriate. | ru | 2005-01-17 | 1 | -1/+1 |
| | |||||
* | Make size suffix case insensitive. | le | 2004-07-22 | 2 | -3/+6 |
| | | | | | PR: bin/27604 Submitted by: David Xu <davidx@viasoft.com.cn> | ||||
* | remove __P | imp | 2002-03-22 | 1 | -2/+2 |
| | |||||
* | Remove WARNS?=2 and -Wall. WARNS?=2 is going to be the default. | markm | 2001-12-12 | 1 | -1/+0 |
| | |||||
* | * Update author's e-mail address. | sheldonh | 2001-08-16 | 1 | -2/+2 |
| | | | | | | * 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. | ||||
* | Use the .Cm macro to mark up the modifiers of the -s flag's size argument. | sheldonh | 2001-08-16 | 1 | -9/+10 |
| | |||||
* | mdoc(7) police: utilize the new .Ex macro. | ru | 2001-08-15 | 1 | -4/+1 |
| | |||||
* | Remove whitespace at EOL. | dd | 2001-07-15 | 1 | -2/+2 |
| | |||||
* | Set WARNS=2 on programs that compile cleanly with it; add $FreeBSD$ | dd | 2001-06-30 | 1 | -0/+1 |
| | | | | | | where necessary. Submitted by: Mike Barcroft <mike@q9media.com> | ||||
* | mdoc(7) police: use canonical form of .Dd macro. | ru | 2000-12-11 | 1 | -1/+1 |
| | |||||
* | mdoc(7) police: use the new features of the Nm macro. | ru | 2000-11-20 | 1 | -2/+2 |
| | |||||
* | Merge the truncate(1) utility onto the RELENG_4 branch and adjust | sheldonh | 2000-08-04 | 1 | -1/+1 |
| | | | | | the HISTORY section to reflect the first release of FreeBSD in which this utility will appear. | ||||
* | Simplify some conditionals. | sheldonh | 2000-07-24 | 1 | -12/+10 |
| | |||||
* | Shut an optimizing compiler up about possibly (but never) unused | sheldonh | 2000-07-24 | 1 | -0/+2 |
| | | | | | | variables. Submitted by: charnier | ||||
* | truncate.c: | sheldonh | 2000-07-24 | 2 | -4/+13 |
| | | | | | | | | | | | Do not include unused header files. Add rcsid. Change copyright. truncate.1: Add AUTHORS section. Submitted by: charnier | ||||
* | Close file descriptors after use so as not to abuse the descriptor | sheldonh | 2000-07-23 | 1 | -0/+2 |
| | | | | | | table when a long argument list is given. :-) Reported by: Sven Agnew <afterhours80@hotmail.com> | ||||
* | Add a STANDARDS section to discourage the use of this utility | sheldonh | 2000-07-21 | 1 | -0/+4 |
| | | | | in environments where portability is a concern. | ||||
* | Import the new truncate(1) utility. | sheldonh | 2000-07-18 | 3 | -0/+351 |
Approved by: jdp |