Home | History | Annotate | only in /src/usr.sbin/services_mkdb
History log of /src/usr.sbin/services_mkdb
RevisionDateAuthorComments
 1.7 25-Apr-2010  joerg 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.
 1.6 22-Apr-2009  lukem Enable WARNS=4 by default, except for:
cpuctl dumplfs hprop ipf iprop-log kadmin kcm kdc kdigest
kimpersonate kstash ktutil makefs ndbootd ntp pppd quot
racoon racoonctl rtadvd sntp sup tcpdchk tcpdmatch tcpdump
traceroute traceroute6 user veriexecgen wsmoused zic
(Mostly third-party applications)
 1.5 13-Feb-2009  uebayasi Comment out CFLAGS+=-g.
 1.4 23-Jun-2007  christos branches: 1.4.18; 1.4.20;
Add a uniq option to delete duplicate entries from the services file.
 1.3 27-Jul-2006  christos Put this back, heavily hacked by me.
 1.2 12-Feb-1999  lukem 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 ...
 1.1 08-Feb-1999  lukem services_mkdb; generate db file from services(5) to increase speed of getserv*()
 1.4.20.1 13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.4.18.1 08-Dec-2010  riz Pull up following revision(s) (requested by uwe in ticket #1490):
usr.bin/mkdep/Makefile: revision 1.16
sbin/dump_lfs/Makefile: revision 1.10
usr.sbin/services_mkdb/Makefile: revision 1.5
sbin/ifconfig/Makefile: revision 1.40
usr.sbin/racoonctl/Makefile: revision 1.3
sbin/sysctl/Makefile: revision 1.18
Comment out CFLAGS+=-g.
Disable debug.
 1.2 31-Aug-2011  joerg Use __dead
 1.1 25-Apr-2010  joerg 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.
 1.3 08-Aug-2023  riastradh services_mkdb(8): No need for weird padding any more.

cdbw_output never needed it at runtime, and the declaration no longer
makes gcc angry about not having it.
 1.2 07-Aug-2023  tnn services_mkdb: pad argument to cdbw_output(3) to match it's prototype
 1.1 25-Apr-2010  joerg 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.
 1.2 10-Jan-2017  christos need <sys/stat.h>
 1.1 25-Apr-2010  joerg branches: 1.1.28;
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.
 1.1.28.1 20-Mar-2017  pgoyette Sync with HEAD
 1.13 12-Feb-2023  uwe services(5): consistently refer to the cdb database

While here, fix a few markup nits.
 1.12 05-May-2010  wiz branches: 1.12.56;
Sort option descriptions.
 1.11 05-May-2010  joerg Add verbose flag -v and make -q the default behavior.
 1.10 25-Apr-2010  joerg 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.
 1.9 13-May-2009  wiz Sort option descriptions.
 1.8 30-Apr-2008  martin Convert TNF licenses to new 2 clause variant
 1.7 23-Jun-2007  christos branches: 1.7.10;
Add a uniq option to delete duplicate entries from the services file.
 1.6 20-May-2007  seb Update pathnames to the services and netgroups databases after their move
to /var/db.

Pooka@ made me do it.
 1.5 08-May-2007  christos Add quiet mode.
 1.4 30-Jul-2006  wiz branches: 1.4.4; 1.4.6;
Sort sections. Punctuation nits.
 1.3 27-Jul-2006  christos Put this back, heavily hacked by me.
 1.2 12-Feb-1999  lukem 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 ...
 1.1 08-Feb-1999  lukem services_mkdb; generate db file from services(5) to increase speed of getserv*()
 1.4.6.1 03-Jun-2008  skrll Sync with netbsd-4.
 1.4.4.1 03-Feb-2008  riz Pull up following revision(s) (requested by jnemeth in ticket #1033):
usr.sbin/services_mkdb/services_mkdb.8: revision 1.6 via patch
Update pathnames to the services and netgroups databases after their move
to /var/db.
Pooka@ made me do it.
 1.7.10.1 18-May-2008  yamt sync with head.
 1.12.56.1 17-Jan-2025  martin Pull up following revision(s) (requested by uwe in ticket #1040):

share/man/man5/services.5: revision 1.11
usr.sbin/services_mkdb/services_mkdb.8: revision 1.13

services(5): consistently refer to the cdb database

While here, fix a few markup nits.
 1.19 10-Jan-2017  christos need <sys/stat.h>
 1.18 07-Oct-2010  christos branches: 1.18.28;
bump PROTOMAX
 1.17 05-May-2010  wiz Accept -v in getopt(); sort flag cases.
 1.16 05-May-2010  joerg Add verbose flag -v and make -q the default behavior.
 1.15 25-Apr-2010  joerg 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.
 1.14 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.13 09-Mar-2008  dholland branches: 1.13.2;
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.
 1.12 15-Dec-2007  perry branches: 1.12.2;
convert __attribute__s to applicable cdefs.h macros
 1.11 23-Jun-2007  christos branches: 1.11.4;
fix usage check.
 1.10 23-Jun-2007  christos Add a uniq option to delete duplicate entries from the services file.
 1.9 15-May-2007  christos 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.
 1.8 13-May-2007  christos specify the initial hash parameters so that we don't end up rehashing a
zillion times. Makes this run 50x faster.
 1.7 08-May-2007  christos add one more missing warn.
 1.6 08-May-2007  christos Add quiet mode.
 1.5 28-Jul-2006  christos more cleanups.
 1.4 28-Jul-2006  christos use indirect lookup to save space.
 1.3 27-Jul-2006  christos Put this back, heavily hacked by me.
 1.2 12-Feb-1999  lukem 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 ...
 1.1 08-Feb-1999  lukem services_mkdb; generate db file from services(5) to increase speed of getserv*()
 1.11.4.2 23-Mar-2008  matt sync with HEAD
 1.11.4.1 09-Jan-2008  matt sync with HEAD
 1.12.2.1 24-Mar-2008  keiichi sync with head.
 1.13.2.1 18-May-2008  yamt sync with head.
 1.18.28.1 20-Mar-2017  pgoyette Sync with HEAD
 1.7 22-Mar-2021  christos Avoid memory leak on empty lines (https://reviews.freebsd.org/D29370)
 1.6 21-Jun-2014  christos add notreached comment
 1.5 25-Apr-2010  joerg branches: 1.5.12; 1.5.22;
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.
 1.4 28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.3 24-Jun-2007  christos branches: 1.3.10;
Fix white space compression from Jukka Salmi
 1.2 23-Jun-2007  christos fix a comment and use efopen
 1.1 23-Jun-2007  christos Add a uniq option to delete duplicate entries from the services file.
 1.3.10.1 18-May-2008  yamt sync with head.
 1.5.22.1 10-Aug-2014  tls Rebase.
 1.5.12.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.

RSS XML Feed