Re: [patch 1/9]#2 Rename `enum target_signal' to target_signal_t

Mark Kettenis
2010-08-30T11:11:30Z

> From: Eli Zaretskii <eliz@gnu.org>
> Date: Mon, 30 Aug 2010 06:08:50 -0400
>
> > Date: Mon, 30 Aug 2010 10:24:07 +0200
> > From: Jan Kratochvil <jan.kratochvil@redhat.com>
> > Cc: gdb-patches@sourceware.org
> >
> > On Mon, 30 Aug 2010 10:14:12 +0200, Mark Kettenis wrote:
> > > The _t suffix is actually reserved by POSIX, so using it is actually a
> > > bad idea. Perhaps change it to gdb_target_signal, or just
> > > target_signal (making it a typedef for an anonymous enum)?
> >
> > I see too many types in GDB and everywhere ending with _t (ptid_t for all).
>
> Right, and I didn't know it was reserved. Mark, could you please
> point to the Posix document (hopefully, freely accessible) which says
> that? TIA

http://www.opengroup.org/onlinepubs/009695399/functions/xsh_chap02_02.html

The _t suffix is listed on the last row of the first table on that page.

Cheers,

Mark