From owner-freebsd-commit Thu Oct 26 09:25:41 1995 Return-Path: owner-commit Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id JAA12153 for freebsd-commit-outgoing; Thu, 26 Oct 1995 09:25:41 -0700 Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id JAA12141 for cvs-all-outgoing; Thu, 26 Oct 1995 09:25:38 -0700 Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id JAA12131 for cvs-libexec-outgoing; Thu, 26 Oct 1995 09:25:35 -0700 Received: (from wpaul@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id JAA12121 ; Thu, 26 Oct 1995 09:25:30 -0700 Date: Thu, 26 Oct 1995 09:25:30 -0700 From: Bill Paul Message-Id: <199510261625.JAA12121@freefall.freebsd.org> To: CVS-commiters, cvs-libexec Subject: cvs commit: src/libexec/revnetgroup - Imported sources Sender: owner-commit@FreeBSD.org Precedence: bulk wpaul 95/10/26 09:25:30 Branch: libexec/revnetgroup 1.1.1 Log: Import the first cut of my (finally finished) revnetgroup program. This program parses the /etc/netgroup file into netgroup.byuser and netgroup.byhost format for NIS. I used hash tables to store the initial netgroup data in memory and to construct the 'reverse' netgroup output. It seems just as fast as the SunOS revnetgroup, which is surprising considering this is my first attempt at using hash tables in a real application. :) Note that I canibalized a large chunk of getnetgrent.c to save myself from having to write my own netgroup parsing functions. Status: Vendor Tag: WPAUL Release Tags: ver_1_1 N src/libexec/revnetgroup/Makefile N src/libexec/revnetgroup/hash.c N src/libexec/revnetgroup/parse_netgroup.c N src/libexec/revnetgroup/revnetgroup.c N src/libexec/revnetgroup/hash.h N src/libexec/revnetgroup/revnetgroup.8 No conflicts created by this import