Commit Graph

55 Commits

Author SHA1 Message Date
kevlo 4fb3143d4d Remove igetnext prototype for the function does not exist.
ok deraadt@
2020-09-15 07:41:38 +00:00
deraadt 647427d6f3 More correction of section 3 layout. directory->opendir, fts->fts_open,
getcap->cgetent.  pwcache->user_from_uid. And then repair references.
ok jmc
2019-09-02 21:18:40 +00:00
schwarze 80e53f5bf6 Actually, the C standard only guarantees that atexit(3) returns non-zero
on error, so tweak previous to test "atexit(...) != 0" for portability.
"OK ok ok sorry backwards" deraadt@
2019-06-28 14:20:40 +00:00
deraadt abcdd3629c atexit() returns -1 on failure 2019-06-28 05:33:35 +00:00
espie 58a577e134 remove redundant variable declarations in Makefiles, since those are
the default.

okay millert@
2017-07-09 21:23:18 +00:00
jmc 1497f5f661 remove -i from SYNOPSIS and usage(); 2015-12-04 19:15:54 +00:00
nicm fcee857966 cap_mkdb no longer needs to understand terminfo files, so remove -i.
ok tedu millert
2015-12-04 13:58:09 +00:00
nicm 7f1c4abd06 Change /usr/share/misc/terminfo.db to /usr/share/terminfo.
ok millert
2015-12-03 11:32:34 +00:00
deraadt d22c96fa78 Pretty sure this can pledge "stdio rpath wpath cpath". Commiting to start
the review for regressions...
2015-10-29 02:58:00 +00:00
deraadt b9fc9a728f Replace <sys/param.h> with <limits.h> and other less dirty headers where
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)
2015-01-16 06:39:28 +00:00
deraadt ad372fd5c6 change a local char * to unsigned, to ease ctype handling
ok krw
2013-11-26 18:47:06 +00:00
millert b2d8a83adb Speed up igetnext() by passing the record we want to parse in to
getent() as toprec.  Makesd cap_mkdb faster when building termino.db.
OK nicm@
2011-07-22 01:11:05 +00:00
nicm 90c162cc60 Nuke a load of trailing whitespace; no binary change. 2011-07-04 21:34:54 +00:00
jmc f1c64ac4de add an EXIT STATUS section for /usr/bin; 2010-09-03 11:09:28 +00:00
nicm 3f36d9649e Fix memory leaks found by parfait.
ok deraadt@ jsg@
2009-11-11 23:49:01 +00:00
nicm 96d7036ff6 If the last name field looks like a description rather than an alias (if it
contains spaces), ignore it. Knocks a few K off the termcap and terminfo
databases and gets rid of some warnings.

ok millert
2009-11-01 23:16:39 +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
nicm 8c2edd3c2c Change cap_mkdb and curses to be a better about reformatting terminfo entries
into the cap database format and back: rather than replacing all colons with
commas, only touch real separators (skip those with a leading \ or ^) and
replace an unadorned colon with a literal "\072".

Fixes problems with quite a few caps including acsc in "screen" (:s instead of
,s) and setab/initc in "xterm-256color" (wrongly concatenated together).

ok millert
2009-08-28 11:43:50 +00:00
sobrado 49378797c9 replace hardcoded exit values with .Ex macros;
ok jmc@
2009-01-04 11:19:55 +00:00
jmc 9490d37cb6 convert to new .Dd format; 2007-05-31 19:19:00 +00:00
deraadt a5375fae19 typo in license found by ray; verified repair using my old archives... 2007-05-09 03:07:19 +00:00
ray 3812d0332d Compare chars with '\0', not NULL. 2007-05-07 03:53:46 +00:00
ray ab9ba9fbfb Replace manual loops with strcspn and plug realloc memory leaks.
OK jaredy@ and moritz@.
2007-05-07 02:23:13 +00:00
ray bb64d379c6 Grammar. 2007-05-06 01:12:25 +00:00
jmc a214785d9d tidy up SYNOPSIS; from Igor Sobrado 2007-03-29 11:31:01 +00:00
ray 825e7f1882 In all these cases pfp != NULL. I also sneaked in some KNF.
Okay jaredy, millert@, and otto@
2006-03-18 03:55:09 +00:00
ray dd21e7fcc8 Don't ferror() after fclose().
Don't dereference NULL pointer if file is truncated.
Sync with cgetnext(3).

ok otto and millert
2006-03-10 05:20:35 +00:00
otto 0295bab262 Plug a mem leak; ok millert@ 2006-03-04 20:32:51 +00:00
jmc 7feb28f1af fix some typos in comments; from ray lai
ok otto
2006-02-20 09:23:26 +00:00
tedu f70642538a better realloc. ok deraadt@ 2003-09-26 21:25:34 +00:00
millert 61d8763b01 Replace err(1, "") with err(1, NULL) to avoid a warning; Andrey Matveev 2003-09-21 22:32:02 +00:00
deraadt 1837a5ca50 mostly ansi cleanup; pval ok 2003-06-10 22:20:44 +00:00
deraadt 4b873f7e9c term 3 & 4 from tholo after permission 2003-06-04 16:24: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
deraadt c3e1e82e9b first pass at a -Wall cleanup 2001-07-12 05:16:53 +00:00
millert df1be10c28 use cgetusedb(3) 2001-06-18 18:17:58 +00:00
millert b865b17ef0 kill useless include of db.h 2001-06-18 18:17:39 +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
naddy 3839cc7594 - move break from loop on EOF in order to make cap_mkdb not ignore the final
record in terminfo mode
- while we're here fix indentation, spelling
okay millert@
2000-09-22 22:22:22 +00:00
aaron de1a2e14f0 Many improvements and general cleanup/standardization. 2000-03-04 21:11:59 +00:00
millert 4c8ddc3b41 When storing termcap entry in the .db file, prune out empty entries like
:\t: since space may be tight with the 1023 character termcap limit.
2000-01-09 01:10:37 +00:00
aaron cca4cde80d remove redundant .Pp macros 1999-07-03 02:11:06 +00:00
aaron 6a6c69aa01 consistent .Dd usage; proper format is: .Dd Month DD, YYYY 1999-07-02 20:11:44 +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
tholo bd11b910c9 Merge cap_mkdb(1) and info_mkdb(1) 1999-03-05 04:47:44 +00:00
aaron a06b6ec477 usr.bin/ man page repairs, a - e 1998-09-23 04:32:33 +00:00
aaron fb1a43c9c8 More man page fixes. Spelling, grammar, some typos. Lots of double-word
occurrences squashed as well.
1998-09-06 22:23:16 +00:00
deraadt e189ddde44 $OpenBSD$ 1997-09-21 11:34:32 +00:00