summaryrefslogtreecommitdiffstats
path: root/usr.bin/lam (follow)
Commit message (Collapse)AuthorAgeFilesLines
* UTF-8 support: use wcwidth(3) when calculating column widths;schwarze2018-07-294-31/+126
| | | | written during g218; no objection when shown on tech@
* After opening all the needed files, tighten the pledge(2)schwarze2018-07-111-1/+5
| | | | | | | from "stdio rpath" to just "stdio", before parsing any user data. It may not matter that much just yet, but parsing will become slightly more complicated soon when i shall add UTF-8 handling. OK millert@
* Repair the regression introduced by the recent refactoringschwarze2018-07-111-5/+5
| | | | | | revision 1.11 date: 2004/07/03 21:00:37; for -p/-P, the argument was no longer parsed, causing segfaults. OK millert@
* Add HISTORY and AUTHORS sections.schwarze2016-01-041-2/+9
| | | | | | | From the author John A. Kunze via https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=196786 and Michal Mazurek <akfaew at jasminek dot net>. Correctness also verified from the CSRG archive CD.
* Change all tame callers to namechange to pledge(2).deraadt2015-10-091-3/+3
|
* We continue our tour through obscure BSD <word escapes me>. This stdio-basedderaadt2015-10-071-1/+4
| | | | program may open files arbitrarily, so tame "stdio rpath" it from the start.
* Replace <sys/param.h> with <limits.h> and other less dirty headers wherederaadt2015-01-161-2/+2
| | | | | | | | | possible. Annotate <sys/param.h> lines with their current reasons. Switch to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where sensible to avoid pulling in the pollution. These are the files confirmed through binary verification. ok guenther, millert, doug (helped with the verification protocol)
* unsigned char casts for ctype.h macros, when dealing with optargderaadt2013-11-201-2/+3
| | | | ok ratchov
* Include unistd.h as it is the standard location for getopt().millert2013-11-151-1/+2
|
* rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andderaadt2009-10-271-14/+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
* replace ".Ar file ..." with ".Ar" whenever possible.sobrado2009-08-161-3/+3
| | | | ok jmc@
* Fix buffer overflow reported by Tobias Stoeckmann by increasing theray2007-06-261-13/+31
| | | | | | | number of file descriptors to the correct limit, NOFILE_MAX, and improve calculation of open file count. OK moritz
* convert to new .Dd format;jmc2007-05-311-2/+2
|
* nicer EXAMPLES; from ray laijmc2006-01-061-8/+10
|
* be aware of snprintf potentially returning -1deraadt2004-12-271-4/+6
|
* Fixes from Jared Yanovich with help from myself and cloder@; OK otto@millert2004-07-031-75/+68
| | | | | | | o make lam(1) use getopt(3) and err(3). o fix off-by-one error o use OPEN_MAX instead of rolling our own o a little KNF
* use err/warn and better usage printmickey2003-12-091-15/+14
|
* mostly ansi cleanup; pval okderaadt2003-06-101-13/+7
|
* Remove the advertising clause in the UCB license which Berkeleymillert2003-06-032-13/+5
| | | | rescinded 22 July 1999. Proofed by myself and Theo.
* mdoc version from NetBSD (wiz) with minor modifications and local changes.millert2003-04-211-64/+60
|
* Use strlcpy() and snprintf() in favor of inline strcpy() and sprintf().millert2003-04-211-13/+13
| | | | | Based on a diff from krw but this uses the strlcpy() / snprintf() return values. millert tested, krw approved...
* Consider 0 characters left to be a lack of format space.krw2003-04-061-3/+3
| | | | ok deraadt@ millert@
* simple snprintf; miod okderaadt2003-04-051-3/+4
|
* use $ or # before commands in examplesderaadt2002-11-141-5/+5
|
* 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-11/+11
| | | | millert@ ok
* $OpenBSD$deraadt1997-09-211-2/+1
|
* rcsidderaadt1996-06-263-2/+4
|
* initial import of NetBSD treederaadt1995-10-183-0/+373