H.J. Lu
unread,Jun 27, 2012, 2:29:16 PM6/27/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Magnus Fromreide, x32...@googlegroups.com, dis...@x86-64.org, GCC Development, Binutils, GNU C Library, GDB
On Wed, Jun 27, 2012 at 11:24 AM, Magnus Fromreide <
ma...@lysator.liu.se> wrote:
> I think that means you fails to conform to posix unless
> __syscall_slong_t is an alias for long.
That is true.
> If I understand the posix spec correctly then, in a conforming
> implementation,
>
> struct timespec ts;
> if (sizeof(long) != sizeof(ts.tv_nsec))
> abort();
>
> never calls abort.
It will abort on x32.
> For your purpose it would have been much better if tv_nsec had been
> specified with a type with allowed values, similarly to how suseconds_t
> that is used for timeval.tv_usec is specified.
>
> I suppose this is something to bring up for posix-next.
>
Yes, that is the intention.
--
H.J.