From owner-cvs-gnu Sun Jul 9 16:55:27 1995 Return-Path: cvs-gnu-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id QAA19179 for cvs-gnu-outgoing; Sun, 9 Jul 1995 16:55:27 -0700 Received: (from jkh@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id QAA19169 ; Sun, 9 Jul 1995 16:55:17 -0700 Date: Sun, 9 Jul 1995 16:55:17 -0700 From: "Jordan K. Hubbard" Message-Id: <199507092355.QAA19169@freefall.cdrom.com> To: CVS-commiters, cvs-gnu Subject: cvs commit: src/gnu/usr.bin/ld/rtld rtld.c Sender: cvs-gnu-owner@freebsd.org Precedence: bulk jkh 95/07/09 16:55:16 Modified: gnu/usr.bin/ld/ldconfig ldconfig.8 ldconfig.c Log: Bring in ldconfig changes so that old and new packages will work in either case. Submitted by: pk@NetBSD.org Modified: gnu/usr.bin/ld/rtld rtld.c Log: Bring in Doug Rabson's changes from the head (1.25). Submitted by: dfr From owner-cvs-gnu Mon Jul 10 03:51:17 1995 Return-Path: cvs-gnu-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id DAA04985 for cvs-gnu-outgoing; Mon, 10 Jul 1995 03:51:17 -0700 Received: from minnow.render.com (render.demon.co.uk [158.152.30.118]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id DAA04979 ; Mon, 10 Jul 1995 03:51:10 -0700 Received: (from dfr@localhost) by minnow.render.com (8.6.9/8.6.9) id LAA00329; Mon, 10 Jul 1995 11:46:16 +0100 Date: Mon, 10 Jul 1995 11:46:15 +0100 (BST) From: Doug Rabson To: "Jordan K. Hubbard" cc: CVS-commiters@freefall.cdrom.com, cvs-gnu@freefall.cdrom.com Subject: Re: cvs commit: src/gnu/usr.bin/ld/rtld rtld.c In-Reply-To: <199507092355.QAA19169@freefall.cdrom.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: cvs-gnu-owner@freebsd.org Precedence: bulk On Sun, 9 Jul 1995, Jordan K. Hubbard wrote: > jkh 95/07/09 16:55:16 > > Modified: gnu/usr.bin/ld/ldconfig ldconfig.8 ldconfig.c > Log: > Bring in ldconfig changes so that old and new packages will work in either case. > Submitted by: pk@NetBSD.org > > Modified: gnu/usr.bin/ld/rtld rtld.c > Log: > Bring in Doug Rabson's changes from the head (1.25). > Submitted by: dfr > Jordan, if you want the rtld changes in the branch, then you will have to pull in the changes to lib/csu/i386/c*rt0.c and include/link.h as the crt0-ldso interface changed to allow C++ constructors/destructors to work properly in libraries loaded by dlopen. -- Doug Rabson, Microsoft RenderMorphics Ltd. Mail: dfr@render.com Phone: +44 171 251 4411 FAX: +44 171 251 0939 From owner-cvs-gnu Wed Jul 12 09:28:19 1995 Return-Path: cvs-gnu-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id JAA10965 for cvs-gnu-outgoing; Wed, 12 Jul 1995 09:28:19 -0700 Received: (from wpaul@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id JAA10955 ; Wed, 12 Jul 1995 09:28:14 -0700 Date: Wed, 12 Jul 1995 09:28:14 -0700 From: Bill Paul Message-Id: <199507121628.JAA10955@freefall.cdrom.com> To: CVS-commiters, cvs-gnu Subject: cvs commit: src/gnu/usr.sbin/ypserv svc_run.c Makefile server.c yp_svc.c Sender: cvs-gnu-owner@freebsd.org Precedence: bulk wpaul 95/07/12 09:28:14 Modified: gnu/usr.sbin/ypserv Makefile server.c yp_svc.c Added: gnu/usr.sbin/ypserv svc_run.c Log: ypserv performance improvements: - There are two cases where the server can potentially block for a long time while servicing a request: when handling a yp_all() request, which could take a while to complete if the map being transfered is large (e.g. 'ypcat passwd' where passwd.byname has 10,000 entries in it), and while doing DNS lookups when in SunOS compat mode (with the -dns flag), since some DNS lookups can take a long time to complete. While ypserv is blocked, other clients making requests to the server will also block. To fix this, we fork() ypall and DNS lookups into subprocesses and let the parent ypserv process go on servicing other incoming requests. We place a cap on the number of simultaneous processes that ypserv can fork (set at 20 for now) and go back to 'linear mode' if it hits the limit (which just means it won't fork() anymore until the number of simultaneous processes drops under 20 again). The cap does not apply to fork()s done as a result of ypxfr calls, since we want to do our best to insure that map transfers from master servers succeed. To make this work, we need our own special copy of svc_run() so that we can properly terminate child processes once the RPC dispatch functions have run. (I have no idea what SunOS does in this situation. The only other possibility I can think of is async socket I/O, but that seems like a headache and a half to implement.) - Do the politically correct thing and use sigaction() instead of signal() to install the SIGCHLD handler and to ignore SIGPIPEs. - Doing a yp_all() is sometimes slow due to the way read_database() is implemented. This is turn is due to a certain deficiency in the DB hash method: the R_CURSOR flag doesn't work, which means that when handed a key and asked to return the key/data pair for the _next_ key in the map, we have to reset the DB pointer to the start of the database, step through until we find the requested key, step one space ahead to the _next_ key, and then use that. (The original ypserv code used GDBM has a function called gdbm_nextkey() that does this for you.) This can get really slow for large maps. However, when doing a ypall, it seems that all database access are sequential, so we can forgo the first step (the 'search the database until we find the key') since the database should remain open and the cursor should be positioned at the right place until the yp_all() call finishes. We can't make this assumption for arbitrary yp_first()s and yp_next()s however (since we may have requests from several clients for different maps all arriving at different times) so those we have to handle the old way. (This would be much easier if R_CURSOR really worked. Maybe I should be using something other than the hash method.) From owner-cvs-gnu Wed Jul 12 11:58:48 1995 Return-Path: cvs-gnu-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id LAA17619 for cvs-gnu-outgoing; Wed, 12 Jul 1995 11:58:48 -0700 Received: (from bde@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id LAA17367 ; Wed, 12 Jul 1995 11:57:22 -0700 Date: Wed, 12 Jul 1995 11:57:22 -0700 From: Bruce Evans Message-Id: <199507121857.LAA17367@freefall.cdrom.com> To: CVS-commiters, cvs-gnu Subject: cvs commit: src/gnu/usr.bin/cc/doc Makefile Sender: cvs-gnu-owner@freebsd.org Precedence: bulk bde 95/07/12 11:57:21 Modified: gnu/usr.bin/cc/doc Makefile Log: Fix dependencies for gcc.info and reno.info. `make depend' doesn't handle info files although texinfo supports @include. From owner-cvs-gnu Wed Jul 12 12:02:11 1995 Return-Path: cvs-gnu-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id MAA18199 for cvs-gnu-outgoing; Wed, 12 Jul 1995 12:02:11 -0700 Received: (from bde@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id MAA18189 ; Wed, 12 Jul 1995 12:02:08 -0700 Date: Wed, 12 Jul 1995 12:02:08 -0700 From: Bruce Evans Message-Id: <199507121902.MAA18189@freefall.cdrom.com> To: CVS-commiters, cvs-gnu Subject: cvs commit: src/gnu/lib/libregex/doc Makefile Sender: cvs-gnu-owner@freebsd.org Precedence: bulk bde 95/07/12 12:02:07 Modified: gnu/lib/libregex/doc Makefile Log: Fix dependencies for regex.texi. It is constructed by merging a C header file with an info source file. From owner-cvs-gnu Wed Jul 12 12:44:51 1995 Return-Path: cvs-gnu-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id MAA22432 for cvs-gnu-outgoing; Wed, 12 Jul 1995 12:44:51 -0700 Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.34]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id MAA22423 ; Wed, 12 Jul 1995 12:44:40 -0700 Received: (from bde@localhost) by godzilla.zeta.org.au (8.6.9/8.6.9) id FAA03237; Thu, 13 Jul 1995 05:43:27 +1000 Date: Thu, 13 Jul 1995 05:43:27 +1000 From: Bruce Evans Message-Id: <199507121943.FAA03237@godzilla.zeta.org.au> To: CVS-commiters@freefall.cdrom.com, bde@freefall.cdrom.com, cvs-gnu@freefall.cdrom.com Subject: Re: cvs commit: src/gnu/lib/libregex/doc Makefile Sender: cvs-gnu-owner@freebsd.org Precedence: bulk > Modified: gnu/lib/libregex/doc Makefile > Log: > Fix dependencies for regex.texi. It is constructed by merging a C header > file with an info source file. Perhaps this method should be used for man pages to avoid having historical fiction as in types.5. Bruce From owner-cvs-gnu Thu Jul 13 01:30:32 1995 Return-Path: cvs-gnu-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id BAA24963 for cvs-gnu-outgoing; Thu, 13 Jul 1995 01:30:32 -0700 Received: (from rgrimes@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id BAA24943 ; Thu, 13 Jul 1995 01:30:11 -0700 Date: Thu, 13 Jul 1995 01:30:11 -0700 From: "Rodney W. Grimes" Message-Id: <199507130830.BAA24943@freefall.cdrom.com> To: CVS-commiters, cvs-gnu Subject: cvs commit: src/gnu/usr.bin/ld ld.c Sender: cvs-gnu-owner@freebsd.org Precedence: bulk rgrimes 95/07/13 01:30:10 Modified: gnu/usr.bin/ld ld.c Log: Make ld's error messages consistent with gcc when no input files are given on the command line. Submitted by: Thomas Graichen From owner-cvs-gnu Thu Jul 13 07:57:45 1995 Return-Path: cvs-gnu-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id HAA10400 for cvs-gnu-outgoing; Thu, 13 Jul 1995 07:57:45 -0700 Received: from grendel.csc.smith.edu (grendel.csc.smith.edu [131.229.222.23]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id HAA10370 ; Thu, 13 Jul 1995 07:57:28 -0700 Received: from localhost (jfieber@localhost) by grendel.csc.smith.edu (8.6.5/8.6.5) id KAA03167; Thu, 13 Jul 1995 10:59:15 -0400 From: jfieber@grendel.csc.smith.edu (John Fieber) Message-Id: <199507131459.KAA03167@grendel.csc.smith.edu> Subject: Re: cvs commit: src/gnu/usr.bin/cc/doc Makefile To: bde@freefall.cdrom.com (Bruce Evans) Date: Thu, 13 Jul 1995 10:59:14 -0400 (EDT) Cc: CVS-commiters@freefall.cdrom.com, cvs-gnu@freefall.cdrom.com In-Reply-To: <199507121857.LAA17367@freefall.cdrom.com> from "Bruce Evans" at Jul 12, 95 11:57:22 am Content-Type: text Content-Length: 582 Sender: cvs-gnu-owner@freebsd.org Precedence: bulk Bruce Evans writes: > > bde 95/07/12 11:57:21 > > Modified: gnu/usr.bin/cc/doc Makefile > Log: > Fix dependencies for gcc.info and reno.info. `make depend' doesn't handle > info files although texinfo supports @include. I was going to do some makefiles for the handbook and the faq and discovered that bsd.doc.mk thinks all the world is a [nt]roff file. Maybe it needs an overhaul to handle texinfo and sgml, supporting dependencies would be a Good Thing for both formats. -john === jfieber@cs.smith.edu ========== Come up and be a kite! --K. Bush === From owner-cvs-gnu Thu Jul 13 08:48:09 1995 Return-Path: cvs-gnu-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id IAA14089 for cvs-gnu-outgoing; Thu, 13 Jul 1995 08:48:09 -0700 Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.34]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id IAA14082 ; Thu, 13 Jul 1995 08:47:51 -0700 Received: (from bde@localhost) by godzilla.zeta.org.au (8.6.9/8.6.9) id BAA08483; Fri, 14 Jul 1995 01:43:12 +1000 Date: Fri, 14 Jul 1995 01:43:12 +1000 From: Bruce Evans Message-Id: <199507131543.BAA08483@godzilla.zeta.org.au> To: bde@freefall.cdrom.com, jfieber@grendel.csc.smith.edu Subject: Re: cvs commit: src/gnu/usr.bin/cc/doc Makefile Cc: CVS-commiters@freefall.cdrom.com, cvs-gnu@freefall.cdrom.com Sender: cvs-gnu-owner@freebsd.org Precedence: bulk >> Modified: gnu/usr.bin/cc/doc Makefile >> Log: >> Fix dependencies for gcc.info and reno.info. `make depend' doesn't handle >> info files although texinfo supports @include. >I was going to do some makefiles for the handbook and the faq and >discovered that bsd.doc.mk thinks all the world is a [nt]roff >file. Maybe it needs an overhaul to handle texinfo and sgml, >supporting dependencies would be a Good Thing for both formats. Here the problem is really that BSD thinks that all source files are in `C' :-). We hacked bsd.doc.mk to create bsd.info.mk but it has a null `depend' target copied from bsd.doc.mk. I suppose complicated doc Makefiles have the same problem with `.so'. Bruce From owner-cvs-gnu Thu Jul 13 12:19:44 1995 Return-Path: cvs-gnu-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id MAA22580 for cvs-gnu-outgoing; Thu, 13 Jul 1995 12:19:44 -0700 Received: from gndrsh.aac.dev.com (gndrsh.aac.dev.com [198.145.92.241]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id MAA22573 ; Thu, 13 Jul 1995 12:19:29 -0700 Received: (from rgrimes@localhost) by gndrsh.aac.dev.com (8.6.11/8.6.9) id MAA28775; Thu, 13 Jul 1995 12:19:12 -0700 From: "Rodney W. Grimes" Message-Id: <199507131919.MAA28775@gndrsh.aac.dev.com> Subject: Re: cvs commit: src/gnu/usr.bin/cc/doc Makefile To: jfieber@grendel.csc.smith.edu (John Fieber) Date: Thu, 13 Jul 1995 12:19:12 -0700 (PDT) Cc: bde@freefall.cdrom.com, CVS-commiters@freefall.cdrom.com, cvs-gnu@freefall.cdrom.com In-Reply-To: <199507131459.KAA03167@grendel.csc.smith.edu> from "John Fieber" at Jul 13, 95 10:59:14 am X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Length: 1524 Sender: cvs-gnu-owner@freebsd.org Precedence: bulk > > Bruce Evans writes: > > > > bde 95/07/12 11:57:21 > > > > Modified: gnu/usr.bin/cc/doc Makefile > > Log: > > Fix dependencies for gcc.info and reno.info. `make depend' doesn't handle > > info files although texinfo supports @include. > > I was going to do some makefiles for the handbook and the faq and > discovered that bsd.doc.mk thinks all the world is a [nt]roff > file. Maybe it needs an overhaul to handle texinfo and sgml, > supporting dependencies would be a Good Thing for both formats. Rather than overhaul bsd.doc.mk might I suggest (and I have spent a lot of time working with .mk files) you write a BSD.sgml.mk and a BSD.texinfo.mk to handle these. I would prefer you do it this way as that will make it easier for me to migrate your work into the slowly moving, but long standing major sized project of mine to completly revamp /usr/share/mk into something a lot more sane, with lots and lots of cleanup of what we have now (there are no less than 50 bugs in 6 files :-(). The big giant mess in there now can be reduced (and I have an 80% functional version) to BSD.src.mk that runs much faster, has no duplicated code in it and fixes a _ton_ of generic design problems (including cross platform compilation and multiple platform targetting from one source tree, rerooted /usr/src, /usr/obj hierarchies, etc etc etc.) -- Rod Grimes rgrimes@gndrsh.aac.dev.com Accurate Automation Company Reliable computers for FreeBSD From owner-cvs-gnu Thu Jul 13 18:56:59 1995 Return-Path: cvs-gnu-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id SAA09849 for cvs-gnu-outgoing; Thu, 13 Jul 1995 18:56:59 -0700 Received: (from wpaul@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id SAA09837 ; Thu, 13 Jul 1995 18:56:53 -0700 Date: Thu, 13 Jul 1995 18:56:53 -0700 From: Bill Paul Message-Id: <199507140156.SAA09837@freefall.cdrom.com> To: CVS-commiters, cvs-gnu Subject: cvs commit: src/gnu/usr.sbin/ypserv server.c svc_run.c yp_svc.c Sender: cvs-gnu-owner@freebsd.org Precedence: bulk wpaul 95/07/13 18:56:52 Modified: gnu/usr.sbin/ypserv server.c svc_run.c yp_svc.c Log: server.c: When 'securenets' (actually TCP_WRAPPERS) is enabled, don't syslog connections unless they were rejected. This helps save wear and tear on the syslog facility in large networks with many clienst systems. yp_svc.c: Be a little smarter about using sigaction() -- set the SA_RESTART flag. svc_run: Be doubly paranoid about killing off child processes. Do a flag chack and a pid check before letting child 'threads' self-destruct. From owner-cvs-gnu Sat Jul 15 10:51:21 1995 Return-Path: cvs-gnu-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id KAA13756 for cvs-gnu-outgoing; Sat, 15 Jul 1995 10:51:21 -0700 Received: (from wpaul@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id KAA13746 ; Sat, 15 Jul 1995 10:51:14 -0700 Date: Sat, 15 Jul 1995 10:51:14 -0700 From: Bill Paul Message-Id: <199507151751.KAA13746@freefall.cdrom.com> To: CVS-commiters, cvs-gnu Subject: cvs commit: src/gnu/usr.sbin/ypserv server.c Sender: cvs-gnu-owner@freebsd.org Precedence: bulk wpaul 95/07/15 10:51:13 Modified: gnu/usr.sbin/ypserv server.c Log: Add missing 'break' statement in failure case of ypxfr switch clause. From owner-cvs-gnu Sat Jul 15 16:27:58 1995 Return-Path: cvs-gnu-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id QAA24784 for cvs-gnu-outgoing; Sat, 15 Jul 1995 16:27:58 -0700 Received: (from wpaul@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id QAA24773 ; Sat, 15 Jul 1995 16:27:52 -0700 Date: Sat, 15 Jul 1995 16:27:52 -0700 From: Bill Paul Message-Id: <199507152327.QAA24773@freefall.cdrom.com> To: CVS-commiters, cvs-gnu Subject: cvs commit: src/gnu/usr.sbin/ypserv server.c yp_svc.c Sender: cvs-gnu-owner@freebsd.org Precedence: bulk wpaul 95/07/15 16:27:50 Modified: usr.sbin/ypbind ypbind.c gnu/usr.sbin/ypserv server.c yp_svc.c Log: Some small signal handling tweaks: be sure to keep wait3()ing until all children are reaped and make sure to block SIGCHLD delivery during handler execution when installing SIGCHLD handler with sigaction(). From owner-cvs-gnu Sat Jul 15 22:25:24 1995 Return-Path: cvs-gnu-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id WAA06088 for cvs-gnu-outgoing; Sat, 15 Jul 1995 22:25:24 -0700 Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.34]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id WAA06061 ; Sat, 15 Jul 1995 22:24:44 -0700 Received: (from bde@localhost) by godzilla.zeta.org.au (8.6.9/8.6.9) id PAA14762; Sun, 16 Jul 1995 15:23:14 +1000 Date: Sun, 16 Jul 1995 15:23:14 +1000 From: Bruce Evans Message-Id: <199507160523.PAA14762@godzilla.zeta.org.au> To: CVS-commiters@freefall.cdrom.com, cvs-gnu@freefall.cdrom.com, wpaul@freefall.cdrom.com Subject: Re: cvs commit: src/gnu/usr.sbin/ypserv server.c yp_svc.c Sender: cvs-gnu-owner@freebsd.org Precedence: bulk > Modified: usr.sbin/ypbind ypbind.c > gnu/usr.sbin/ypserv server.c yp_svc.c > Log: > Some small signal handling tweaks: be sure to keep wait3()ing until all > children are reaped and make sure to block SIGCHLD delivery during handler > execution when installing SIGCHLD handler with sigaction(). Er, blocking delivery of the signal being handled is the default for sigaction, and FreeBSD doesn't provide a way to avoid blocking it (some systems provide SA_NOMASK to support bug for bug SysV compatibility). The method of reusing the old sa_mask makes it unclear which mask you are getting. If the old mask is unknown then it may have an unwanted SA_MASK in it (perhaps even an undocumented one if the mask was first set by signal()). It may be necessary to use SA_NOCLDSTOP to avoid seeing stopped children. Bruce