From owner-cvs-lib Mon Oct 13 10:11:41 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id KAA07707 for cvs-lib-outgoing; Mon, 13 Oct 1997 10:11:41 -0700 (PDT) (envelope-from owner-cvs-lib) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id KAA07608; Mon, 13 Oct 1997 10:10:05 -0700 (PDT) (envelope-from wpaul@FreeBSD.org) From: Bill Paul Received: (from wpaul@localhost) by freefall.freebsd.org (8.8.6/8.8.5) id KAA19745; Mon, 13 Oct 1997 10:09:17 -0700 (PDT) Date: Mon, 13 Oct 1997 10:09:17 -0700 (PDT) Message-Id: <199710131709.KAA19745@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-lib@FreeBSD.ORG Subject: cvs commit: src/lib/libc/gen getnetgrent.c Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk wpaul 1997/10/13 10:09:17 PDT Modified files: lib/libc/gen getnetgrent.c Log: Improve the innetgr() NIS+ compat kludge. We should only fail over to the 'slow' lookup if we get a YPERR_MAP (no such map in server's domain) error instead of failing over on any error. In the latter case, if the 'fast' search fails legitimately (i.e. the user or host really isn't a member of the specified netgroup) then we end up doing the 'slow' search and failing all over again. The result is still correct, but cycles are consumed for no good reason. Also removed the #ifdef CHARITABLE since the compat kludge is no longer optional. Revision Changes Path 1.22 +25 -18 src/lib/libc/gen/getnetgrent.c From owner-cvs-lib Mon Oct 13 12:45:56 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id MAA18226 for cvs-lib-outgoing; Mon, 13 Oct 1997 12:45:56 -0700 (PDT) (envelope-from owner-cvs-lib) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id MAA18184; Mon, 13 Oct 1997 12:45:10 -0700 (PDT) (envelope-from wpaul@FreeBSD.org) From: Bill Paul Received: (from wpaul@localhost) by freefall.freebsd.org (8.8.6/8.8.5) id MAA20443; Mon, 13 Oct 1997 12:44:22 -0700 (PDT) Date: Mon, 13 Oct 1997 12:44:22 -0700 (PDT) Message-Id: <199710131944.MAA20443@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-lib@FreeBSD.ORG Subject: cvs commit: src/lib/libc/gen getnetgrent.c Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk wpaul 1997/10/13 12:44:22 PDT Modified files: (Branch: RELENG_2_2) lib/libc/gen getnetgrent.c Log: Merge Sun NIS+ compat fix from -current (if netgroup.byhost or netgroup.byuser don't exist, fail over to 'slow' innetgr() lookup method by searching through netgroup map). PR: 3891 Revision Changes Path 1.17.2.3 +25 -12 src/lib/libc/gen/getnetgrent.c From owner-cvs-lib Tue Oct 14 00:24:45 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id AAA29589 for cvs-lib-outgoing; Tue, 14 Oct 1997 00:24:45 -0700 (PDT) (envelope-from owner-cvs-lib) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id AAA29536; Tue, 14 Oct 1997 00:24:12 -0700 (PDT) (envelope-from bde@FreeBSD.org) From: Bruce Evans Received: (from bde@localhost) by freefall.freebsd.org (8.8.6/8.8.5) id AAA25666; Tue, 14 Oct 1997 00:23:20 -0700 (PDT) Date: Tue, 14 Oct 1997 00:23:20 -0700 (PDT) Message-Id: <199710140723.AAA25666@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-lib@FreeBSD.ORG Subject: cvs commit: src/lib/libc/gen exec.3 exec.c Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk bde 1997/10/14 00:23:20 PDT Modified files: lib/libc/gen exec.3 exec.c Log: Fixed searching of $PATH in execvp(). Do what sh(1) should do according to POSIX.2. In particular: - don't retry for ETXTBSY. This matches what sh(1) does. The retry code was broken anyway. It only slept for several seconds for the first few retries. Then it retried without sleeping. - don't abort the search for errors related to the path prefix, in particular for ENAMETOOLONG, ENOTDIR, ELOOP. This fixes PR1487. sh(1) gets this wrong in the opposite direction by never aborting the search. - don't confuse EACCES for errors related to the path prefix with EACCES for errors related to the file. sh(1) gets this wrong. - don't return a stale errno when the search terminates normally without finding anything. The errno for the last unsuccessful execve() was usually returned. This gave too much precedence to pathologies in the last component of $PATH. This bug is irrelevant for sh(1). The implementation still uses the optimization/race-inhibitor of trying to execve() things first. POSIX.2 seems to require looking at file permissions using stat(). We now use stat() after execve() if execve() fails with an ambiguous error. Trying execve() first may actually be a pessimization, since failing execve()s are fundamentally a little slower than stat(), and are significantly slower when a file is found but has unsuitable permissions or points to an unsuitable interpreter. PR: 1487 Revision Changes Path 1.6 +51 -17 src/lib/libc/gen/exec.3 1.6 +36 -9 src/lib/libc/gen/exec.c From owner-cvs-lib Tue Oct 14 00:45:11 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id AAA01262 for cvs-lib-outgoing; Tue, 14 Oct 1997 00:45:11 -0700 (PDT) (envelope-from owner-cvs-lib) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id AAA01222; Tue, 14 Oct 1997 00:44:27 -0700 (PDT) (envelope-from bde@FreeBSD.org) From: Bruce Evans Received: (from bde@localhost) by freefall.freebsd.org (8.8.6/8.8.5) id AAA25750; Tue, 14 Oct 1997 00:43:35 -0700 (PDT) Date: Tue, 14 Oct 1997 00:43:35 -0700 (PDT) Message-Id: <199710140743.AAA25750@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-lib@FreeBSD.ORG Subject: cvs commit: src/lib/libc/gen Makefile.inc src/lib/libc/i386/gen Makefile.inc Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk bde 1997/10/14 00:43:35 PDT Modified files: lib/libc/gen Makefile.inc Log: Moved `SRCS+= frexp.c' to the correct Makefile.inc. Revision Changes Path 1.39 +2 -2 src/lib/libc/gen/Makefile.inc Modified files: lib/libc/i386/gen Makefile.inc Log: Moved `SRCS+= frexp.c' to the correct Makefile.inc. Sorted SRCS. Revision Changes Path 1.9 +3 -3 src/lib/libc/i386/gen/Makefile.inc From owner-cvs-lib Tue Oct 14 14:52:00 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id OAA20176 for cvs-lib-outgoing; Tue, 14 Oct 1997 14:52:00 -0700 (PDT) (envelope-from owner-cvs-lib) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id OAA20107; Tue, 14 Oct 1997 14:51:14 -0700 (PDT) (envelope-from wpaul@FreeBSD.org) From: Bill Paul Received: (from wpaul@localhost) by freefall.freebsd.org (8.8.6/8.8.5) id OAA16551; Tue, 14 Oct 1997 14:50:17 -0700 (PDT) Date: Tue, 14 Oct 1997 14:50:17 -0700 (PDT) Message-Id: <199710142150.OAA16551@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-lib@FreeBSD.ORG Subject: cvs commit: src/lib/libc/rpc svc.c Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk wpaul 1997/10/14 14:50:17 PDT Modified files: lib/libc/rpc svc.c Log: Correct a bug in the 'allow arbitrary number of socket descriptors' changes made to the RPC code some months ago. The value of __svc_fdsetsize is being calculated incorrectly. Logically, one would assume that __svc_fdsetsize is being used as a substitute for FD_SETSIZE, with the difference being that __svc_fdsetsize can be expanded on the fly to accomodate more descriptors if need be. There are two problems: first, __svc_fdsetsize is not initialized to 0. Second, __svc_fdsetsize is being calculated in svc.c:xprt_registere() as: __svc_fdsetsize = howmany(sock+1, NFDBITS); This is wrong. If we are adding a socket with index value 4 to the descriptor set, then __svc_fdsetsize will be 1 (since fds_bits is an unsigned long, it can support any descriptor from 0 to 31, so we only need one of them). In order for this to make sense with the rest of the code though, it should be: __svc_fdsetsize = howmany(sock+1, NFDBITS) * NFDBITS; Now if sock == 4, __svc_fdsetsize will be 32. This bug causes 2 errors to occur. First, in xprt_register(), it causes the __svc_fdset descriptor array to be freed and reallocated unnecessarily. The code checks if it needs to expand the array using the test: if (sock + 1 > __svc_fdsetsize). The very first time through, __svc_fdsetsize is 0, which is fine: an array has to be allocated the first time out. However __svc_fdsetsize is incorrectly set to 1, so on the second time through, the test (sock + 1 > __svc_fdsetsize) will still succeed, and the __svc_fdset array will be destroyed and reallocated for no reason. Second, the code in svc_run.c:svc_run() can become hopelessly confused. The svc_run() routine malloc()s its own fd_set array using the value of __svc_fdsetsize to decide how much memory to allocate. Once the xprt_register() function expands the __svc_fdset array the first time, the value for __svc_fdsetsize becomes 2, which is too small: the resulting calculation causes the code to allocate an array that's only 32 bits wide when it actually needs 64 bits. It also uses the valuse of __svc_fdsetsize when copying the contents of the __svc_fdset array into the new array. The end result is that all but the first 32 file descriptors get lost. Note: from what I can tell, this bug originated in OpenBSD and was brought over to us when the code was merged. The bug is still there in the OpenBSD source. Total nervous breakdown averted by: Electric Fence 2.0.5 Revision Changes Path 1.13 +4 -4 src/lib/libc/rpc/svc.c From owner-cvs-lib Wed Oct 15 07:07:51 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id HAA16850 for cvs-lib-outgoing; Wed, 15 Oct 1997 07:07:51 -0700 (PDT) (envelope-from owner-cvs-lib) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id HAA16783; Wed, 15 Oct 1997 07:07:19 -0700 (PDT) (envelope-from peter@FreeBSD.org) From: Peter Wemm Received: (from peter@localhost) by freefall.freebsd.org (8.8.6/8.8.5) id HAA25867; Wed, 15 Oct 1997 07:06:17 -0700 (PDT) Date: Wed, 15 Oct 1997 07:06:17 -0700 (PDT) Message-Id: <199710151406.HAA25867@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-lib@FreeBSD.ORG Subject: cvs commit: src/lib/libc/gen sleep.c Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk peter 1997/10/15 07:06:16 PDT Modified files: lib/libc/gen sleep.c Log: Give up on the "try and compensate for broken programs" cruft and revert back to the original single nanosleep() implementation. This is POSIX and Unix98 (aka single-unix spec v2) compliant behavior. If a program sets alarm(2) or an interval timer (setitimer(2)) without a SIGALRM handler being active, sleep(3) will no longer absorb it, and the program will get what it asked for..... :-] The original reason for this in the first place (apache) doesn't seem to need it anymore, according to Andrey. Reviewed by: ache, bde Revision Changes Path 1.19 +0 -70 src/lib/libc/gen/sleep.c From owner-cvs-lib Wed Oct 15 07:12:42 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id HAA17184 for cvs-lib-outgoing; Wed, 15 Oct 1997 07:12:42 -0700 (PDT) (envelope-from owner-cvs-lib) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id HAA17137; Wed, 15 Oct 1997 07:12:11 -0700 (PDT) (envelope-from peter@FreeBSD.org) From: Peter Wemm Received: (from peter@localhost) by freefall.freebsd.org (8.8.6/8.8.5) id HAA25905; Wed, 15 Oct 1997 07:11:09 -0700 (PDT) Date: Wed, 15 Oct 1997 07:11:09 -0700 (PDT) Message-Id: <199710151411.HAA25905@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-lib@FreeBSD.ORG Subject: cvs commit: src/lib/libc/gen usleep.c Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk peter 1997/10/15 07:11:09 PDT Modified files: lib/libc/gen usleep.c Log: Remove old SIGALRM absorbing back-compat code. It wasn't working at all for the entire time that it was there, so obviously nothing needs it anymore. Note, unix98/single-unix spec v2 says that usleep() returns an int rather than a void, to indicate whether the entire time period elapsed (0) or an error (eg: signal handler) interrupted it (returns -1, errno = EINTR) It is probably useful to make this change but I'll test it locally first to see if this will break userland programs [much]... Reviewed by: ache, bde Revision Changes Path 1.17 +1 -83 src/lib/libc/gen/usleep.c From owner-cvs-lib Wed Oct 15 08:29:32 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id IAA24931 for cvs-lib-outgoing; Wed, 15 Oct 1997 08:29:32 -0700 (PDT) (envelope-from owner-cvs-lib) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id IAA24841; Wed, 15 Oct 1997 08:28:22 -0700 (PDT) (envelope-from bde@FreeBSD.org) From: Bruce Evans Received: (from bde@localhost) by freefall.freebsd.org (8.8.6/8.8.5) id IAA11256; Wed, 15 Oct 1997 08:27:19 -0700 (PDT) Date: Wed, 15 Oct 1997 08:27:19 -0700 (PDT) Message-Id: <199710151527.IAA11256@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-lib@FreeBSD.ORG Subject: cvs commit: src/lib/libc/string bzero.c strrchr.c strchr.c memmove.c memcpy.c Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk bde 1997/10/15 08:27:19 PDT Added files: lib/libc/string bzero.c strrchr.c strchr.c memmove.c memcpy.c Log: Added some 2-line source files to get a direct correspondence between sources and objects. This will be used to avoid messy special cases in Makefile.inc. From owner-cvs-lib Wed Oct 15 09:18:18 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id JAA28581 for cvs-lib-outgoing; Wed, 15 Oct 1997 09:18:18 -0700 (PDT) (envelope-from owner-cvs-lib) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id JAA28539; Wed, 15 Oct 1997 09:17:48 -0700 (PDT) (envelope-from bde@FreeBSD.org) From: Bruce Evans Received: (from bde@localhost) by freefall.freebsd.org (8.8.6/8.8.5) id JAA11959; Wed, 15 Oct 1997 09:16:45 -0700 (PDT) Date: Wed, 15 Oct 1997 09:16:45 -0700 (PDT) Message-Id: <199710151616.JAA11959@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-lib@FreeBSD.ORG Subject: cvs commit: src/lib/libc/compat-43 Makefile.inc src/lib/libc/gen Makefile.inc src/lib/libc/gmon Makefile.inc src/lib/libc/locale Makefile.inc src/lib/libc/net Makefile.inc src/lib/libc/nls Makefile.inc src/lib/libc/regex Makefile.inc src/lib/libc/rpc ... Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk bde 1997/10/15 09:16:44 PDT Modified files: lib/libc/compat-43 Makefile.inc lib/libc/gen Makefile.inc lib/libc/gmon Makefile.inc lib/libc/locale Makefile.inc lib/libc/net Makefile.inc lib/libc/nls Makefile.inc lib/libc/regex Makefile.inc lib/libc/rpc Makefile.inc lib/libc/stdio Makefile.inc lib/libc/stdlib Makefile.inc lib/libc/stdtime Makefile.inc lib/libc/string Makefile.inc lib/libc/sys Makefile.inc lib/libc/xdr Makefile.inc Log: Removed the subdirectory paths from the definitions of MAN[1-9]. They were a workaround for limitations in bsd.man.mk that were fixed about 2 years ago. Revision Changes Path 1.6 +3 -6 src/lib/libc/compat-43/Makefile.inc 1.40 +18 -24 src/lib/libc/gen/Makefile.inc 1.5 +2 -3 src/lib/libc/gmon/Makefile.inc 1.10 +6 -9 src/lib/libc/locale/Makefile.inc 1.24 +5 -7 src/lib/libc/net/Makefile.inc 1.4 +2 -3 src/lib/libc/nls/Makefile.inc 1.4 +3 -4 src/lib/libc/regex/Makefile.inc 1.11 +6 -7 src/lib/libc/rpc/Makefile.inc 1.10 +4 -7 src/lib/libc/stdio/Makefile.inc 1.11 +5 -10 src/lib/libc/stdlib/Makefile.inc 1.6 +4 -5 src/lib/libc/stdtime/Makefile.inc 1.11 +6 -11 src/lib/libc/string/Makefile.inc 1.42 +21 -33 src/lib/libc/sys/Makefile.inc 1.9 +2 -3 src/lib/libc/xdr/Makefile.inc From owner-cvs-lib Wed Oct 15 09:31:47 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id JAA29244 for cvs-lib-outgoing; Wed, 15 Oct 1997 09:31:47 -0700 (PDT) (envelope-from owner-cvs-lib) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id JAA29137; Wed, 15 Oct 1997 09:30:19 -0700 (PDT) (envelope-from bde@FreeBSD.org) From: Bruce Evans Received: (from bde@localhost) by freefall.freebsd.org (8.8.6/8.8.5) id JAA12034; Wed, 15 Oct 1997 09:29:16 -0700 (PDT) Date: Wed, 15 Oct 1997 09:29:16 -0700 (PDT) Message-Id: <199710151629.JAA12034@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-lib@FreeBSD.ORG Subject: cvs commit: src/lib/libc Makefile.inc src/lib/libc/sys Makefile.inc Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk bde 1997/10/15 09:29:15 PDT Modified files: lib/libc Makefile.inc lib/libc/sys Makefile.inc Log: Include the machine-dependent Makefile.inc for sys in the correct place. Revision Changes Path 1.2 +1 -2 src/lib/libc/Makefile.inc 1.43 +3 -1 src/lib/libc/sys/Makefile.inc From owner-cvs-lib Wed Oct 15 18:21:17 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id SAA24156 for cvs-lib-outgoing; Wed, 15 Oct 1997 18:21:17 -0700 (PDT) (envelope-from owner-cvs-lib) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id SAA24086; Wed, 15 Oct 1997 18:20:23 -0700 (PDT) (envelope-from max@FreeBSD.org) From: Masafumi NAKANE Received: (from max@localhost) by freefall.freebsd.org (8.8.6/8.8.5) id SAA18234; Wed, 15 Oct 1997 18:19:16 -0700 (PDT) Date: Wed, 15 Oct 1997 18:19:16 -0700 (PDT) Message-Id: <199710160119.SAA18234@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-lib@FreeBSD.ORG Subject: cvs commit: src/lib/libc/sys setpgid.2 Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk max 1997/10/15 18:19:16 PDT Modified files: lib/libc/sys setpgid.2 Log: Proper spacing in the Synopsis. Revision Changes Path 1.3 +2 -2 src/lib/libc/sys/setpgid.2 From owner-cvs-lib Wed Oct 15 18:23:15 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id SAA24257 for cvs-lib-outgoing; Wed, 15 Oct 1997 18:23:15 -0700 (PDT) (envelope-from owner-cvs-lib) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id SAA24205; Wed, 15 Oct 1997 18:22:43 -0700 (PDT) (envelope-from max@FreeBSD.org) From: Masafumi NAKANE Received: (from max@localhost) by freefall.freebsd.org (8.8.6/8.8.5) id SAA18270; Wed, 15 Oct 1997 18:21:37 -0700 (PDT) Date: Wed, 15 Oct 1997 18:21:37 -0700 (PDT) Message-Id: <199710160121.SAA18270@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-lib@FreeBSD.ORG Subject: cvs commit: src/lib/libc/sys setpgid.2 Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk max 1997/10/15 18:21:37 PDT Modified files: (Branch: RELENG_2_2) lib/libc/sys setpgid.2 Log: MFC: propser spacing in the Synopsis. Revision Changes Path 1.1.1.1.8.2 +2 -2 src/lib/libc/sys/setpgid.2 From owner-cvs-lib Thu Oct 16 02:14:00 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id CAA18291 for cvs-lib-outgoing; Thu, 16 Oct 1997 02:14:00 -0700 (PDT) (envelope-from owner-cvs-lib) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id CAA18259; Thu, 16 Oct 1997 02:13:40 -0700 (PDT) (envelope-from sos@FreeBSD.org) From: Søren Schmidt Received: (from sos@localhost) by freefall.freebsd.org (8.8.6/8.8.5) id CAA20166; Thu, 16 Oct 1997 02:12:31 -0700 (PDT) Date: Thu, 16 Oct 1997 02:12:31 -0700 (PDT) Message-Id: <199710160912.CAA20166@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-lib@FreeBSD.ORG Subject: cvs commit: src/lib/libvgl vgl.3 Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk sos 1997/10/16 02:12:31 PDT Modified files: lib/libvgl vgl.3 Log: Fix a couble of typos. Submitted by: "Vanill I. Shu" Revision Changes Path 1.2 +6 -6 src/lib/libvgl/vgl.3 From owner-cvs-lib Thu Oct 16 02:15:20 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id CAA18366 for cvs-lib-outgoing; Thu, 16 Oct 1997 02:15:20 -0700 (PDT) (envelope-from owner-cvs-lib) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id CAA18321; Thu, 16 Oct 1997 02:14:59 -0700 (PDT) (envelope-from sos@FreeBSD.org) From: Søren Schmidt Received: (from sos@localhost) by freefall.freebsd.org (8.8.6/8.8.5) id CAA20200; Thu, 16 Oct 1997 02:13:50 -0700 (PDT) Date: Thu, 16 Oct 1997 02:13:50 -0700 (PDT) Message-Id: <199710160913.CAA20200@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-lib@FreeBSD.ORG Subject: cvs commit: src/lib/libvgl vgl.3 Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk sos 1997/10/16 02:13:50 PDT Modified files: (Branch: RELENG_2_2) lib/libvgl vgl.3 Log: Submitted by: "Vanill I. Shu" Revision Changes Path 1.1.2.1 +6 -6 src/lib/libvgl/vgl.3 From owner-cvs-lib Thu Oct 16 06:37:15 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id GAA28974 for cvs-lib-outgoing; Thu, 16 Oct 1997 06:37:15 -0700 (PDT) (envelope-from owner-cvs-lib) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id GAA28939; Thu, 16 Oct 1997 06:36:37 -0700 (PDT) (envelope-from ache@FreeBSD.org) From: "Andrey A. Chernov" Received: (from ache@localhost) by freefall.freebsd.org (8.8.6/8.8.5) id GAA23245; Thu, 16 Oct 1997 06:35:27 -0700 (PDT) Date: Thu, 16 Oct 1997 06:35:27 -0700 (PDT) Message-Id: <199710161335.GAA23245@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-lib@FreeBSD.ORG Subject: cvs commit: src/lib/libc/gen sleep.c usleep.c Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk ache 1997/10/16 06:35:26 PDT Modified files: lib/libc/gen sleep.c usleep.c Log: Cleanup #includes Revision Changes Path 1.20 +1 -2 src/lib/libc/gen/sleep.c 1.18 +1 -3 src/lib/libc/gen/usleep.c From owner-cvs-lib Thu Oct 16 06:43:38 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id GAA29357 for cvs-lib-outgoing; Thu, 16 Oct 1997 06:43:38 -0700 (PDT) (envelope-from owner-cvs-lib) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id GAA29324; Thu, 16 Oct 1997 06:43:17 -0700 (PDT) (envelope-from ache@FreeBSD.org) From: "Andrey A. Chernov" Received: (from ache@localhost) by freefall.freebsd.org (8.8.6/8.8.5) id GAA23289; Thu, 16 Oct 1997 06:42:05 -0700 (PDT) Date: Thu, 16 Oct 1997 06:42:05 -0700 (PDT) Message-Id: <199710161342.GAA23289@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-lib@FreeBSD.ORG Subject: cvs commit: src/lib/libc/gen sleep.3 usleep.3 Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk ache 1997/10/16 06:42:04 PDT Modified files: lib/libc/gen sleep.3 usleep.3 Log: Reflect current sleep/usleep implementations state Revision Changes Path 1.9 +2 -6 src/lib/libc/gen/sleep.3 1.6 +3 -3 src/lib/libc/gen/usleep.3 From owner-cvs-lib Thu Oct 16 06:48:16 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id GAA29635 for cvs-lib-outgoing; Thu, 16 Oct 1997 06:48:16 -0700 (PDT) (envelope-from owner-cvs-lib) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id GAA29611; Thu, 16 Oct 1997 06:48:01 -0700 (PDT) (envelope-from bde@FreeBSD.org) From: Bruce Evans Received: (from bde@localhost) by freefall.freebsd.org (8.8.6/8.8.5) id GAA23377; Thu, 16 Oct 1997 06:46:50 -0700 (PDT) Date: Thu, 16 Oct 1997 06:46:50 -0700 (PDT) Message-Id: <199710161346.GAA23377@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-lib@FreeBSD.ORG Subject: cvs commit: src/lib/libc Makefile.inc src/lib/libc/i386/string Makefile.inc src/lib/libc/string Makefile.inc Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk bde 1997/10/16 06:46:50 PDT Modified files: lib/libc Makefile.inc lib/libc/i386/string Makefile.inc lib/libc/string Makefile.inc Log: Handle machine-dependent (m-d) (string) sources more automatically. The names of m-d variants are now added (manually) to MDSRCS instead of to SRCS, and the names of all machine-independent (m-i) variants that can reasonably be replaced by an m-d variant are now added (manually) to MISRCS instead of to SRCS, so that a simple substitution can be used to discard the unused m-i variants. MISRCS is potentially all m-i sources, but the substitution is too simple to be fast, so MISRCS should be kept reasonably small. libc/Makefile.inc: Do the substitution. libc/i386/string/Makefile.inc: Add to MDSRCS instead of to SRCS. Add the names of all sources in this directory, but no others. libc/string/Makefile.inc Add to MISRCS instead of to SRCS. Add the names of all sources in this directory. Don't use (broken) explicit rules for special cases. Revision Changes Path 1.3 +12 -1 src/lib/libc/Makefile.inc 1.8 +4 -6 src/lib/libc/i386/string/Makefile.inc 1.12 +7 -73 src/lib/libc/string/Makefile.inc From owner-cvs-lib Thu Oct 16 07:27:47 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id HAA02089 for cvs-lib-outgoing; Thu, 16 Oct 1997 07:27:47 -0700 (PDT) (envelope-from owner-cvs-lib) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id HAA02064; Thu, 16 Oct 1997 07:27:24 -0700 (PDT) (envelope-from bde@FreeBSD.org) From: Bruce Evans Received: (from bde@localhost) by freefall.freebsd.org (8.8.6/8.8.5) id HAA23491; Thu, 16 Oct 1997 07:26:14 -0700 (PDT) Date: Thu, 16 Oct 1997 07:26:14 -0700 (PDT) Message-Id: <199710161426.HAA23491@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-lib@FreeBSD.ORG Subject: cvs commit: src/lib/libc/db/man Makefile.inc src/lib/libc/i386/sys Makefile.inc Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk bde 1997/10/16 07:26:13 PDT Modified files: lib/libc/db/man Makefile.inc lib/libc/i386/sys Makefile.inc Log: Removed the subdirectory paths from the definitions of MAN[1-9]. They were a workaround for limitations in bsd.man.mk that were fixed about 2 years ago. Revision Changes Path 1.6 +3 -4 src/lib/libc/db/man/Makefile.inc 1.6 +2 -3 src/lib/libc/i386/sys/Makefile.inc From owner-cvs-lib Thu Oct 16 07:43:09 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id HAA02878 for cvs-lib-outgoing; Thu, 16 Oct 1997 07:43:09 -0700 (PDT) (envelope-from owner-cvs-lib) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id HAA02842; Thu, 16 Oct 1997 07:42:36 -0700 (PDT) (envelope-from bde@FreeBSD.org) From: Bruce Evans Received: (from bde@localhost) by freefall.freebsd.org (8.8.6/8.8.5) id HAA08682; Thu, 16 Oct 1997 07:41:25 -0700 (PDT) Date: Thu, 16 Oct 1997 07:41:25 -0700 (PDT) Message-Id: <199710161441.HAA08682@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-lib@FreeBSD.ORG Subject: cvs commit: src/lib/libc/i386/sys Makefile.inc Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk bde 1997/10/16 07:41:25 PDT Modified files: lib/libc/i386/sys Makefile.inc Log: Removed bogus .PATH statement. Revision Changes Path 1.7 +1 -3 src/lib/libc/i386/sys/Makefile.inc From owner-cvs-lib Thu Oct 16 08:00:00 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id IAA03785 for cvs-lib-outgoing; Thu, 16 Oct 1997 08:00:00 -0700 (PDT) (envelope-from owner-cvs-lib) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id HAA03735; Thu, 16 Oct 1997 07:59:42 -0700 (PDT) (envelope-from bde@FreeBSD.org) From: Bruce Evans Received: (from bde@localhost) by freefall.freebsd.org (8.8.6/8.8.5) id HAA08757; Thu, 16 Oct 1997 07:58:31 -0700 (PDT) Date: Thu, 16 Oct 1997 07:58:31 -0700 (PDT) Message-Id: <199710161458.HAA08757@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-lib@FreeBSD.ORG Subject: cvs commit: src/lib/libc/stdlib Makefile.inc src/lib/libc/i386/stdlib Makefile.inc Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk bde 1997/10/16 07:58:31 PDT Modified files: lib/libc/stdlib Makefile.inc lib/libc/i386/stdlib Makefile.inc Log: Handle machine-dependent (stdlib) sources more automatically. This fixes bugs in the manual handling. abs.[cS] was handled too specially and the wrong (.c) variant for each of div.[cS], labs.[cS] and ldiv.[cS] was added to SRCS. This caused the .c variant to be used if `depend' was made and the .S version to be used otherwise. Revision Changes Path 1.12 +2 -2 src/lib/libc/stdlib/Makefile.inc 1.6 +2 -2 src/lib/libc/i386/stdlib/Makefile.inc From owner-cvs-lib Thu Oct 16 14:33:44 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id OAA26010 for cvs-lib-outgoing; Thu, 16 Oct 1997 14:33:44 -0700 (PDT) (envelope-from owner-cvs-lib) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id OAA25962; Thu, 16 Oct 1997 14:32:57 -0700 (PDT) (envelope-from ache@FreeBSD.org) From: "Andrey A. Chernov" Received: (from ache@localhost) by freefall.freebsd.org (8.8.6/8.8.5) id OAA10189; Thu, 16 Oct 1997 14:31:44 -0700 (PDT) Date: Thu, 16 Oct 1997 14:31:44 -0700 (PDT) Message-Id: <199710162131.OAA10189@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-lib@FreeBSD.ORG Subject: cvs commit: src/lib/libc/gen sleep.c Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk ache 1997/10/16 14:31:44 PDT Modified files: lib/libc/gen sleep.c Log: Copy time_to_sleep to time_remaining since it can be left uninitialized if nanosleep returns early with agr error Revision Changes Path 1.21 +1 -0 src/lib/libc/gen/sleep.c From owner-cvs-lib Thu Oct 16 22:01:33 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id WAA19813 for cvs-lib-outgoing; Thu, 16 Oct 1997 22:01:33 -0700 (PDT) (envelope-from owner-cvs-lib) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id WAA19778; Thu, 16 Oct 1997 22:01:12 -0700 (PDT) (envelope-from jdp@FreeBSD.org) From: John Polstra Received: (from jdp@localhost) by freefall.freebsd.org (8.8.6/8.8.5) id VAA13537; Thu, 16 Oct 1997 21:59:56 -0700 (PDT) Date: Thu, 16 Oct 1997 21:59:56 -0700 (PDT) Message-Id: <199710170459.VAA13537@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-lib@FreeBSD.ORG Subject: cvs commit: src/lib/libc/rpc get_myaddress.c Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk jdp 1997/10/16 21:59:56 PDT Modified files: lib/libc/rpc get_myaddress.c Log: Fix two bugs which caused various RPC programs (mountd, nfsd, ...) to fail under certain circumstances. 1. In one spot, the ifr_flags member was being examined in the wrong structure, thus it contained garbage. On a machine in which only the loopback interface was up, this caused everything that wanted to talk to the portmapper to fail -- a particular problem with laptops, where the pccard ethernet interface is likely to come up long after the attempt to start mountd, nfsd, amd, etc. 2. Compounding the above problem, get_myaddress() returned a successful status even though it failed to find an address that it considered good enough. Revision Changes Path 1.14 +3 -3 src/lib/libc/rpc/get_myaddress.c From owner-cvs-lib Fri Oct 17 02:38:02 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id CAA02116 for cvs-lib-outgoing; Fri, 17 Oct 1997 02:38:02 -0700 (PDT) (envelope-from owner-cvs-lib) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id CAA02074; Fri, 17 Oct 1997 02:37:08 -0700 (PDT) (envelope-from ache@FreeBSD.org) From: "Andrey A. Chernov" Received: (from ache@localhost) by freefall.freebsd.org (8.8.6/8.8.5) id CAA14828; Fri, 17 Oct 1997 02:35:51 -0700 (PDT) Date: Fri, 17 Oct 1997 02:35:51 -0700 (PDT) Message-Id: <199710170935.CAA14828@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-lib@FreeBSD.ORG Subject: cvs commit: src/lib/libc/gen sleep.c Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk ache 1997/10/17 02:35:51 PDT Modified files: lib/libc/gen sleep.c Log: Fix LONG_MAX overflowing Return seconds if errno other than EINTR Add $Id Submitted by: bde with minor optimization by me Revision Changes Path 1.22 +21 -10 src/lib/libc/gen/sleep.c From owner-cvs-lib Fri Oct 17 02:41:35 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id CAA02256 for cvs-lib-outgoing; Fri, 17 Oct 1997 02:41:35 -0700 (PDT) (envelope-from owner-cvs-lib) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id CAA02233; Fri, 17 Oct 1997 02:41:25 -0700 (PDT) (envelope-from ache@FreeBSD.org) From: "Andrey A. Chernov" Received: (from ache@localhost) by freefall.freebsd.org (8.8.6/8.8.5) id CAA14871; Fri, 17 Oct 1997 02:40:09 -0700 (PDT) Date: Fri, 17 Oct 1997 02:40:09 -0700 (PDT) Message-Id: <199710170940.CAA14871@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-lib@FreeBSD.ORG Subject: cvs commit: src/lib/libc/gen usleep.c Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk ache 1997/10/17 02:40:08 PDT Modified files: lib/libc/gen usleep.c Log: Add $Id Revision Changes Path 1.19 +4 -0 src/lib/libc/gen/usleep.c From owner-cvs-lib Sat Oct 18 07:02:03 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id HAA19305 for cvs-lib-outgoing; Sat, 18 Oct 1997 07:02:03 -0700 (PDT) (envelope-from owner-cvs-lib) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id HAA19265; Sat, 18 Oct 1997 07:01:17 -0700 (PDT) (envelope-from bde@FreeBSD.org) From: Bruce Evans Received: (from bde@localhost) by freefall.freebsd.org (8.8.6/8.8.5) id GAA24371; Sat, 18 Oct 1997 06:59:51 -0700 (PDT) Date: Sat, 18 Oct 1997 06:59:51 -0700 (PDT) Message-Id: <199710181359.GAA24371@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-lib@FreeBSD.ORG Subject: cvs commit: src/lib/libc/i386/sys mount.S Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk bde 1997/10/18 06:59:50 PDT Removed files: lib/libc/i386/sys mount.S Log: Removed unused file. It just forces a return value of 0 on success (no carry), but mount() in the kernel has returned 0 on success since prehistoric times.