Commit Graph

38 Commits

Author SHA1 Message Date
schwarze 5bdb5d3d29 Add HISTORY and AUTHORS.
In https://minnie.tuhs.org/pipermail/tuhs/2020-January/019955.html ,
Brian Walden wrote (which looks like a reliable source to me):

"GWRL stands for Gottfried W. R. Luderer, the author of cut(1) and
paste(1), probably around 1978.  Those came either from PWB or USG,
as he worked with, or for, Berkley Tague. Thus they made their way
into AT&T commercial UNIX, first into System III and the into System
V, and that's why they are missing from early BSD releases as they
didn't get into Research UNIX until the 8th Edition.
[...]
I knew Dr. Luderer [...]
I also briefly worked for Berk when he was the department head
for 45263 in Whippany Bell Labs before moving to Murray Hill."

Omission pointed out by daniel@.
Joint work with jsg@.
OK jsg@ daniel@.
2022-08-04 15:38:33 +00:00
schwarze 5017b69c16 fix a glitch in rev. 1.24: getline(3) returns ssize_t, not size_t;
pointed out by Andre Stoebe <as at nul not space>
2018-08-04 19:19:37 +00:00
schwarze 194d006205 obvious KNF: avoid '!' for tests of non-boolean variables,
__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
2018-08-04 16:47:05 +00:00
schwarze 2e7cd69a72 Use POSIX getline(3) rather than the non-standard and error-prone fgetln(3).
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@.
2018-08-04 16:14:03 +00:00
guenther 1ada7db47e When invoked with no file arguments, display usage and fail instead of
silently doing nothing.

suggested by Klemens Nanni (kl3 (at) posteo.org), from FreeBSD r92772
ok millert@
2018-01-02 06:56:41 +00:00
schwarze bed15beb58 Remove the nonsensical "-s - -" in the third example; quirk reported
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.
2017-06-28 14:49:26 +00:00
mmcc 56b1f53fda Remove NULL-checks before free(). ok tb@ 2015-12-09 19:39:10 +00:00
deraadt 0bd1216cbf Change all tame callers to namechange to pledge(2). 2015-10-09 01:37:06 +00:00
deraadt 23460c7edc tame "stdio rpath", satisfies the fopen cases
ok semarie
2015-10-07 14:12:42 +00:00
tobias 0d86349cb6 Release file descriptors as soon as they are not needed anymore.
ok millert
2014-11-25 10:20:24 +00:00
jmc f1c64ac4de add an EXIT STATUS section for /usr/bin; 2010-09-03 11:09:28 +00:00
tedu 6e6462b96a make fgetln fixups look like the man page. correct a pair of brances and
some other style tweaks
2010-08-12 05:02:52 +00:00
deraadt 043fbe51c1 rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and
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
2009-10-27 23:59:19 +00:00
jmc 99332e389a bump the posix reference in STANDARDS to IEEE Std 1003.1-2008, with a few
updates to follow;
2009-02-08 17:15:08 +00:00
sobrado 49378797c9 replace hardcoded exit values with .Ex macros;
ok jmc@
2009-01-04 11:19:55 +00:00
sobrado 03cb09c0d4 the ellipsis is not an optional argument; while here, sync the usage
and synopsis of commands

lots of good ideas by jmc@

ok jmc@
2007-08-06 19:16:05 +00:00
jmc 9490d37cb6 convert to new .Dd format; 2007-05-31 19:19:00 +00:00
jmc 7c5a075bb3 - use a consistent text for STANDARDS
- note which options are extensions to POSIX
2007-05-30 04:41:33 +00:00
ray bae30663fe Use queue(3) macros instead of custom queue.
OK beck@
2006-05-04 05:55:33 +00:00
jmc 695fe63e39 add an EXAMPLES section adapted from freebsd's page,
courtesy of ray lai;
2006-01-04 16:15:05 +00:00
mickey f7882a9e2f use err/warn 2004-10-10 03:29:29 +00:00
david 70ef01f6b6 add missing includes
ok deraadt@ tedu@
2003-07-10 00:03:01 +00:00
deraadt 1837a5ca50 mostly ansi cleanup; pval ok 2003-06-10 22:20:44 +00:00
millert f75387cb26 Remove the advertising clause in the UCB license which Berkeley
rescinded 22 July 1999.  Proofed by myself and Theo.
2003-06-03 02:56:05 +00:00
millert c72b5b24e1 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 21:27:05 +00:00
mpech c0932ef1ff kill more registers
millert@ ok
2001-11-19 19:02:13 +00:00
aaron f1ba34738e Change all option list specifications to ".Bl -tag -width Ds". Most man
pages just needed their -width parameter tweaked to "Ds", which provides
a nice width of 6 constant characters. For consistency more than anything.
2000-11-09 17:51:53 +00:00
aaron c94538280c Check return value of malloc(). Also make the code clearer with respect to
setting lbuf = NULL; millert@ ok
2000-06-07 14:20:15 +00:00
aaron ad32b772cb Various cleanups and standardization. 2000-03-10 20:17:48 +00:00
aaron 74ccaa3710 better fix; now if the last line in a file stream does not contain a newline,
construct a null-terminated copy of the buffer returned by fgetln() and process
it as normal
1999-08-24 18:49:45 +00:00
aaron f523d39893 fgets() -> fgetln(). When reading files like this, the notion of a `line' is
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.
1999-08-23 23:58:23 +00:00
aaron 2e0eb34f9e - remove trailing white space
- 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... :/
1999-06-05 01:21:16 +00:00
deraadt 2ed5cd9005 more -Wall 1998-11-16 06:09:12 +00:00
aaron 9e17188366 usr.bin/ man page cleanups, n-s 1998-09-27 16:57:47 +00:00
millert 180acc8f08 r?index -> strr?chr 1997-01-17 07:10:42 +00:00
millert 72799b18e5 getopt(3) returns -1 when out of args, not EOF, whee! 1997-01-15 23:40:20 +00:00
deraadt 1258a77d10 rcsid 1996-06-26 05:31:08 +00:00
deraadt df930be708 initial import of NetBSD tree 1995-10-18 08:37:01 +00:00