From owner-cvs-usrsbin Mon Apr 15 17:24:19 1996 Return-Path: owner-cvs-usrsbin Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id RAA20028 for cvs-usrsbin-outgoing; Mon, 15 Apr 1996 17:24:19 -0700 (PDT) Received: (from wpaul@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id RAA19897 Mon, 15 Apr 1996 17:24:02 -0700 (PDT) Date: Mon, 15 Apr 1996 17:24:02 -0700 (PDT) From: Bill Paul <wpaul> Message-Id: <199604160024.RAA19897@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-lib, cvs-include, cvs-usrsbin Subject: cvs commit: src/include pwd.h src/lib/libc/gen getpwent.c getnetgrent.c src/usr.sbin/pwd_mkdb pwd_mkdb.c Sender: owner-cvs-usrsbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk wpaul 96/04/15 17:24:00 Modified: lib/libc/gen getpwent.c getnetgrent.c include pwd.h Log: NIS cleanups and fixes, the next generation. getnetgrent.c: - Catch one bogon that snuck by: in _listmatch(), check for '\0' rather than '\n'; strings returned from yp_match() are terminated with a nul, not a newline. getpwent.c: - Rip out all of the +inclusion/-exclusion stuff from before and replace it with something a little less grotty. The main problem with the old mechanism was that it wasted many cycles processing NIS entries even after it already knew they were to be exlcuded (or not included, depending on your pointof view). The highlights of these changes include: o Uses an in-memory hash database table to keep track of all the -@netgroup, -user, and -@group exclusions. o Tries harder to duplicate the behavior normally obtained when using NIS inclusions/exclusions on a flat /etc/passwd file (meaning things come out in much the same order). o Uses seperate methods for handling getpwent() and getpwnam()/getpwuid() operations instead of trying to do everything with one general function, which didn't work as well as I thought it would. o Uses both getnetgrent() and innetgr() to try to save time where possible. o Use only one special token in the local password database (_PW_KEYYPBYNUM) instead of seperate tokens to mark + and - entries (and stop using the counter tokens too). If this new token doesn't exist, the code will make due with the standard _PW_KEYBYNUM token in order to support older databases that won't have the new token in them. All this is an attempt to make this stuff work better in environments with large NIS passwd databases. Revision Changes Path 1.32 +264 -264 src/lib/libc/gen/getpwent.c 1.15 +1 -1 src/lib/libc/gen/getnetgrent.c 1.5 +1 -4 src/include/pwd.h Modified: usr.sbin/pwd_mkdb pwd_mkdb.c Log: NIS cleanups and fixes, the next generation, continued. pwd_mkdb.c: - Don't save the PLUSCNT and MINUSCNT tokens: we don't need them anymore. - Count the + and - entires for NIS together instead of counting + and - entries seperately. Index all special NIS entries using new _PW_KEYYPBYNUM token. pwd.h: - Remove the PLUSBYNUM, MINUSBYNUM, PLUSCNT and MINUSCNT tokens and replace then with a single _PW_KEYYPBYNUM token. Revision Changes Path 1.10 +11 -56 src/usr.sbin/pwd_mkdb/pwd_mkdb.c From owner-cvs-usrsbin Wed Apr 17 01:58:05 1996 Return-Path: owner-cvs-usrsbin Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id BAA25820 for cvs-usrsbin-outgoing; Wed, 17 Apr 1996 01:58:05 -0700 (PDT) Received: (from pst@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id BAA25803 Wed, 17 Apr 1996 01:57:55 -0700 (PDT) Date: Wed, 17 Apr 1996 01:57:55 -0700 (PDT) From: Paul Traina <pst> Message-Id: <199604170857.BAA25803@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-usrsbin Subject: cvs commit: src/usr.sbin/qcamcontrol qcamcontrol.c Sender: owner-cvs-usrsbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk pst 96/04/17 01:57:54 Modified: usr.sbin/qcamcontrol qcamcontrol.c Log: Fix a few bugs in argument processing. Submitted by: Timo Kokkonen <tjko@jyu.fi> Revision Changes Path 1.3 +39 -3 src/usr.sbin/qcamcontrol/qcamcontrol.c From owner-cvs-usrsbin Wed Apr 17 13:51:03 1996 Return-Path: owner-cvs-usrsbin Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id NAA05805 for cvs-usrsbin-outgoing; Wed, 17 Apr 1996 13:51:03 -0700 (PDT) Received: (from joerg@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id NAA05769 Wed, 17 Apr 1996 13:50:49 -0700 (PDT) Date: Wed, 17 Apr 1996 13:50:49 -0700 (PDT) From: Joerg Wunsch <joerg> Message-Id: <199604172050.NAA05769@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-usrsbin Subject: cvs commit: src/usr.sbin/pstat pstat.8 Sender: owner-cvs-usrsbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk joerg 96/04/17 13:50:49 Modified: usr.sbin/pstat pstat.8 Log: Mention swapinfo as .Nm, so it will be referenced by mkwhatis. Revision Changes Path 1.7 +3 -2 src/usr.sbin/pstat/pstat.8 From owner-cvs-usrsbin Wed Apr 17 13:53:07 1996 Return-Path: owner-cvs-usrsbin Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id NAA06126 for cvs-usrsbin-outgoing; Wed, 17 Apr 1996 13:53:07 -0700 (PDT) Received: (from joerg@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id NAA06080 Wed, 17 Apr 1996 13:52:52 -0700 (PDT) Date: Wed, 17 Apr 1996 13:52:52 -0700 (PDT) From: Joerg Wunsch <joerg> Message-Id: <199604172052.NAA06080@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-usrsbin Subject: cvs commit: src/usr.sbin/pstat pstat.8 Sender: owner-cvs-usrsbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk joerg 96/04/17 13:52:51 Modified: usr.sbin/pstat pstat.8 Log: Merge from HEAD: Mention swapinfo as .Nm, so it will be referenced by mkwhatis. Revision Changes Path 1.3.4.3 +3 -2 src/usr.sbin/pstat/pstat.8 From owner-cvs-usrsbin Wed Apr 17 21:25:31 1996 Return-Path: owner-cvs-usrsbin Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id VAA12550 for cvs-usrsbin-outgoing; Wed, 17 Apr 1996 21:25:31 -0700 (PDT) Received: (from nate@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id VAA12522 Wed, 17 Apr 1996 21:25:22 -0700 (PDT) Date: Wed, 17 Apr 1996 21:25:22 -0700 (PDT) From: Nate Williams <nate> Message-Id: <199604180425.VAA12522@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-usrsbin Subject: cvs commit: src/usr.sbin/pccard/pccardc dumpcis.c enabler.c pccardc.c pccardmem.c printcis.c rdmap.c rdreg.c wrattr.c wrreg.c src/usr.sbin/pccard/pccardd cardd.c cardd.h file.c pccard.conf.5 pccardd.8 readcis.c readcis.h util.c Sender: owner-cvs-usrsbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk nate 96/04/17 21:25:19 Modified: usr.sbin/pccard/pccardc dumpcis.c enabler.c pccardc.c pccardmem.c printcis.c rdmap.c rdreg.c wrattr.c wrreg.c usr.sbin/pccard/pccardd cardd.c cardd.h file.c pccard.conf.5 pccardd.8 readcis.c readcis.h util.c Log: Added RCS Id and BSD-style copyrights to individual files. Revision Changes Path 1.4 +25 -1 src/usr.sbin/pccard/pccardc/dumpcis.c 1.4 +25 -3 src/usr.sbin/pccard/pccardc/enabler.c 1.3 +27 -0 src/usr.sbin/pccard/pccardc/pccardc.c 1.4 +27 -0 src/usr.sbin/pccard/pccardc/pccardmem.c 1.4 +25 -1 src/usr.sbin/pccard/pccardc/printcis.c 1.4 +27 -0 src/usr.sbin/pccard/pccardc/rdmap.c 1.4 +27 -0 src/usr.sbin/pccard/pccardc/rdreg.c 1.4 +27 -0 src/usr.sbin/pccard/pccardc/wrattr.c 1.4 +27 -0 src/usr.sbin/pccard/pccardc/wrreg.c 1.8 +27 -2 src/usr.sbin/pccard/pccardd/cardd.c 1.4 +26 -1 src/usr.sbin/pccard/pccardd/cardd.h 1.4 +25 -1 src/usr.sbin/pccard/pccardd/file.c 1.3 +24 -2 src/usr.sbin/pccard/pccardd/pccard.conf.5 1.3 +24 -2 src/usr.sbin/pccard/pccardd/pccardd.8 1.4 +25 -1 src/usr.sbin/pccard/pccardd/readcis.c 1.3 +27 -2 src/usr.sbin/pccard/pccardd/readcis.h 1.5 +25 -1 src/usr.sbin/pccard/pccardd/util.c From owner-cvs-usrsbin Wed Apr 17 22:24:06 1996 Return-Path: owner-cvs-usrsbin Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id WAA15102 for cvs-usrsbin-outgoing; Wed, 17 Apr 1996 22:24:06 -0700 (PDT) Received: (from nate@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id WAA15039 Wed, 17 Apr 1996 22:23:50 -0700 (PDT) Date: Wed, 17 Apr 1996 22:23:50 -0700 (PDT) From: Nate Williams <nate> Message-Id: <199604180523.WAA15039@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-usrsbin Subject: cvs commit: src/usr.sbin/pccard/pccardc wrattr.c Sender: owner-cvs-usrsbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk nate 96/04/17 22:23:49 Modified: usr.sbin/pccard/pccardc wrattr.c Log: Fix usage: message to print out corrrectly. Submitted by: Tatsumi Hosokawa <hosokawa@mt.cs.keio.ac.jp> Revision Changes Path 1.5 +2 -2 src/usr.sbin/pccard/pccardc/wrattr.c