summaryrefslogtreecommitdiffstats
path: root/usr.bin/paste/paste.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* fix a glitch in rev. 1.24: getline(3) returns ssize_t, not size_t;schwarze2018-08-041-3/+5
| | | | pointed out by Andre Stoebe <as at nul not space>
* obvious KNF: avoid '!' for tests of non-boolean variables,schwarze2018-08-041-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).schwarze2018-08-041-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 ofguenther2018-01-021-1/+4
| | | | | | | silently doing nothing. suggested by Klemens Nanni (kl3 (at) posteo.org), from FreeBSD r92772 ok millert@
* Remove NULL-checks before free(). ok tb@mmcc2015-12-091-3/+2
|
* Change all tame callers to namechange to pledge(2).deraadt2015-10-091-3/+3
|
* tame "stdio rpath", satisfies the fopen casesderaadt2015-10-071-1/+4
| | | | ok semarie
* Release file descriptors as soon as they are not needed anymore.tobias2014-11-251-1/+3
| | | | ok millert
* make fgetln fixups look like the man page. correct a pair of brances andtedu2010-08-121-11/+14
| | | | some other style tweaks
* rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andderaadt2009-10-271-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
* the ellipsis is not an optional argument; while here, sync the usagesobrado2007-08-061-4/+4
| | | | | | | | and synopsis of commands lots of good ideas by jmc@ ok jmc@
* Use queue(3) macros instead of custom queue.ray2006-05-041-17/+13
| | | | OK beck@
* use err/warnmickey2004-10-101-20/+15
|
* add missing includesdavid2003-07-101-2/+3
| | | | ok deraadt@ tedu@
* mostly ansi cleanup; pval okderaadt2003-06-101-12/+7
|
* Remove the advertising clause in the UCB license which Berkeleymillert2003-06-031-7/+3
| | | | 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.millert2002-02-161-6/+6
|
* kill more registersmpech2001-11-191-10/+10
| | | | millert@ ok
* Check return value of malloc(). Also make the code clearer with respect toaaron2000-06-071-12/+10
| | | | setting lbuf = NULL; millert@ ok
* better fix; now if the last line in a file stream does not contain a newline,aaron1999-08-241-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' isaaron1999-08-231-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.
* more -Wallderaadt1998-11-161-7/+18
|
* r?index -> strr?chrmillert1997-01-171-4/+4
|
* getopt(3) returns -1 when out of args, not EOF, whee!millert1997-01-151-3/+3
|
* rcsidderaadt1996-06-261-1/+3
|
* initial import of NetBSD treederaadt1995-10-181-0/+252