From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755450Ab2CPSyY (ORCPT ); Fri, 16 Mar 2012 14:54:24 -0400 Received: from smtp.cs.ucla.edu ([131.179.128.62]:45429 "EHLO smtp.cs.ucla.edu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755268Ab2CPSyV (ORCPT ); Fri, 16 Mar 2012 14:54:21 -0400 Message-ID: <4F638C5C.6080507@cs.ucla.edu> Date: Fri, 16 Mar 2012 11:54:20 -0700 From: Paul Eggert Organization: UCLA Computer Science Department User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.1) Gecko/20120209 Thunderbird/10.0.1 MIME-Version: 1.0 To: "H.J. Lu" CC: LKML , "H. Peter Anvin" , GNU C Library Subject: Re: PATCH [3/n]: Add __snseconds_t and __SNSECONDS_T_TYPE References: <20120315192515.GA6585@intel.com> <20120315195000.7E3BE2C0A3@topped-with-meat.com> <4F625570.7050003@cs.ucla.edu> <4F6267B1.3090805@cs.ucla.edu> <4F62F152.1040909@cs.ucla.edu> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 03/16/2012 08:49 AM, H.J. Lu wrote: > I'd prefer to change POSIX. This isn't the only place where x32 isn't > 100% compatible with POSIX. If this approach is taken, the compatibility issues with tv_nsec, blksize_t, and suseconds_t should be documented in the glibc manual, in areas where programmers using the interfaces are likely to find out about the problem. Could you propose a patch to do that? It should be possible to change POSIX at some point, once the POSIX folks decide that C90 compatibility is no longer an issue. If POSIX conformance is not a goal of x32, then this is not an urgent matter -- which is probably just as well, as I think they still worry about C90. In the meantime, I guess applications will just have to know not to take the address of a tv_nsec member. I just now added a note about this in the Gnulib portability manual, where it talks about glitches on systems that don't conform to POSIX: http://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=47834c92f8122f4ba5e6fca5199a4611425bfe69