Commit Graph

47 Commits

Author SHA1 Message Date
snj fc99b6a4d6 Change some standard exit status text to ".Ex -std"
From Eitan Adler in PR bin/47790.
2014-04-13 01:45:34 +00:00
christos df71b4bc46 PR/32591: JuanRP: Also remove the file we are going to be building to prevent
it from being used as input.
2013-03-26 20:58:35 +00:00
riastradh 04ce843b93 Move assignment out of assertion in cap_mkdb. 2013-01-23 20:27:01 +00:00
roy 258cf0abec Add capfile(5) to describe the termcap format.
Adjust various man pages and other documentation to point to capfile(5)
instead of termcap(5).
Remove getcap(3) as curses hasn't been building it for a long time.
Punt wrterm.c as tset no longer uses it.
2012-04-21 12:27:24 +00:00
joerg d04cc43e5c usage() is not unused, it is dead 2011-08-29 13:56:17 +00:00
christos 2da76c1342 eliminate gcc4.5 warnings 2011-08-14 12:50:10 +00:00
mrg c111245a78 apply some -Wno-error and/or -fno-strict-aliasing.
all of this should be looked at closer, but some of them are not
very trivial.
2011-06-22 02:49:41 +00:00
joerg 571df0a6a5 Fix trailing whitespace 2010-05-14 01:53:28 +00:00
lukem c1ceae17f0 Enable WARNS=4 by default for usr.bin, except for:
awk  bdes  checknr  compile_et  error  gss  hxtool  kgetcred  kinit
	klist  ldd  less  lex  locale  login  m4  man  menuc  mk_cmds
	mklocale  msgc  openssl  rpcgen  rpcinfo  sdiff  spell  ssh
	string2key  telnet  tn3270  verify_krb5_conf  xlint
