]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
(This import had better work correctly or so help me I'll move to
authorwpaul <wpaul@FreeBSD.org>
Tue, 25 Jun 1996 20:26:38 +0000 (20:26 +0000)
committerwpaul <wpaul@FreeBSD.org>
Tue, 25 Jun 1996 20:26:38 +0000 (20:26 +0000)
commita757918b5e9d0e4975bbd8acc71a63f06710858b
treeadefd091f0cd350395b6b73ceddcb465fd5360c4
parentd6af1e17162d34157b22057bc35ddbbd7d2a347b
(This import had better work correctly or so help me I'll move to
the Himalayas and become a hermit.)

Import new mknetid program. This replaces the crufty, soon to be defunct
mknetid script packaged with ypserv.

This program parses the group, passwd, hosts and netid databases into
the netid.byname map. Duplicate checking is performed using hash tables.
Testing on my 486DX2/66 with FreeBSD 2.1.0 showed that this program can
process a 30,000-entry passwd database into a netid map (along with
assorted group and hosts information) in about 22 seconds. On my SPARC IPX
with SunOS 4.1.3, it takes about 15 seconds. This compares favorably with
the SunOS mknetid program, which parses the same database(s) in 13 seconds.
(With smaller databases, my program is actually slightly faster. Go
figure.)
dist/libexec/mknetid/Makefile [new file with mode: 0644]
dist/libexec/mknetid/hash.c [new file with mode: 0644]
dist/libexec/mknetid/hash.h [new file with mode: 0644]
dist/libexec/mknetid/mknetid.8 [new file with mode: 0644]
dist/libexec/mknetid/mknetid.c [new file with mode: 0644]
dist/libexec/mknetid/parse_group.c [new file with mode: 0644]