From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16190 invoked by alias); 1 Oct 2012 18:29:55 -0000 Received: (qmail 16180 invoked by uid 22791); 1 Oct 2012 18:29:54 -0000 X-SWARE-Spam-Status: No, hits=-7.4 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,RCVD_IN_DNSWL_HI,RCVD_IN_HOSTKARMA_W,RP_MATCHES_RCVD,SPF_HELO_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 01 Oct 2012 18:29:46 +0000 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q91ITiAa018360 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 1 Oct 2012 14:29:44 -0400 Received: from host2.jankratochvil.net (ovpn-116-34.ams2.redhat.com [10.36.116.34]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id q91ITd2m032247 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Mon, 1 Oct 2012 14:29:42 -0400 Date: Mon, 01 Oct 2012 18:29:00 -0000 From: Jan Kratochvil To: Joel Brobecker Cc: Eli Zaretskii , gdb@sourceware.org, siddhesh@redhat.com Subject: Re: Old OSes compatibility [Re: 64-bit (>4GB) inferior data types rules; TYPE_LENGTH: unsigned -> ULONGEST] Message-ID: <20121001182939.GA5023@host2.jankratochvil.net> References: <20120928173229.GA10406@host2.jankratochvil.net> <20120930165630.GA30746@adacore.com> <20121001164833.GA20592@host2.jankratochvil.net> <83d312ayjy.fsf@gnu.org> <20121001175455.GA3955@host2.jankratochvil.net> <20121001175736.GH30746@adacore.com> <20121001180756.GA4573@host2.jankratochvil.net> <20121001181338.GI30746@adacore.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20121001181338.GI30746@adacore.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2012-10/txt/msg00013.txt.bz2 On Mon, 01 Oct 2012 20:13:38 +0200, Joel Brobecker wrote: > > That's true gnulib does not check for %z. But whole .microsoft.com does not > > mention vasprintf so I believe it would get substituted by gnulib there. > > Microsoft is only one example of such systems, however. We cannot use > this example to say that the %z check is unnecessary for all systems. vasprintf is a GNU extension. glibc implemented vasprintf approx. on: 96aa2d94a2355cdc55c96e808d14a0e7f2ebe77d Date: Mon Nov 20 03:48:11 1995 +0000 while %z glibc implemented approx. on: e852e889444a8bf27f3e5075d064e9922b38e7e2 Date: Tue Jul 28 16:26:04 1998 +0000 I do not say there cannot exist an OS with vasprintf not supporting %z but it seems improbable enough to me to handle it specially before such OS is found. As mentioned in the original mail it can be still easily fixed up after a first user of such OS bugreports it. Thanks, Jan