From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/12236 Path: news.gmane.org!.POSTED!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: x32 shouldn't provide LP64 macros Date: Thu, 14 Dec 2017 21:24:18 -0500 Message-ID: <20171215022418.GE1627@brightrain.aerifal.cx> References: Reply-To: musl@lists.openwall.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: blaine.gmane.org 1513304672 20270 195.159.176.226 (15 Dec 2017 02:24:32 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 15 Dec 2017 02:24:32 +0000 (UTC) User-Agent: Mutt/1.5.21 (2010-09-15) To: musl@lists.openwall.com Original-X-From: musl-return-12252-gllmg-musl=m.gmane.org@lists.openwall.com Fri Dec 15 03:24:28 2017 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by blaine.gmane.org with smtp (Exim 4.84_2) (envelope-from ) id 1ePffn-00055t-B3 for gllmg-musl@m.gmane.org; Fri, 15 Dec 2017 03:24:27 +0100 Original-Received: (qmail 5986 invoked by uid 550); 15 Dec 2017 02:24:31 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 5968 invoked from network); 15 Dec 2017 02:24:31 -0000 Content-Disposition: inline In-Reply-To: Original-Sender: Rich Felker Xref: news.gmane.org gmane.linux.lib.musl.general:12236 Archived-At: On Tue, Dec 12, 2017 at 10:27:23AM +0000, Nicholas Wilson wrote: > Hi, > > While working on the WebAssembly port, we noticed the following in > arch/x32/bits/posix.h. It looks like the _POSIX_V{6,7}_LP64_OFF64 > macros are defined, but surely x32 is an ILP32 architecture? > > diff --git a/arch/x32/bits/posix.h b/arch/x32/bits/posix.h > index c37b94c1..30a38714 100644 > --- a/arch/x32/bits/posix.h > +++ b/arch/x32/bits/posix.h > @@ -1,2 +1,2 @@ > -#define _POSIX_V6_LP64_OFF64 1 > -#define _POSIX_V7_LP64_OFF64 1 > +#define _POSIX_V6_ILP32_OFFBIG 1 > +#define _POSIX_V7_ILP32_OFFBIG 1 Thanks, applying. Rich