summaryrefslogtreecommitdiff
path: root/usr.bin/paste/paste.c
AgeCommit message (Collapse)Author
2010-08-12make fgetln fixups look like the man page. correct a pair of brances andTed Unangst
some other style tweaks
2009-10-28rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andTheo de Raadt
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
2007-08-06the ellipsis is not an optional argument; while here, sync the usageIgor Sobrado
and synopsis of commands lots of good ideas by jmc@ ok jmc@
2006-05-04Use queue(3) macros instead of custom queue.Ray Lai
OK beck@
2004-10-10use err/warnMichael Shalayeff
2003-07-10add missing includesDavid Krause
ok deraadt@ tedu@
2003-06-10mostly ansi cleanup; pval okTheo de Raadt
2003-06-03Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.
2002-02-16Part one of userland __P removal. Done with a simple regexp with some minor ↵Todd C. Miller
hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
2001-11-19kill more registersMike Pechkin
millert@ ok
2000-06-07Check return value of malloc(). Also make the code clearer with respect toAaron Campbell
setting lbuf = NULL; millert@ ok
1999-08-24better fix; now if the last line in a file stream does not contain a newline,Aaron Campbell
construct a null-terminated copy of the buffer returned by fgetln() and process it as normal
1999-08-23fgets() -> fgetln(). When reading files like this, the notion of a `line' isAaron Campbell
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.
1998-11-16more -WallTheo de Raadt
1997-01-17r?index -> strr?chrTodd C. Miller
1997-01-15getopt(3) returns -1 when out of args, not EOF, whee!Todd C. Miller
1996-06-26rcsidTheo de Raadt
1995-10-18initial import of NetBSD treeTheo de Raadt