From: Jim Blandy <jimb@codesourcery.com>
To: Jan Kratochvil <jan.kratochvil@redhat.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [patch] Fix compilation on the recent glibc CVS snapshot
Date: Wed, 08 Aug 2007 22:04:00 -0000 [thread overview]
Message-ID: <m3ps1xu1hz.fsf@codesourcery.com> (raw)
In-Reply-To: <20070808205502.GA3058@host0.dyn.jankratochvil.net> (Jan Kratochvil's message of "Wed, 8 Aug 2007 22:55:02 +0200")
Jan Kratochvil <jan.kratochvil@redhat.com> writes:
> 2007-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
>
> * serial.c (serial_open): Fix OPEN parameter macro expansion.
>
POSIX System Interfaces section 2.1 says, "Any function declared in a
header may also be implemented as a macro defined in the header." I
gather this means that GLIBC is within its rights to make that change
to 'open'. I've learned something new today.
So, this change is approved.
> --- gdb/serial.c 8 Apr 2007 15:20:07 -0000 1.29
> +++ gdb/serial.c 8 Aug 2007 20:32:10 -0000
> @@ -213,7 +213,8 @@ serial_open (const char *name)
> scb->bufp = scb->buf;
> scb->error_fd = -1;
>
> - if (scb->ops->open (scb, open_name))
> + /* `...->open (...)' would get expanded by an the open(2) syscall macro. */
> + if ((*scb->ops->open) (scb, open_name))
> {
> xfree (scb);
> return NULL;
next prev parent reply other threads:[~2007-08-08 22:04 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-08 20:55 Jan Kratochvil
2007-08-08 22:04 ` Jim Blandy [this message]
2007-08-08 22:15 ` Jan Kratochvil
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=m3ps1xu1hz.fsf@codesourcery.com \
--to=jimb@codesourcery.com \
--cc=gdb-patches@sourceware.org \
--cc=jan.kratochvil@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