Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Jan Kratochvil <jan.kratochvil@redhat.com>
To: Joel Brobecker <brobecker@adacore.com>
Cc: Eli Zaretskii <eliz@gnu.org>, gdb@sourceware.org, siddhesh@redhat.com
Subject: Re: Old OSes compatibility  [Re: 64-bit (>4GB) inferior data types rules; TYPE_LENGTH: unsigned -> ULONGEST]
Date: Mon, 01 Oct 2012 18:29:00 -0000	[thread overview]
Message-ID: <20121001182939.GA5023@host2.jankratochvil.net> (raw)
In-Reply-To: <20121001181338.GI30746@adacore.com>

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


      reply	other threads:[~2012-10-01 18:29 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-28 17:32 64-bit (>4GB) inferior data types rules; TYPE_LENGTH: unsigned -> ULONGEST Jan Kratochvil
2012-09-28 20:23 ` Sergio Durigan Junior
2012-09-29  6:08   ` Jan Kratochvil
2012-09-29 16:58 ` Jan Kratochvil
2012-09-30 16:56 ` Joel Brobecker
2012-10-01 16:48   ` Old OSes compatibility [Re: 64-bit (>4GB) inferior data types rules; TYPE_LENGTH: unsigned -> ULONGEST] Jan Kratochvil
2012-10-01 17:18     ` Pedro Alves
2012-10-01 17:38       ` Eli Zaretskii
2012-10-01 18:01         ` Pedro Alves
2012-10-01 19:14           ` Eli Zaretskii
2012-10-01 17:32     ` Eli Zaretskii
2012-10-01 17:55       ` Jan Kratochvil
2012-10-01 17:57         ` Joel Brobecker
2012-10-01 18:08           ` Jan Kratochvil
2012-10-01 18:13             ` Joel Brobecker
2012-10-01 18:29               ` Jan Kratochvil [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20121001182939.GA5023@host2.jankratochvil.net \
    --to=jan.kratochvil@redhat.com \
    --cc=brobecker@adacore.com \
    --cc=eliz@gnu.org \
    --cc=gdb@sourceware.org \
    --cc=siddhesh@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox