From owner-cvs-lib Mon Apr 15 09:17:15 1996 Return-Path: owner-cvs-lib Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id JAA00894 for cvs-lib-outgoing; Mon, 15 Apr 1996 09:17:15 -0700 (PDT) Received: (from wpaul@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id JAA00874 Mon, 15 Apr 1996 09:17:06 -0700 (PDT) Date: Mon, 15 Apr 1996 09:17:06 -0700 (PDT) From: Bill Paul Message-Id: <199604151617.JAA00874@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-lib Subject: cvs commit: src/lib/libc/gen getnetgrent.c Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk wpaul 96/04/15 09:17:06 Modified: lib/libc/gen getnetgrent.c Log: Fix a few NIS-related bogons: - Clear the _yp_innetgr flag immediately after calling setnetgrent() from innetgr(). We only need the flag set to temporarily alter setnetgrent()'s behavior. Previously, it was being cleared too late. - When in NIS-only mode, innetgr() was wasting time doing unecessary extra processing after it had already found a match. - Remember to free memory allocated by the NIS functions during innetgr() searches. Revision Changes Path 1.14 +14 -11 src/lib/libc/gen/getnetgrent.c From owner-cvs-lib Mon Apr 15 17:24:22 1996 Return-Path: owner-cvs-lib Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id RAA20044 for cvs-lib-outgoing; Mon, 15 Apr 1996 17:24:22 -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 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-lib@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-lib Wed Apr 17 13:50:10 1996 Return-Path: owner-cvs-lib Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id NAA05722 for cvs-lib-outgoing; Wed, 17 Apr 1996 13:50:10 -0700 (PDT) Received: (from joerg@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id NAA05651 Wed, 17 Apr 1996 13:49:34 -0700 (PDT) Date: Wed, 17 Apr 1996 13:49:34 -0700 (PDT) From: Joerg Wunsch Message-Id: <199604172049.NAA05651@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-lib Subject: cvs commit: src/lib/libc/sys chroot.2 Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk joerg 96/04/17 13:49:31 Modified: lib/libc/sys chroot.2 Log: Document the possible EPERM return. Submitted by: imp@village.org (Warner Losh) Revision Changes Path 1.2 +2 -0 src/lib/libc/sys/chroot.2 From owner-cvs-lib Wed Apr 17 13:53:35 1996 Return-Path: owner-cvs-lib Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id NAA06191 for cvs-lib-outgoing; Wed, 17 Apr 1996 13:53:35 -0700 (PDT) Received: (from joerg@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id NAA06176 Wed, 17 Apr 1996 13:53:27 -0700 (PDT) Date: Wed, 17 Apr 1996 13:53:27 -0700 (PDT) From: Joerg Wunsch Message-Id: <199604172053.NAA06176@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-lib Subject: cvs commit: src/lib/libc/sys chroot.2 Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk joerg 96/04/17 13:53:26 Modified: lib/libc/sys chroot.2 Log: Merge from HEAD: Document the possible EPERM return. Submitted by: imp@village.org (Warner Losh) Revision Changes Path 1.1.1.1.6.1 +2 -0 src/lib/libc/sys/chroot.2 From owner-cvs-lib Thu Apr 18 00:01:57 1996 Return-Path: owner-cvs-lib Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id AAA18406 for cvs-lib-outgoing; Thu, 18 Apr 1996 00:01:57 -0700 (PDT) Received: (from ache@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id AAA18391 Thu, 18 Apr 1996 00:01:47 -0700 (PDT) Date: Thu, 18 Apr 1996 00:01:47 -0700 (PDT) From: "Andrey A. Chernov" Message-Id: <199604180701.AAA18391@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-lib Subject: cvs commit: src/lib/libc/locale ansi.c Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk ache 96/04/18 00:01:47 Modified: lib/libc/locale ansi.c Log: Fix error in wcstombs: byte count not counted Remove unneded casts in sgetrune/sputrune Submitted by: wcstombs fix by Mihoko Tanaka Revision Changes Path 1.2 +4 -3 src/lib/libc/locale/ansi.c From owner-cvs-lib Thu Apr 18 16:36:51 1996 Return-Path: owner-cvs-lib Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id QAA17342 for cvs-lib-outgoing; Thu, 18 Apr 1996 16:36:51 -0700 (PDT) Received: (from smpatel@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id QAA17325 Thu, 18 Apr 1996 16:36:42 -0700 (PDT) Date: Thu, 18 Apr 1996 16:36:42 -0700 (PDT) From: Sujal Patel Message-Id: <199604182336.QAA17325@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-lib Subject: cvs commit: src/lib/libc/sys rfork.2 Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk smpatel 96/04/18 16:36:42 Modified: lib/libc/sys rfork.2 Log: Fix the man page to reflect the recent addition of RFNOWAIT and the removal of Plan9 specific flags. Revision Changes Path 1.3 +5 -4 src/lib/libc/sys/rfork.2 From owner-cvs-lib Fri Apr 19 07:02:34 1996 Return-Path: owner-cvs-lib Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id HAA06853 for cvs-lib-outgoing; Fri, 19 Apr 1996 07:02:34 -0700 (PDT) Received: (from bde@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id HAA06811 Fri, 19 Apr 1996 07:02:07 -0700 (PDT) Date: Fri, 19 Apr 1996 07:02:07 -0700 (PDT) From: Bruce Evans Message-Id: <199604191402.HAA06811@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-lib Subject: cvs commit: src/lib/libc/string strerror.3 Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk bde 96/04/19 07:02:05 Modified: lib/libc/string strerror.3 Log: Added `const' to types of sys_errlist and sys_nerr. Use .Va instead of .Fa to describe these variables. Say a little about inconsistent declarations of sys_errlist in the BUGS section. Revision Changes Path 1.2 +10 -5 src/lib/libc/string/strerror.3 From owner-cvs-lib Fri Apr 19 07:08:06 1996 Return-Path: owner-cvs-lib Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id HAA07149 for cvs-lib-outgoing; Fri, 19 Apr 1996 07:08:06 -0700 (PDT) Received: (from bde@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id HAA07112 Fri, 19 Apr 1996 07:07:47 -0700 (PDT) Date: Fri, 19 Apr 1996 07:07:47 -0700 (PDT) From: Bruce Evans Message-Id: <199604191407.HAA07112@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-lib Subject: cvs commit: src/lib/libc/gen psignal.3 Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk bde 96/04/19 07:07:46 Modified: lib/libc/gen psignal.3 Log: Added `const' to types of sys_siglist and sys_signame. Revision Changes Path 1.2 +2 -2 src/lib/libc/gen/psignal.3 From owner-cvs-lib Fri Apr 19 11:40:45 1996 Return-Path: owner-cvs-lib Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id LAA23635 for cvs-lib-outgoing; Fri, 19 Apr 1996 11:40:45 -0700 (PDT) Received: (from bde@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id LAA23610 Fri, 19 Apr 1996 11:40:26 -0700 (PDT) Date: Fri, 19 Apr 1996 11:40:26 -0700 (PDT) From: Bruce Evans Message-Id: <199604191840.LAA23610@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-lib, cvs-sys Subject: cvs commit: src/sys/libkern qsort.c src/lib/libc/gen assert.c src/lib/libc/locale table.c src/lib/libc/stdlib qsort.c heapsort.c Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk bde 96/04/19 11:40:26 Modified: lib/libc/gen assert.c lib/libc/locale table.c lib/libc/stdlib qsort.c heapsort.c sys/libkern qsort.c Log: Don't include when it isn't used. This commit covers most of the ANSI library functions. Many others only need because they use u_xxx. Revision Changes Path 1.2 +0 -1 src/lib/libc/gen/assert.c 1.3 +0 -2 src/lib/libc/locale/table.c 1.4 +1 -2 src/lib/libc/stdlib/qsort.c 1.2 +1 -2 src/lib/libc/stdlib/heapsort.c 1.3 +1 -2 src/sys/libkern/qsort.c From owner-cvs-lib Fri Apr 19 12:00:42 1996 Return-Path: owner-cvs-lib Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id MAA25183 for cvs-lib-outgoing; Fri, 19 Apr 1996 12:00:42 -0700 (PDT) Received: (from bde@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id MAA25169 Fri, 19 Apr 1996 12:00:27 -0700 (PDT) Date: Fri, 19 Apr 1996 12:00:27 -0700 (PDT) From: Bruce Evans Message-Id: <199604191900.MAA25169@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-lib Subject: cvs commit: src/lib/libc/gen clock.3 time.3 src/lib/libc/stdtime ctime.3 strftime.3 time2posix.3 Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk bde 96/04/19 12:00:27 Modified: lib/libc/gen clock.3 time.3 lib/libc/stdtime ctime.3 strftime.3 time2posix.3 Log: Removed bogus includes of from synopses. This commit covers the man pages for most of the ANSI library functions. A few others such as strtol.3 have to mention because they mix ANSI interfaces with less well designed extensions. Revision Changes Path 1.4 +1 -1 src/lib/libc/gen/clock.3 1.3 +0 -1 src/lib/libc/gen/time.3 1.3 +0 -1 src/lib/libc/stdtime/ctime.3 1.4 +0 -2 src/lib/libc/stdtime/strftime.3 1.3 +0 -1 src/lib/libc/stdtime/time2posix.3