mailing list of musl libc
 help / color / mirror / code / Atom feed
* x32 shouldn't provide LP64 macros
@ 2017-12-12 10:27 Nicholas Wilson
  2017-12-15  2:24 ` Rich Felker
  0 siblings, 1 reply; 2+ messages in thread
From: Nicholas Wilson @ 2017-12-12 10:27 UTC (permalink / raw)
  To: musl

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

Best,
Nick

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: x32 shouldn't provide LP64 macros
  2017-12-12 10:27 x32 shouldn't provide LP64 macros Nicholas Wilson
@ 2017-12-15  2:24 ` Rich Felker
  0 siblings, 0 replies; 2+ messages in thread
From: Rich Felker @ 2017-12-15  2:24 UTC (permalink / raw)
  To: musl

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-12-15  2:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-12-12 10:27 x32 shouldn't provide LP64 macros Nicholas Wilson
2017-12-15  2:24 ` Rich Felker

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).