2009-04-14 22:15:16 +00:00
christos e60db6c82e coverity CID 515: Use assert. 2009-02-18 20:00:32 +00:00
lukem 98e5374ccb Remove the \n and tabs from the __COPYRIGHT() strings.
Tweak to use a consistent format.
2008-07-21 14:19:20 +00:00
erh 570958013a Clarify what the format section of the cap_mkdb man page is talking about. 2008-01-31 04:00:54 +00:00
perry 8b0f9554ff convert __attribute__s to applicable cdefs.h macros 2007-12-15 19:44:37 +00:00
christos 69637e8009 Write the database file into a temporary file first, because otherwise if
we don't specify an output filename, the database file we create will end
up being used during population as the database file to find entries quickly.
2005-04-13 04:50:22 +00:00
jmmv 564aa25e97 Drop extra space before a dot. 2004-09-26 21:19:47 +00:00
christos e2c2ba101a add WARNS=3 2004-04-23 21:39:43 +00:00
christos 5cb9041b96 const, knf, WARNS=3 2004-04-23 21:39:33 +00:00
lukem 171d653219 Overhaul how `build.sh tools' are used:
*	Rename "config.h" to "nbtool_config.h" and
	HAVE_CONFIG_H to HAVE_NBTOOL_CONFIG_H.
	This makes in more obvious in the source when we're using
	tools/compat/config.h versus "standard autoconf" config.h

    *	Consistently move the inclusion of nbtool_config.h to before
    	<sys/cdefs.h> so that the former can provide __RCSID() (et al),
    	and there's no need to protect those macros any more.

These changes should make it easier to "tool-ify" a program by adding:
	#if HAVE_NBTOOL_CONFIG_H
	#include "nbtool_config.h"
	#endif
to the top of the source files (for the general case).
2003-10-27 00:12:41 +00:00
itojun d5250e4ec9 safer use of realloc 2003-10-16 06:34:19 +00:00
agc 89aaa1bb64 Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22365, verified by myself.
2003-08-07 11:13:06 +00:00
lukem 826a14607a Now that <bsd.prog.mk> DTRT if HOSTPROG is defined (i.e, it is a no-op),
there's no need to special-case .include-ing it.
2003-05-18 07:57:31 +00:00
uwe 4eb408dcd9 Avoid cgetcap &co prototypes conflicting with those provided by the host.
With this change we can cross-compile on FreeBSD 4.x.
2003-01-31 20:50:29 +00:00
grant be8ae688ae New sentence, new line. 2002-09-30 11:08:56 +00:00
ross 2a76afae02 Generate <>& symbolically. I'm avoiding .../dist/... directories for now. 2002-02-08 01:36:18 +00:00
tv cce248537b Make this compilable as a host tool. 2002-01-31 19:23:50 +00:00
wiz c6c6db2fc7 "-indent" is not a valid .Bl argument, "-offset indent" is (found by
groff-1.17.2).
Fix some whitespace.
2001-10-17 22:28:49 +00:00
jdolecek b80b95a77a Examine input files and set the openinfo hint accordingly to number of
found records. This makes resulting db for small capability databases
much smaller - for vgrind(1), the resulting vgrindefs.db is about 24KB
instead of ~500KB.

The hint passed to dbopen() is number of records in input files
rounded up to nearest power-of-two value and multiplied by two.
Besides being a nice conservative value, termcap.db become about
70KB bigger if the hint matches the count of records (1023), probably
due to hash overflows.
2001-01-28 20:01:42 +00:00
jdolecek 26a80cb447 make local functions static 2001-01-28 19:42:17 +00:00
jdolecek 8d46cb93bd db_build(): fix memory leak, free() the buffer allocated by cgetnext() on
every loop iteration
2001-01-28 17:34:31 +00:00
mjl 7063d4bc33 Un-__P and ANSIfy. 2000-10-04 20:02:26 +00:00
mjl a1ac373d57 Remove unused includes. 2000-10-04 20:00:47 +00:00
kleink 4918722a89 For commands and utilities, use EXIT STATUS rather than RETURN VALUES or
DIAGNOSTICS as appropriate (and documented in mdoc(7)).
2000-09-04 07:35:15 +00:00
msaitoh 759d929514 s/ as as / are as / 1999-10-08 18:13:16 +00:00
simonb a1997f6cbe Add -b and -l options to generate big- or little-endian databases
regardless of host byte order.
1999-06-27 05:49:02 +00:00
mycroft 8cedc3e89f Increase the initial hash table size. 1998-07-28 19:27:00 +00:00
mrg 15dc191955 fix compile warnings on the alpha. 1997-10-19 14:05:47 +00:00
lukem 9992ac3ea9 getopt returns -1 not EOF 1997-10-18 12:54:24 +00:00
lukem b749a32930 WARNSify, fix .Nm usage 1997-10-18 12:31:01 +00:00
cgd c917dfb5b2 Fix broken uses of Dd. Both the mdoc and mdoc.samples pages agree:
.Dd is supposed to be invoked like:
	.Dd month day, year
e.g. ".Dd January 25, 1989", rather than:
	.Dd "month day, year"
which is what these pages did.
1997-05-29 01:48:05 +00:00
lukem 5d37ffa7eb fix the the typos 1996-11-10 23:58:22 +00:00
jtc 3e4b73c5a6 Sync with 4.4lite2 1995-09-02 05:45:13 +00:00
glass c27cdc6057 new rcsid format 1995-03-26 03:59:33 +00:00
mycroft 573393b3d1 Tweak the hash parameters a bit; big win when run over NFS. Merge (copyright
notice) changes from 4.4-Lite.
1994-08-29 22:53:45 +00:00
mycroft e9d867ef50 Add RCS identifiers. 1993-08-01 17:54:45 +00:00
mycroft dfb9caab49 Add RCS indentifiers. 1993-08-01 07:32:48 +00:00
mycroft 690cae8181 Add RCS indentifiers. 1993-07-31 15:17:49 +00:00
cgd 8d5826635d bring in getcap routines, supplied by CSRG, from 4.4... 1993-05-18 07:37:51 +00:00