From owner-cvs-lib Mon Oct 2 13:02:15 1995 Return-Path: owner-cvs-lib Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id NAA19356 for cvs-lib-outgoing; Mon, 2 Oct 1995 13:02:15 -0700 Received: (from wollman@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id NAA19332 ; Mon, 2 Oct 1995 13:02:07 -0700 Date: Mon, 2 Oct 1995 13:02:07 -0700 From: "Garrett A. Wollman" Message-Id: <199510022002.NAA19332@freefall.freebsd.org> To: CVS-commiters, cvs-lib Subject: cvs commit: src/lib/msun Makefile Sender: owner-cvs-lib@FreeBSD.org Precedence: bulk wollman 95/10/02 13:02:06 Modified: share/mk bsd.kmod.mk bsd.lib.mk bsd.man.mk bsd.prog.mk lib/msun Makefile Log: Compress manual pages (if desired) in the obj directory rather than in the installation destination. Should make release-building substantially faster. The msun Makefile changes simple adapt to the new scheme. From owner-cvs-lib Tue Oct 3 12:17:33 1995 Return-Path: owner-cvs-lib Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id MAA17060 for cvs-lib-outgoing; Tue, 3 Oct 1995 12:17:33 -0700 Received: (from joerg@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id MAA17009 ; Tue, 3 Oct 1995 12:17:23 -0700 Date: Tue, 3 Oct 1995 12:17:23 -0700 From: Joerg Wunsch Message-Id: <199510031917.MAA17009@freefall.freebsd.org> To: CVS-commiters, cvs-lib Subject: cvs commit: src/lib/libc/sys semctl.2 semget.2 semop.2 shmat.2 shmctl.2 shmget.2 Makefile.inc Sender: owner-cvs-lib@FreeBSD.org Precedence: bulk joerg 95/10/03 12:17:22 Modified: lib/libc/sys Makefile.inc Added: lib/libc/sys semctl.2 semget.2 semop.2 shmat.2 shmctl.2 shmget.2 Log: Add man pages for the SYSV shm* and sem* functions. This partially closes PR # docs/177. This should probably also go into 2.1. Submitted by: daveho@infocom.com (David Hovemeyer) From owner-cvs-lib Wed Oct 4 08:59:08 1995 Return-Path: owner-cvs-lib Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id IAA23997 for cvs-lib-outgoing; Wed, 4 Oct 1995 08:59:08 -0700 Received: (from phk@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id IAA23988 ; Wed, 4 Oct 1995 08:58:59 -0700 Date: Wed, 4 Oct 1995 08:58:59 -0700 From: Poul-Henning Kamp Message-Id: <199510041558.IAA23988@freefall.freebsd.org> To: CVS-commiters, cvs-lib Subject: cvs commit: src/lib/libc/i386/sys sbrk.S Sender: owner-cvs-lib@FreeBSD.org Precedence: bulk phk 95/10/04 08:58:58 Modified: lib/libc/i386/sys sbrk.S Log: Calling sbrk(2) with zero argument doesn't need to generate a syscall. Reviewed by: bde From owner-cvs-lib Wed Oct 4 11:29:29 1995 Return-Path: owner-cvs-lib Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id LAA29130 for cvs-lib-outgoing; Wed, 4 Oct 1995 11:29:29 -0700 Received: (from peter@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id LAA29102 ; Wed, 4 Oct 1995 11:29:06 -0700 Date: Wed, 4 Oct 1995 11:29:06 -0700 From: Peter Wemm Message-Id: <199510041829.LAA29102@freefall.freebsd.org> To: CVS-commiters, cvs-lib Subject: cvs commit: src/lib/libc/stdio gets.c Sender: owner-cvs-lib@FreeBSD.org Precedence: bulk peter 95/10/04 11:29:04 Modified: lib/libc/stdio gets.c Log: Make a link-time warning for the use of gets(). IMHO, the run-time warning should come out, but I'm not game to start that fight yet... This uses a feature of the gnu linker. Inspired by: NetBSD From owner-cvs-lib Wed Oct 4 15:46:27 1995 Return-Path: owner-cvs-lib Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id PAA07360 for cvs-lib-outgoing; Wed, 4 Oct 1995 15:46:27 -0700 Received: from irz301.inf.tu-dresden.de (irz301.inf.tu-dresden.de [141.76.1.11]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id PAA07315 ; Wed, 4 Oct 1995 15:45:49 -0700 Received: from sax.sax.de by irz301.inf.tu-dresden.de (8.6.12/8.6.12-s1) with ESMTP id XAA02264; Wed, 4 Oct 1995 23:43:37 +0100 Received: by sax.sax.de (8.6.11/8.6.12-s1) with UUCP id XAA00942; Wed, 4 Oct 1995 23:43:36 +0100 Received: (from j@localhost) by uriah.heep.sax.de (8.6.12/8.6.9) id XAA04988; Wed, 4 Oct 1995 23:41:17 +0100 From: J Wunsch Message-Id: <199510042241.XAA04988@uriah.heep.sax.de> Subject: Re: cvs commit: src/lib/libc/stdio gets.c To: nate@rocky.sri.MT.net (Nate Williams) Date: Wed, 4 Oct 1995 23:41:17 +0100 (MET) Cc: peter@freefall.freebsd.org, CVS-commiters@freefall.freebsd.org, cvs-lib@freefall.freebsd.org Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: <199510041853.MAA04484@rocky.sri.MT.net> from "Nate Williams" at Oct 4, 95 12:53:54 pm X-Phone: +49-351-2012 669 X-Mailer: ELM [version 2.4 PL23] MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Content-Length: 694 Sender: owner-cvs-lib@FreeBSD.org Precedence: bulk As Nate Williams wrote: > > ... If you also want to take some more > inspiration from NetBSD, add a static variable to the sources so the > warning is printed at run-time only once. It is still annoying, but not > continually annoying. huh? This has been there all the time: static int warned; static char w[] = "warning: this program uses gets(), which is unsafe.\r\n"; if (!warned) { (void) write(STDERR_FILENO, w, sizeof(w) - 1); warned = 1; } -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-) From owner-cvs-lib Wed Oct 4 16:25:54 1995 Return-Path: owner-cvs-lib Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id QAA08318 for cvs-lib-outgoing; Wed, 4 Oct 1995 16:25:54 -0700 Received: from jhome.DIALix.COM (root@jhome.DIALix.COM [192.203.228.69]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id QAA08313 ; Wed, 4 Oct 1995 16:25:46 -0700 Received: (from peter@localhost) by jhome.DIALix.COM (8.6.12/8.6.9) id HAA07133; Thu, 5 Oct 1995 07:20:34 +0800 Date: Thu, 5 Oct 1995 07:20:34 +0800 (WST) From: Peter Wemm To: Joerg Wunsch cc: Nate Williams , CVS-commiters@freefall.freebsd.org, cvs-lib@freefall.freebsd.org Subject: Re: cvs commit: src/lib/libc/stdio gets.c In-Reply-To: <199510042241.XAA04988@uriah.heep.sax.de> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-cvs-lib@FreeBSD.org Precedence: bulk On Wed, 4 Oct 1995, J Wunsch wrote: > > As Nate Williams wrote: > > > > ... If you also want to take some more > > inspiration from NetBSD, add a static variable to the sources so the > > warning is printed at run-time only once. It is still annoying, but not > > continually annoying. > > huh? This has been there all the time: > > static int warned; > static char w[] = > "warning: this program uses gets(), which is unsafe.\r\n"; > > if (!warned) { > (void) write(STDERR_FILENO, w, sizeof(w) - 1); > warned = 1; > } Yeah, that's the bit of code that I wanted to nuke, but judging by Bruce's responce when I asked about that, I thought I'd play it safe and cover my backside. The way I see it, this warning is bad because there's no guarantee that the message is going to be printed if the code path that calls gets() in the first place isn't executed often. When it finally does, the poor user is left wondering why the hell the executable has suddenly printed this new error message in the middle of the program run. If it could be done via _init tricks or something at startup, then it would probably be OK, but that's not trivial with shared libraries... Oh well.. Anyway, my vote for deleting the run-time warning is on the record. -Peter > -- > cheers, J"org > > joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE > Never trust an operating system you don't have sources for. ;-) > From owner-cvs-lib Wed Oct 4 16:33:06 1995 Return-Path: owner-cvs-lib Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id QAA08502 for cvs-lib-outgoing; Wed, 4 Oct 1995 16:33:06 -0700 Received: from rocky.sri.MT.net (sri.MT.net [204.94.231.129]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id QAA08495 ; Wed, 4 Oct 1995 16:32:56 -0700 Received: (from nate@localhost) by rocky.sri.MT.net (8.6.12/8.6.12) id RAA05253; Wed, 4 Oct 1995 17:29:57 -0600 Date: Wed, 4 Oct 1995 17:29:57 -0600 From: Nate Williams Message-Id: <199510042329.RAA05253@rocky.sri.MT.net> To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) Cc: nate@rocky.sri.MT.net (Nate Williams), peter@freefall.freebsd.org, CVS-commiters@freefall.freebsd.org, cvs-lib@freefall.freebsd.org Subject: Re: cvs commit: src/lib/libc/stdio gets.c In-Reply-To: <199510042241.XAA04988@uriah.heep.sax.de> References: <199510041853.MAA04484@rocky.sri.MT.net> <199510042241.XAA04988@uriah.heep.sax.de> Sender: owner-cvs-lib@FreeBSD.org Precedence: bulk J. Wunsch writes: > As Nate Williams wrote: > > > > ... If you also want to take some more > > inspiration from NetBSD, add a static variable to the sources so the > > warning is printed at run-time only once. It is still annoying, but not > > continually annoying. > > huh? This has been there all the time: > > static int warned; > static char w[] = > "warning: this program uses gets(), which is unsafe.\r\n"; > > if (!warned) { > (void) write(STDERR_FILENO, w, sizeof(w) - 1); > warned = 1; > } > Whoops. Colod me red-faced. I'll go back and slink into my corner. Nate From owner-cvs-lib Wed Oct 4 17:11:30 1995 Return-Path: owner-cvs-lib Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id RAA09872 for cvs-lib-outgoing; Wed, 4 Oct 1995 17:11:30 -0700 Received: (from peter@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id RAA09861 ; Wed, 4 Oct 1995 17:11:18 -0700 Date: Wed, 4 Oct 1995 17:11:18 -0700 From: Peter Wemm Message-Id: <199510050011.RAA09861@freefall.freebsd.org> To: CVS-commiters, cvs-lib Subject: cvs commit: src/lib/libc/gen syslog.c Sender: owner-cvs-lib@FreeBSD.org Precedence: bulk peter 95/10/04 17:11:17 Modified: lib/libc/gen syslog.c Log: Fix the problem that I aroused with the last commit.. What was happening, is if syslogd was not running, syslog() would do a strcat("\r\n") on a non-null-terminated buffer, and write it to the console. This meant that sometimes extra characters could be written to the console during boot, depending on the stack contents. This totally avoids the potential problem by using writev() like the rest of the does, and avoid modifying the buffer after the trouble we've gone to to carefully protect it. This is actually a trivial fix, in spite of the long commit message.. :-) It only appeared during boot and shutdown with syslogd stopped. From owner-cvs-lib Thu Oct 5 03:25:12 1995 Return-Path: owner-cvs-lib Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id DAA02140 for cvs-lib-outgoing; Thu, 5 Oct 1995 03:25:12 -0700 Received: (from phk@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id DAA02116 ; Thu, 5 Oct 1995 03:25:02 -0700 Date: Thu, 5 Oct 1995 03:25:02 -0700 From: Poul-Henning Kamp Message-Id: <199510051025.DAA02116@freefall.freebsd.org> To: CVS-commiters, cvs-lib Subject: cvs commit: src/lib/libc/i386/gen Makefile.inc divsi3.S fixdfsi.S fixunsdfsi.S udivsi3.S Sender: owner-cvs-lib@FreeBSD.org Precedence: bulk phk 95/10/05 03:25:00 Modified: lib/libc/i386/gen Makefile.inc Removed: lib/libc/i386/gen divsi3.S fixdfsi.S fixunsdfsi.S udivsi3.S Log: remove GCC support functions from libc. Should never have been here in the first place. From owner-cvs-lib Thu Oct 5 03:27:22 1995 Return-Path: owner-cvs-lib Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id DAA02260 for cvs-lib-outgoing; Thu, 5 Oct 1995 03:27:22 -0700 Received: from Root.COM (implode.Root.COM [198.145.90.17]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id DAA02249 ; Thu, 5 Oct 1995 03:27:10 -0700 Received: from corbin.Root.COM (corbin [198.145.90.50]) by Root.COM (8.6.12/8.6.5) with ESMTP id DAA22697; Thu, 5 Oct 1995 03:25:40 -0700 Received: from localhost (localhost [127.0.0.1]) by corbin.Root.COM (8.6.12/8.6.5) with SMTP id DAA29372; Thu, 5 Oct 1995 03:27:05 -0700 Message-Id: <199510051027.DAA29372@corbin.Root.COM> To: Poul-Henning Kamp cc: CVS-commiters@freefall.freebsd.org, cvs-lib@freefall.freebsd.org Subject: Re: cvs commit: src/lib/libc/i386/gen Makefile.inc divsi3.S fixdfsi.S fixunsdfsi.S udivsi3.S In-reply-to: Your message of "Thu, 05 Oct 95 03:25:02 PDT." <199510051025.DAA02116@freefall.freebsd.org> From: David Greenman Reply-To: davidg@Root.COM Date: Thu, 05 Oct 1995 03:27:05 -0700 Sender: owner-cvs-lib@FreeBSD.org Precedence: bulk >phk 95/10/05 03:25:00 > > Modified: lib/libc/i386/gen Makefile.inc > Removed: lib/libc/i386/gen divsi3.S fixdfsi.S fixunsdfsi.S udivsi3.S > Log: > remove GCC support functions from libc. > Should never have been here in the first place. Is this going to require a bump of the library major number? -DG From owner-cvs-lib Thu Oct 5 03:32:15 1995 Return-Path: owner-cvs-lib Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id DAA02609 for cvs-lib-outgoing; Thu, 5 Oct 1995 03:32:15 -0700 Received: from tfs.com (tfs.com [140.145.250.1]) by freefall.freebsd.org (8.6.12/8.6.6) with SMTP id DAA02602 ; Thu, 5 Oct 1995 03:31:57 -0700 Received: from critter.tfs.com by tfs.com (smail3.1.28.1) with SMTP id m0t0nal-0003wfC; Thu, 5 Oct 95 03:31 PDT Received: from localhost (localhost [127.0.0.1]) by critter.tfs.com (8.6.11/8.6.9) with SMTP id LAA00422; Thu, 5 Oct 1995 11:31:56 +0100 X-Authentication-Warning: critter.tfs.com: Host localhost didn't use HELO protocol To: davidg@Root.COM cc: Poul-Henning Kamp , CVS-commiters@freefall.freebsd.org, cvs-lib@freefall.freebsd.org Subject: Re: cvs commit: src/lib/libc/i386/gen Makefile.inc divsi3.S fixdfsi.S fixunsdfsi.S udivsi3.S In-reply-to: Your message of "Thu, 05 Oct 1995 03:27:05 MST." <199510051027.DAA29372@corbin.Root.COM> Date: Thu, 05 Oct 1995 11:31:56 +0100 Message-ID: <420.812889116@critter.tfs.com> From: Poul-Henning Kamp Sender: owner-cvs-lib@FreeBSD.org Precedence: bulk > >phk 95/10/05 03:25:00 > > > > Modified: lib/libc/i386/gen Makefile.inc > > Removed: lib/libc/i386/gen divsi3.S fixdfsi.S fixunsdfsi.S udivsi3.S > > Log: > > remove GCC support functions from libc. > > Should never have been here in the first place. > > Is this going to require a bump of the library major number? I don't think so. The divsi3 stuff is inlined by gcc, and the fixdfsi stuff is in libgcc -- Poul-Henning Kamp | phk@FreeBSD.ORG FreeBSD Core-team. http://www.freebsd.org/~phk | phk@login.dknet.dk Private mailbox. whois: [PHK] | phk@ref.tfs.com TRW Financial Systems, Inc. It will be some time yet before progress goes too far... (Poul Henningsen) From owner-cvs-lib Thu Oct 5 09:00:06 1995 Return-Path: owner-cvs-lib Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id JAA12971 for cvs-lib-outgoing; Thu, 5 Oct 1995 09:00:06 -0700 Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.34]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id IAA12960 ; Thu, 5 Oct 1995 08:59:46 -0700 Received: (from bde@localhost) by godzilla.zeta.org.au (8.6.9/8.6.9) id BAA22685; Fri, 6 Oct 1995 01:55:02 +1000 Date: Fri, 6 Oct 1995 01:55:02 +1000 From: Bruce Evans Message-Id: <199510051555.BAA22685@godzilla.zeta.org.au> To: davidg@Root.COM, phk@critter.tfs.com Subject: Re: cvs commit: src/lib/libc/i386/gen Makefile.inc divsi3.S fixdfsi.S fixunsdfsi.S udivsi3.S Cc: CVS-commiters@freefall.freebsd.org, cvs-lib@freefall.freebsd.org, phk@freefall.freebsd.org Sender: owner-cvs-lib@FreeBSD.org Precedence: bulk >> > Removed: lib/libc/i386/gen divsi3.S fixdfsi.S fixunsdfsi.S udivsi3.S >> > Log: >> > remove GCC support functions from libc. >> > Should never have been here in the first place. >> >> Is this going to require a bump of the library major number? >I don't think so. >The divsi3 stuff is inlined by gcc, and the fixdfsi stuff is in libgcc Isn't there still a problem with functions from shared libs being linked to before static libraries? Anyway, the library major number doesn't need to be bumped because all of these functions have been inlined bt gcc since gcc-2.4 or earlier. Bruce From owner-cvs-lib Thu Oct 5 09:29:17 1995 Return-Path: owner-cvs-lib Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id JAA14160 for cvs-lib-outgoing; Thu, 5 Oct 1995 09:29:17 -0700 Received: from rocky.sri.MT.net (sri.MT.net [204.94.231.129]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id JAA14155 ; Thu, 5 Oct 1995 09:29:09 -0700 Received: (from nate@localhost) by rocky.sri.MT.net (8.6.12/8.6.12) id KAA07433; Thu, 5 Oct 1995 10:30:34 -0600 Date: Thu, 5 Oct 1995 10:30:34 -0600 From: Nate Williams Message-Id: <199510051630.KAA07433@rocky.sri.MT.net> To: Bruce Evans Cc: davidg@Root.COM, phk@critter.tfs.com, CVS-commiters@freefall.freebsd.org, cvs-lib@freefall.freebsd.org, phk@freefall.freebsd.org Subject: Re: cvs commit: src/lib/libc/i386/gen Makefile.inc divsi3.S fixdfsi.S fixunsdfsi.S udivsi3.S In-Reply-To: <199510051555.BAA22685@godzilla.zeta.org.au> References: <199510051555.BAA22685@godzilla.zeta.org.au> Sender: owner-cvs-lib@FreeBSD.org Precedence: bulk > >The divsi3 stuff is inlined by gcc, and the fixdfsi stuff is in libgcc > > Isn't there still a problem with functions from shared libs being linked > to before static libraries? Yes. But it's actually being worked on. :) Nate From owner-cvs-lib Thu Oct 5 13:13:23 1995 Return-Path: owner-cvs-lib Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id NAA19250 for cvs-lib-outgoing; Thu, 5 Oct 1995 13:13:23 -0700 Received: (from davidg@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id NAA19241 ; Thu, 5 Oct 1995 13:13:15 -0700 Date: Thu, 5 Oct 1995 13:13:15 -0700 From: David Greenman Message-Id: <199510052013.NAA19241@freefall.freebsd.org> To: CVS-commiters, cvs-lib Subject: cvs commit: src/lib/libc/gen getgrent.c getnetgrent.c getpwent.c syslog.c ttyname.c Sender: owner-cvs-lib@FreeBSD.org Precedence: bulk davidg 95/10/05 13:13:14 Branch: lib/libc/gen RELENG_2_1_0 Modified: lib/libc/gen getgrent.c getnetgrent.c getpwent.c syslog.c ttyname.c Log: Sync with main branch. From owner-cvs-lib Thu Oct 5 13:21:21 1995 Return-Path: owner-cvs-lib Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id NAA19620 for cvs-lib-outgoing; Thu, 5 Oct 1995 13:21:21 -0700 Received: (from davidg@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id NAA19610 ; Thu, 5 Oct 1995 13:21:05 -0700 Date: Thu, 5 Oct 1995 13:21:05 -0700 From: David Greenman Message-Id: <199510052021.NAA19610@freefall.freebsd.org> To: CVS-commiters, cvs-lib Subject: cvs commit: src/lib/libc/sys Makefile.inc Sender: owner-cvs-lib@FreeBSD.org Precedence: bulk davidg 95/10/05 13:21:04 Branch: lib/libc/sys RELENG_2_1_0 Modified: lib/libc/sys Makefile.inc Log: Brought in changes from main branch: add missing manual pages. From owner-cvs-lib Thu Oct 5 13:22:20 1995 Return-Path: owner-cvs-lib Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id NAA19700 for cvs-lib-outgoing; Thu, 5 Oct 1995 13:22:20 -0700 Received: (from davidg@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id NAA19677 ; Thu, 5 Oct 1995 13:22:07 -0700 Date: Thu, 5 Oct 1995 13:22:07 -0700 From: David Greenman Message-Id: <199510052022.NAA19677@freefall.freebsd.org> To: CVS-commiters, cvs-lib Subject: cvs commit: src/lib/libc/yp yplib.c Sender: owner-cvs-lib@FreeBSD.org Precedence: bulk davidg 95/10/05 13:22:05 Branch: lib/libc/yp RELENG_2_1_0 Modified: lib/libc/yp yplib.c Log: Sync with main branch. From owner-cvs-lib Fri Oct 6 00:05:54 1995 Return-Path: owner-cvs-lib Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id AAA14651 for cvs-lib-outgoing; Fri, 6 Oct 1995 00:05:54 -0700 Received: from silvia.HIP.Berkeley.EDU (silvia.HIP.Berkeley.EDU [136.152.64.181]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id AAA14646 ; Fri, 6 Oct 1995 00:05:43 -0700 Received: (from asami@localhost) by silvia.HIP.Berkeley.EDU (8.6.12/8.6.9) id AAA05173; Fri, 6 Oct 1995 00:05:30 -0700 Date: Fri, 6 Oct 1995 00:05:30 -0700 Message-Id: <199510060705.AAA05173@silvia.HIP.Berkeley.EDU> To: nate@rocky.sri.MT.net CC: bde@zeta.org.au, davidg@Root.COM, phk@critter.tfs.com, CVS-commiters@freefall.freebsd.org, cvs-lib@freefall.freebsd.org, phk@freefall.freebsd.org In-reply-to: <199510051630.KAA07433@rocky.sri.MT.net> (message from Nate Williams on Thu, 5 Oct 1995 10:30:34 -0600) Subject: Re: cvs commit: src/lib/libc/i386/gen Makefile.inc divsi3.S fixdfsi.S fixunsdfsi.S udivsi3.S From: asami@cs.berkeley.edu (Satoshi Asami) Sender: owner-cvs-lib@FreeBSD.org Precedence: bulk * > >The divsi3 stuff is inlined by gcc, and the fixdfsi stuff is in libgcc * > * > Isn't there still a problem with functions from shared libs being linked * > to before static libraries? * * Yes. But it's actually being worked on. :) You mean by gcc inserting a -Bstatic and -Bdynamic around -lgcc (or something like that)? Well that's fine for most programs, but some software (e.g., emacs) explicitly puts -lgcc in there, for whatever reason. Why are we still shipping libgcc.so.261.0 with the bindist anyway? Now that "make world" doesn't make it, shouldn't that be part of compat205dist? Satoshi From owner-cvs-lib Fri Oct 6 06:52:49 1995 Return-Path: owner-cvs-lib Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id GAA28400 for cvs-lib-outgoing; Fri, 6 Oct 1995 06:52:49 -0700 Received: from rocky.sri.MT.net (sri.MT.net [204.94.231.129]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id GAA28395 ; Fri, 6 Oct 1995 06:52:37 -0700 Received: (from nate@localhost) by rocky.sri.MT.net (8.6.12/8.6.12) id HAA05315; Fri, 6 Oct 1995 07:53:23 -0600 Date: Fri, 6 Oct 1995 07:53:23 -0600 From: Nate Williams Message-Id: <199510061353.HAA05315@rocky.sri.MT.net> To: asami@cs.berkeley.edu (Satoshi Asami) Cc: nate@rocky.sri.MT.net, bde@zeta.org.au, davidg@Root.COM, phk@critter.tfs.com, CVS-commiters@freefall.freebsd.org, cvs-lib@freefall.freebsd.org, phk@freefall.freebsd.org Subject: Re: cvs commit: src/lib/libc/i386/gen Makefile.inc divsi3.S fixdfsi.S fixunsdfsi.S udivsi3.S In-Reply-To: <199510060705.AAA05173@silvia.HIP.Berkeley.EDU> References: <199510051630.KAA07433@rocky.sri.MT.net> <199510060705.AAA05173@silvia.HIP.Berkeley.EDU> Sender: owner-cvs-lib@FreeBSD.org Precedence: bulk > * > >The divsi3 stuff is inlined by gcc, and the fixdfsi stuff is in libgcc > * > > * > Isn't there still a problem with functions from shared libs being linked > * > to before static libraries? > * > * Yes. But it's actually being worked on. :) > > You mean by gcc inserting a -Bstatic and -Bdynamic around -lgcc (or > something like that)? Nope. The underlying problem is being worked on. > Why are we still shipping libgcc.so.261.0 with the bindist anyway? > Now that "make world" doesn't make it, shouldn't that be part of > compat205dist? Yep. Nate From owner-cvs-lib Fri Oct 6 07:52:57 1995 Return-Path: owner-cvs-lib Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id HAA00317 for cvs-lib-outgoing; Fri, 6 Oct 1995 07:52:57 -0700 Received: from grunt.grondar.za (grunt.grondar.za [196.7.18.129]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id HAA00296 ; Fri, 6 Oct 1995 07:52:06 -0700 Received: from grumble.grondar.za (grumble.grondar.za [196.7.18.130]) by grunt.grondar.za (8.6.12/8.6.9) with ESMTP id QAA08360; Fri, 6 Oct 1995 16:51:50 +0200 Received: from localhost (localhost [127.0.0.1]) by grumble.grondar.za (8.6.12/8.6.9) with SMTP id QAA13251; Fri, 6 Oct 1995 16:51:49 +0200 Message-Id: <199510061451.QAA13251@grumble.grondar.za> X-Authentication-Warning: grumble.grondar.za: Host localhost didn't use HELO protocol To: Nate Williams cc: asami@cs.berkeley.edu (Satoshi Asami), bde@zeta.org.au, davidg@Root.COM, phk@critter.tfs.com, CVS-commiters@freefall.freebsd.org, cvs-lib@freefall.freebsd.org, phk@freefall.freebsd.org Subject: Re: cvs commit: src/lib/libc/i386/gen Makefile.inc divsi3.S fixdfsi.S fixunsdfsi.S udivsi3.S Date: Fri, 06 Oct 1995 16:51:49 +0200 From: Mark Murray Sender: owner-cvs-lib@FreeBSD.org Precedence: bulk > > Why are we still shipping libgcc.so.261.0 with the bindist anyway? > > Now that "make world" doesn't make it, shouldn't that be part of > > compat205dist? > > Yep. I threw out libgcc.so.261.0 soon after we moved off gcc 2.6.1. Never had a problem. I do, however recompile everything (I mean _everything_) every so often. M -- Mark Murray 46 Harvey Rd, Claremont, Cape Town 7700, South Africa +27 21 61-3768 GMT+0200 Finger mark@grumble.grondar.za for PGP key From owner-cvs-lib Fri Oct 6 14:10:44 1995 Return-Path: owner-cvs-lib Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id OAA15699 for cvs-lib-outgoing; Fri, 6 Oct 1995 14:10:44 -0700 Received: from time.cdrom.com (time.cdrom.com [192.216.222.226]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id OAA15671 ; Fri, 6 Oct 1995 14:10:25 -0700 Received: from localhost (localhost [127.0.0.1]) by time.cdrom.com (8.6.12/8.6.9) with SMTP id OAA18885; Fri, 6 Oct 1995 14:09:04 -0700 To: Mark Murray cc: Nate Williams , asami@cs.berkeley.edu (Satoshi Asami), bde@zeta.org.au, davidg@Root.COM, phk@critter.tfs.com, CVS-commiters@freefall.freebsd.org, cvs-lib@freefall.freebsd.org, phk@freefall.freebsd.org Subject: Re: cvs commit: src/lib/libc/i386/gen Makefile.inc divsi3.S fixdfsi.S fixunsdfsi.S udivsi3.S In-reply-to: Your message of "Fri, 06 Oct 1995 16:51:49 +0200." <199510061451.QAA13251@grumble.grondar.za> Date: Fri, 06 Oct 1995 14:09:04 -0700 Message-ID: <18883.813013744@time.cdrom.com> From: "Jordan K. Hubbard" Sender: owner-cvs-lib@FreeBSD.org Precedence: bulk Any of you feel like putting the compat205 dist together? I always get stuck with this job at the last minute, and the time before last I really screwed it up (putting the DES libraries in the compat20 dist - D'oh!). Jordan > > > Why are we still shipping libgcc.so.261.0 with the bindist anyway? > > > Now that "make world" doesn't make it, shouldn't that be part of > > > compat205dist? > > > > Yep. > > I threw out libgcc.so.261.0 soon after we moved off gcc 2.6.1. Never had a > problem. I do, however recompile everything (I mean _everything_) every > so often. > > M > -- > Mark Murray > 46 Harvey Rd, Claremont, Cape Town 7700, South Africa > +27 21 61-3768 GMT+0200 > Finger mark@grumble.grondar.za for PGP key From owner-cvs-lib Fri Oct 6 14:29:22 1995 Return-Path: owner-cvs-lib Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id OAA17109 for cvs-lib-outgoing; Fri, 6 Oct 1995 14:29:22 -0700 Received: (from wpaul@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id OAA17080 ; Fri, 6 Oct 1995 14:29:06 -0700 Date: Fri, 6 Oct 1995 14:29:06 -0700 From: Bill Paul Message-Id: <199510062129.OAA17080@freefall.freebsd.org> To: CVS-commiters, cvs-lib Subject: cvs commit: src/lib/libc/gen getgrent.c Sender: owner-cvs-lib@FreeBSD.org Precedence: bulk wpaul 95/10/06 14:29:04 Modified: lib/libc/gen getgrent.c Log: Some NIS bug stomping: - In some cases, we don't properly resolve _all_ possible group memberships. If a user is a member of both local and NIS groups, we sometimes lose some of the membership info from NIS. (Reported by: Thorsten Kukuk ) - Make NIS +groupname overrides actually work the way the SunOS group(5) man page says they should (make them work for all cases: getgrent(), getgrnam() and getgrgid()). - When not compiled with -DYP, grscan() should ignore entries that begin with a '+'. When compiled _with_ -DYP, grscan() should ignore +groupname entries that don't refer to real NIS groups. - Remove redundant redeclaration of fgets(), strsep() and index() inside grscan(). We already #include all the right header files for these. Note: -groupname exclusion as specified in the Sun documentation still isn't supported. This'll be a 2.2 addition. Right now I just want this stuff to work. From owner-cvs-lib Fri Oct 6 14:33:54 1995 Return-Path: owner-cvs-lib Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id OAA17337 for cvs-lib-outgoing; Fri, 6 Oct 1995 14:33:54 -0700 Received: from aslan.cdrom.com (aslan.cdrom.com [192.216.223.142]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id OAA17321 ; Fri, 6 Oct 1995 14:33:42 -0700 Received: from localhost.cdrom.com (localhost.cdrom.com [127.0.0.1]) by aslan.cdrom.com (8.6.12/8.6.9) with SMTP id OAA21340; Fri, 6 Oct 1995 14:33:17 -0700 Message-Id: <199510062133.OAA21340@aslan.cdrom.com> X-Authentication-Warning: aslan.cdrom.com: Host localhost.cdrom.com didn't use HELO protocol To: Bill Paul cc: CVS-commiters@freefall.freebsd.org, cvs-lib@freefall.freebsd.org Subject: Re: cvs commit: src/lib/libc/gen getgrent.c In-reply-to: Your message of "Fri, 06 Oct 1995 14:29:06 PDT." <199510062129.OAA17080@freefall.freebsd.org> Date: Fri, 06 Oct 1995 14:33:16 -0700 From: "Justin T. Gibbs" Sender: owner-cvs-lib@FreeBSD.org Precedence: bulk >wpaul 95/10/06 14:29:04 > > Modified: lib/libc/gen getgrent.c > Log: > Some NIS bug stomping: > > - When not compiled with -DYP, grscan() should ignore entries that > begin with a '+'. When compiled _with_ -DYP, grscan() should ignore > +groupname entries that don't refer to real NIS groups. We used to allow local groups to be used if there wasn't an NIS group by the same name. Is this still the case? -- Justin T. Gibbs =========================================== Software Developer - Walnut Creek CDROM FreeBSD: Turning PCs into workstations =========================================== From owner-cvs-lib Fri Oct 6 14:42:48 1995 Return-Path: owner-cvs-lib Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id OAA18167 for cvs-lib-outgoing; Fri, 6 Oct 1995 14:42:48 -0700 Received: (from wpaul@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id OAA18141 ; Fri, 6 Oct 1995 14:42:33 -0700 From: Bill Paul Message-Id: <199510062142.OAA18141@freefall.freebsd.org> Subject: Re: cvs commit: src/lib/libc/gen getgrent.c To: gibbs@freefall.FreeBSD.org (Justin T. Gibbs) Date: Fri, 6 Oct 1995 14:42:31 -0700 (PDT) Cc: CVS-commiters@freefall.FreeBSD.org, cvs-lib@freefall.FreeBSD.org In-Reply-To: <199510062133.OAA21340@aslan.cdrom.com> from "Justin T. Gibbs" at Oct 6, 95 02:33:16 pm X-Mailer: ELM [version 2.4 PL24] Content-Type: text Content-Length: 571 Sender: owner-cvs-lib@FreeBSD.org Precedence: bulk > > >wpaul 95/10/06 14:29:04 > > > > Modified: lib/libc/gen getgrent.c > > Log: > > Some NIS bug stomping: > > > > - When not compiled with -DYP, grscan() should ignore entries that > > begin with a '+'. When compiled _with_ -DYP, grscan() should ignore > > +groupname entries that don't refer to real NIS groups. > > We used to allow local groups to be used if there wasn't an NIS group > by the same name. Is this still the case? > > -- > Justin T. Gibbs Yes, the support for that is still there: that's in getpwent.c, not getgrent.c. -Bill From owner-cvs-lib Fri Oct 6 20:41:08 1995 Return-Path: owner-cvs-lib Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id UAA07161 for cvs-lib-outgoing; Fri, 6 Oct 1995 20:41:08 -0700 Received: (from davidg@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id UAA07129 ; Fri, 6 Oct 1995 20:40:54 -0700 Date: Fri, 6 Oct 1995 20:40:54 -0700 From: David Greenman Message-Id: <199510070340.UAA07129@freefall.freebsd.org> To: CVS-commiters, cvs-lib Subject: cvs commit: src/lib/libc/gen getgrent.c Sender: owner-cvs-lib@FreeBSD.org Precedence: bulk davidg 95/10/06 20:40:54 Branch: lib/libc/gen RELENG_2_1_0 Modified: lib/libc/gen getgrent.c Log: Brought in changes from rev 1.10: various bugfixes.