Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | fix a glitch in rev. 1.24: getline(3) returns ssize_t, not size_t; | 2018-08-04 | 1 | -3/+5 | |
| | | | | pointed out by Andre Stoebe <as at nul not space> | ||||
* | obvious KNF: avoid '!' for tests of non-boolean variables, | 2018-08-04 | 1 | -22/+21 | |
| | | | | | | __dead void usage, return from main and return is not a function, err(1, NULL) after malloc failure, and garbage collect (void) casts on functions that usually do not need return value checks | ||||
* | Use POSIX getline(3) rather than the non-standard and error-prone fgetln(3). | 2018-08-04 | 1 | -45/+33 | |
| | | | | | | In part based on a diff from Lauri Tirkkonen <lotheac at iki dot fi>. While here, significantly simplify sequential(). No objection when shown on tech@. | ||||
* | When invoked with no file arguments, display usage and fail instead of | 2018-01-02 | 1 | -1/+4 | |
| | | | | | | | silently doing nothing. suggested by Klemens Nanni (kl3 (at) posteo.org), from FreeBSD r92772 ok millert@ | ||||
* | Remove the nonsensical "-s - -" in the third example; quirk reported | 2017-06-28 | 1 | -8/+14 | |
| | | | | | | | | by Redouan Ait Mallouk <raitmallouk at gmail dot com>. The paste(1) utility allows two equivalent solutions for many tasks involving only one input stream; while here, make that more obvious by always showing both solutions. | ||||
* | Remove NULL-checks before free(). ok tb@ | 2015-12-09 | 1 | -3/+2 | |
| | |||||
* | Change all tame callers to namechange to pledge(2). | 2015-10-09 | 1 | -3/+3 | |
| | |||||
* | tame "stdio rpath", satisfies the fopen cases | 2015-10-07 | 1 | -1/+4 | |
| | | | | ok semarie | ||||
* | Release file descriptors as soon as they are not needed anymore. | 2014-11-25 | 1 | -1/+3 | |
| | | | | ok millert | ||||
* | add an EXIT STATUS section for /usr/bin; | 2010-09-03 | 1 | -3/+3 | |
| | |||||
* | make fgetln fixups look like the man page. correct a pair of brances and | 2010-08-12 | 1 | -11/+14 | |
| | | | | some other style tweaks | ||||
* | rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and | 2009-10-27 | 1 | -12/+1 | |
| | | | | | | | unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms | ||||
* | bump the posix reference in STANDARDS to IEEE Std 1003.1-2008, with a few | 2009-02-08 | 1 | -3/+3 | |
| | | | | updates to follow; | ||||
* | replace hardcoded exit values with .Ex macros; | 2009-01-04 | 1 | -5/+3 | |
| | | | | ok jmc@ | ||||
* | the ellipsis is not an optional argument; while here, sync the usage | 2007-08-06 | 2 | -7/+7 | |
| | | | | | | | | and synopsis of commands lots of good ideas by jmc@ ok jmc@ | ||||
* | convert to new .Dd format; | 2007-05-31 | 1 | -2/+2 | |
| | |||||
* | - use a consistent text for STANDARDS | 2007-05-30 | 1 | -5/+5 | |
| | | | | - note which options are extensions to POSIX | ||||
* | Use queue(3) macros instead of custom queue. | 2006-05-04 | 1 | -17/+13 | |
| | | | | OK beck@ | ||||
* | add an EXAMPLES section adapted from freebsd's page, | 2006-01-04 | 1 | -1/+27 | |
| | | | | courtesy of ray lai; | ||||
* | use err/warn | 2004-10-10 | 1 | -20/+15 | |
| | |||||
* | add missing includes | 2003-07-10 | 1 | -2/+3 | |
| | | | | ok deraadt@ tedu@ | ||||
* | mostly ansi cleanup; pval ok | 2003-06-10 | 1 | -12/+7 | |
| | |||||
* | Remove the advertising clause in the UCB license which Berkeley | 2003-06-03 | 2 | -13/+5 | |
| | | | | rescinded 22 July 1999. Proofed by myself and Theo. | ||||
* | Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically. | 2002-02-16 | 1 | -6/+6 | |
| | |||||
* | kill more registers | 2001-11-19 | 1 | -10/+10 | |
| | | | | millert@ ok | ||||
* | Change all option list specifications to ".Bl -tag -width Ds". Most man | 2000-11-09 | 1 | -2/+2 | |
| | | | | | pages just needed their -width parameter tweaked to "Ds", which provides a nice width of 6 constant characters. For consistency more than anything. | ||||
* | Check return value of malloc(). Also make the code clearer with respect to | 2000-06-07 | 1 | -12/+10 | |
| | | | | setting lbuf = NULL; millert@ ok | ||||
* | Various cleanups and standardization. | 2000-03-10 | 1 | -4/+5 | |
| | |||||
* | better fix; now if the last line in a file stream does not contain a newline, | 1999-08-24 | 1 | -19/+32 | |
| | | | | | construct a null-terminated copy of the buffer returned by fgetln() and process it as normal | ||||
* | fgets() -> fgetln(). When reading files like this, the notion of a `line' is | 1999-08-23 | 1 | -9/+11 | |
| | | | | | | | more appropriate than C strings. Now paste won't die if it encounters null characters. If the last line in the stream does not contain a newline, we now say "incomplete line" instead of lying about "line too long". fgetln() uses realloc, so now we're not limited to POSIX_LINE_MAX. | ||||
* | - remove trailing white space | 1999-06-05 | 1 | -2/+2 | |
| | | | | | | | - remove arguments from .Os macros - remove arguments from .Nm macros, where appropriate - some more Dq/Sq/Ql insanity - still lots to do in the usr.bin tree... :/ | ||||
* | more -Wall | 1998-11-16 | 1 | -7/+18 | |
| | |||||
* | usr.bin/ man page cleanups, n-s | 1998-09-27 | 1 | -6/+10 | |
| | |||||
* | r?index -> strr?chr | 1997-01-17 | 1 | -4/+4 | |
| | |||||
* | getopt(3) returns -1 when out of args, not EOF, whee! | 1997-01-15 | 1 | -3/+3 | |
| | |||||
* | rcsid | 1996-06-26 | 3 | -4/+5 | |
| | |||||
* | initial import of NetBSD tree | 1995-10-18 | 3 | -0/+378 | |