Commit Graph

18 Commits

Author SHA1 Message Date
christos
b2af84a88a bump PROTOMAX 2010-10-07 01:28:50 +00:00
wiz
430d51d315 Accept -v in getopt(); sort flag cases. 2010-05-05 22:10:50 +00:00
joerg
aa73978631 Add verbose flag -v and make -q the default behavior. 2010-05-05 13:19:51 +00:00
joerg
b9cf7d31ab Add the constant database reader (cdbr(3)) and writer ((cdbw(3)).
They implement a space efficent write-once database with fast access
path. Switch the services(5) database to use cdb. The size of the
database file decreases from 2.1MB disk space to 307KB. Access
performance is about the same if setservent(0) is used and about an
order of magnitude faster otherwise. services_mkdb defaults to the new
format, but can optionally create the old db(3) format as well for
statically linked legacy applications.
2010-04-25 00:54:44 +00:00
martin
ce099b4099 Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
dholland
dbb1ba5a88 Always clear the output string buffer in mkaliases(), to avoid reusing
old aliases from an earlier line if there were none here and thus
emitting a lot of crap into the database. PR lib/37711.
2008-03-09 01:29:34 +00:00
perry
8b0f9554ff convert __attribute__s to applicable cdefs.h macros 2007-12-15 19:44:37 +00:00
christos
335dde11a5 fix usage check. 2007-06-23 17:02:03 +00:00
christos
4f52df9a5e Add a uniq option to delete duplicate entries from the services file. 2007-06-23 16:55:15 +00:00
christos
b13d830ce7 Change the way we parse so that the two lines"
foo	11/tcp
	bar	11/tcp
are equivalent to:
	foo	11/tcp	bar
This way we can use the IANA services file properly *and* be able to augment
it with our entries without needing to intersperse our fixes.
2007-05-15 19:57:40 +00:00
christos
3409f393b9 specify the initial hash parameters so that we don't end up rehashing a
zillion times. Makes this run 50x faster.
2007-05-13 17:43:59 +00:00
christos
aa08bd4677 add one more missing warn. 2007-05-08 20:17:57 +00:00
christos
deb490e687 Add quiet mode. 2007-05-08 20:14:59 +00:00
christos
b00752709e more cleanups. 2006-07-28 16:34:28 +00:00
christos
ee343feee7 use indirect lookup to save space. 2006-07-28 15:15:16 +00:00
christos
69ee26299b Put this back, heavily hacked by me. 2006-07-27 22:13:38 +00:00
lukem
4ee8c8fdad it's unlikely that 1.4 will ship with support for db backends for
services, and if it does, the work this was going to do could be done
with awk | makedbm ...
1999-02-12 04:24:49 +00:00
lukem
cb2392ad04 services_mkdb; generate db file from services(5) to increase speed of getserv*() 1999-02-08 03:57:04 +00:00