aboutsummaryrefslogtreecommitdiff
path: root/libexec/mknetid
Commit message (Collapse)AuthorAgeFilesLines
* MFC: add sanity checkJordan K. Hubbard1998-03-051-1/+3
| | | | Notes: svn path=/stable/2.2/; revision=34053
* MFC: Cosmetics in usage() and man page.Philippe Charnier1997-12-154-63/+63
| | | | Notes: svn path=/stable/2.2/; revision=31736
* MFC: EOF -> -1 for getoptWarner Losh1997-12-041-3/+3
| | | | Notes: svn path=/stable/2.2/; revision=31528
* Nuke a couple of useless lines of code from the /etc/netid parsingBill Paul1996-10-241-4/+2
| | | | | | | section. (Cut & paste-o.) Notes: svn path=/head/; revision=19143
* Include <sys/types.h> before including <grp.h> so that this doesn'tBruce Evans1996-07-121-9/+13
| | | | | | | | | depend on <stdio.h> bogusly including <sys/types.h> Reordered includes to satisfy KNF rules. Notes: svn path=/head/; revision=17115
* Improve performance with very large user databases by increasingBill Paul1996-06-272-9/+9
| | | | | | | | | | | | hash table size from 256 to 1024. Generate output that looks more like the SunOS mknetid: uses a space instead of tabs for white space. Fix typo in comment in hash.h: Groupit -> Groupid. Notes: svn path=/head/; revision=16793
* (This import had better work correctly or so help me I'll move toBill Paul1996-06-256-0/+838
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.) Notes: svn path=/cvs2svn/branches/WPAUL/dist/; revision=16728