From owner-freebsd-standards@FreeBSD.ORG Mon Feb 20 11:02:54 2006 Return-Path: X-Original-To: freebsd-standards@freebsd.org Delivered-To: freebsd-standards@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8940B16A420 for ; Mon, 20 Feb 2006 11:02:54 +0000 (GMT) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id EBABE43D46 for ; Mon, 20 Feb 2006 11:02:53 +0000 (GMT) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (peter@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k1KB2rG9083745 for ; Mon, 20 Feb 2006 11:02:53 GMT (envelope-from owner-bugmaster@freebsd.org) Received: (from peter@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k1KB2qZ1083738 for freebsd-standards@freebsd.org; Mon, 20 Feb 2006 11:02:52 GMT (envelope-from owner-bugmaster@freebsd.org) Date: Mon, 20 Feb 2006 11:02:52 GMT Message-Id: <200602201102.k1KB2qZ1083738@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: peter set sender to owner-bugmaster@freebsd.org using -f From: FreeBSD bugmaster To: freebsd-standards@FreeBSD.org Cc: Subject: Current problem reports assigned to you X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Feb 2006 11:02:55 -0000 Current FreeBSD problem reports Critical problems Serious problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2001/03/05] bin/25542 standards /bin/sh: null char in quoted string o [2002/12/13] kern/46239 standards posix semaphore implementation errors o [2003/07/12] standards/54410standards one-true-awk not POSIX compliant (no exte o [2005/06/25] standards/82654standards C99 long double math functions are missin 4 problems total. Non-critical problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2000/09/24] bin/21519 standards sys/dir.h should be deprecated some more o [2001/01/16] bin/24390 standards Replacing old dir-symlinks when using /bi s [2001/01/24] standards/24590standards timezone function not compatible witn Sin s [2001/06/18] kern/28260 standards UIO_MAXIOV needs to be made public s [2002/03/19] standards/36076standards Implementation of POSIX fuser command s [2002/05/07] standards/37843standards manual for pthread_setschedparam(3) is wr o [2002/06/14] standards/39256standards snprintf/vsnprintf aren't POSIX-conforman p [2002/08/12] standards/41576standards POSIX compliance of ln(1) o [2002/10/23] standards/44425standards getcwd() succeeds even if current dir has o [2002/12/09] standards/46119standards Priority problems for SCHED_OTHER using p o [2003/07/25] standards/54833standards [pcvt] more pcvt deficits o [2003/07/25] standards/54839standards [pcvt] pcvt deficits o [2003/07/31] standards/55112standards glob.h, glob_t's gl_pathc should be "size o [2003/09/05] standards/56476standards cd9660 unicode support simple hack o [2003/10/29] standards/58676standards grantpt(3) alters storage used by ptsname s [2004/02/14] standards/62858standards malloc(0) not C99 compliant s [2004/03/29] kern/64875 standards [libc] [patch] [feature request] add a sy o [2004/05/07] standards/66357standards make POSIX conformance problem ('sh -e' & o [2004/05/11] standards/66531standards _gettemp uses a far smaller set of filena o [2004/08/22] standards/70813standards [PATCH] ls(1) not Posix compliant o [2004/09/22] standards/72006standards floating point formating in non-C locales o [2005/03/20] standards/79055standards Add an IFS regression test for shells o [2005/03/20] standards/79056standards regex(3) regression tests o [2005/03/21] standards/79067standards /bin/sh should be more intelligent about a [2005/04/23] standards/80293standards sysconf() does not support well-defined u o [2005/05/20] standards/81287standards [PATCH]: fingerd(8) might send a line not o [2005/07/21] standards/83845standards [libm] [patch] add log2() and log2f() sup o [2005/08/18] standards/85080standards output of long double subnormals (with pr o [2005/12/24] standards/90871standards ACPI Not Work o [2006/01/26] standards/92360standards [headers] [patch] Missing TAB3 in kernel o [2006/01/26] standards/92362standards [headers] [patch] Missing SIGPOLL in kern 31 problems total. From owner-freebsd-standards@FreeBSD.ORG Tue Feb 21 18:49:49 2006 Return-Path: X-Original-To: freebsd-standards@FreeBSD.org Delivered-To: freebsd-standards@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 79E3F16A420 for ; Tue, 21 Feb 2006 18:49:49 +0000 (GMT) (envelope-from pfgshield-freebsd@yahoo.com) Received: from web32906.mail.mud.yahoo.com (web32906.mail.mud.yahoo.com [68.142.206.53]) by mx1.FreeBSD.org (Postfix) with SMTP id 18FE843D49 for ; Tue, 21 Feb 2006 18:49:48 +0000 (GMT) (envelope-from pfgshield-freebsd@yahoo.com) Received: (qmail 9556 invoked by uid 60001); 21 Feb 2006 18:49:48 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type; b=PW+RNCz93bUES1vEe6pkUctcPW84sLWOXiTYFufXURzTbZyeppR7/Dxqlr9t3xW2UgdUdFfo5dv/Fk09Kn6WJfH4box6GN464rJCaqTMw36j3cFqK5yoC9TfblPNCgXX+hw3zRh8pDzVZ/orPrUeuslwXSECBjIVn8yFhiz5xPU= ; Message-ID: <20060221184948.9554.qmail@web32906.mail.mud.yahoo.com> Received: from [200.118.70.201] by web32906.mail.mud.yahoo.com via HTTP; Tue, 21 Feb 2006 19:49:48 CET Date: Tue, 21 Feb 2006 19:49:48 +0100 (CET) From: To: freebsd-standards@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Cc: Subject: malloc.h is still legitimate after all X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pfgshield-freebsd@yahoo.com List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Feb 2006 18:49:49 -0000 Hi; I was porting some parts of COIN-OR (some Operations Research packages opensourced by IBM a while ago), and when I was happily suggesting that all occurences of malloc.h should be removed and/or replaced with stdlib.h I got this reply: ______________ Pedro, The mallinfo struct that ReportMemory uses is defined in malloc.h, and not brought in by stdlib.h. I'm testing on AIXv5.1, __STDC__ is defined, and "struct mallinfo" is unknown if I don't include malloc.h. I don't know enough about the different flavors of UNIX (System V, POSIX, BSD?) to know what to do that satisfies all. The AIX docs say "The mallopt and mallinfo subroutines are provided for source-level compatibility with the System V malloc subroutine " The gnu gcc docs say "This function and its associated data type are declared in `malloc.h'; they are an extension of the standard SVID/XPG version." ... ___________ So malloc.h will no be removed from the package but rather it will be undef'd __FreeBSD__ and the package will still work on FreeBSD. I doubt we will ever add these extensions, but there's also a glibc port for FreeBSD now so maybe __FreeBSD__ is not the correct variable here. I personally think the FreeBSD port's people have contributed greatly to clean inappropiate uses of malloc.h in the software world, but perhaps an error is too drastic and we should fall back to a warning. cheers, Pedro. --- Pedro F. Giffuni M. Sc. Industrial Eng. University of Pittsburgh Mech. Eng. Universidad Nacional de Colombia --- Yahoo is powered by FreeBSD http://www.FreeBSD.org/ ___________________________________ Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB http://mail.yahoo.it From owner-freebsd-standards@FreeBSD.ORG Tue Feb 21 19:12:33 2006 Return-Path: X-Original-To: freebsd-standards@freebsd.org Delivered-To: freebsd-standards@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1D1C316A420 for ; Tue, 21 Feb 2006 19:12:33 +0000 (GMT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id B388A43D45 for ; Tue, 21 Feb 2006 19:12:32 +0000 (GMT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (localhost.localdomain [127.0.0.1]) by odin.ac.hmc.edu (8.13.0/8.13.0) with ESMTP id k1LJCWhB007926; Tue, 21 Feb 2006 11:12:32 -0800 Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.13.0/8.13.0/Submit) id k1LJCWxG007925; Tue, 21 Feb 2006 11:12:32 -0800 Date: Tue, 21 Feb 2006 11:12:32 -0800 From: Brooks Davis To: pfgshield-freebsd@yahoo.com Message-ID: <20060221191232.GC31112@odin.ac.hmc.edu> References: <20060221184948.9554.qmail@web32906.mail.mud.yahoo.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="KDt/GgjP6HVcx58l" Content-Disposition: inline In-Reply-To: <20060221184948.9554.qmail@web32906.mail.mud.yahoo.com> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new X-Spam-Status: No, hits=0.0 required=8.0 tests=none autolearn=no version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on odin.ac.hmc.edu Cc: freebsd-standards@freebsd.org Subject: Re: malloc.h is still legitimate after all X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Feb 2006 19:12:33 -0000 --KDt/GgjP6HVcx58l Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Feb 21, 2006 at 07:49:48PM +0100, pfgshield-freebsd@yahoo.com wrote: > Hi; > I was porting some parts of COIN-OR (some Operations Research packages > opensourced by IBM a while ago), and when I was happily suggesting that a= ll > occurences of malloc.h should be removed and/or replaced with stdlib.h I = got > this reply: The author is wrong. He's unconditionally including a non-standard header file in order to obtain a non-standard structure. Specificaly, there is no mallinfo structure on FreeBSD so he can apply what ever conditional he uses around that code around the include of malloc.h. You can verify the lock of mallinfo struct with this command: find /usr/include -type f | xargs grep mallinfo -- Brooks > ______________ > Pedro,=20 >=20 > The mallinfo struct that ReportMemory uses is defined in malloc.h, and not > brought in by stdlib.h.=20 >=20 > I'm testing on AIXv5.1, __STDC__ is defined, and "struct mallinfo" is unk= nown > if I don't include malloc.h.=20 >=20 > I don't know enough about the different flavors of UNIX (System V, POSIX,= BSD?) > to know what to do that satisfies all.=20 >=20 > The AIX docs say=20 >=20 > "The mallopt and mallinfo subroutines are provided for source-level > compatibility with the System V malloc subroutine "=20 >=20 > The gnu gcc docs say=20 >=20 > "This function and its associated data type are declared in `malloc.h'; t= hey > are an extension of the standard SVID/XPG version."=20 > ... > ___________ >=20 > So malloc.h will no be removed from the package but rather it will be und= ef'd > __FreeBSD__ and the package will still work on FreeBSD. I doubt we will e= ver > add these extensions, but there's also a glibc port for FreeBSD now so ma= ybe > __FreeBSD__ is not the correct variable here. >=20 > I personally think the FreeBSD port's people have contributed greatly to = clean > inappropiate uses of malloc.h in the software world, but perhaps an error= is > too drastic and we should fall back to a warning. >=20 > cheers, >=20 > Pedro. >=20 >=20 > --- > Pedro F. Giffuni > M. Sc. Industrial Eng. University of Pittsburgh > Mech. Eng. Universidad Nacional de Colombia > --- > Yahoo is powered by FreeBSD http://www.FreeBSD.org/ >=20 >=20 > =09 >=20 > =09 > =09 > ___________________________________=20 > Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB=20 > http://mail.yahoo.it > _______________________________________________ > freebsd-standards@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-standards > To unsubscribe, send any mail to "freebsd-standards-unsubscribe@freebsd.o= rg" --=20 Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 --KDt/GgjP6HVcx58l Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFD+2YfXY6L6fI4GtQRAmZpAJ4k9I1diaqOJ2+TiidtlypqZEXvaACgwELA jj5unmTrARfPurNlcvY9wr8= =GqIM -----END PGP SIGNATURE----- --KDt/GgjP6HVcx58l--