aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2018-03-10 17:47:14 -0500
committerRich Felker <dalias@aerifal.cx>2018-03-10 17:47:14 -0500
commitc9c2cd3e6955cb1d57b8be01d4b072bf44058762 (patch)
tree2e3db29bf8d6d5fd7f5aa23eb672808c4fecb831
parent0cf50581ec5f04feeaa77f2eb8b734a4b69ca8ed (diff)
downloadmusl-c9c2cd3e6955cb1d57b8be01d4b072bf44058762.zip
musl-c9c2cd3e6955cb1d57b8be01d4b072bf44058762.tar.gz
musl-c9c2cd3e6955cb1d57b8be01d4b072bf44058762.tar.bz2
reverse definition dependency between PAGESIZE and PAGE_SIZE
PAGESIZE is actually the version defined in POSIX base, with PAGE_SIZE being in the XSI option. use PAGESIZE as the underlying definition to facilitate making exposure of PAGE_SIZE conditional.
-rw-r--r--arch/i386/bits/limits.h2
-rw-r--r--arch/or1k/bits/limits.h2
-rw-r--r--arch/s390x/bits/limits.h2
-rw-r--r--arch/sh/bits/limits.h2
-rw-r--r--arch/x32/bits/limits.h2
-rw-r--r--arch/x86_64/bits/limits.h2
-rw-r--r--include/limits.h4
7 files changed, 8 insertions, 8 deletions
diff --git a/arch/i386/bits/limits.h b/arch/i386/bits/limits.h
index 65a3dd6..c340ceb 100644
--- a/arch/i386/bits/limits.h
+++ b/arch/i386/bits/limits.h
@@ -1,6 +1,6 @@
#if defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) \
|| defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
-#define PAGE_SIZE 4096
+#define PAGESIZE 4096
#define LONG_BIT 32
#endif
diff --git a/arch/or1k/bits/limits.h b/arch/or1k/bits/limits.h
index 483b674..3a811c9 100644
--- a/arch/or1k/bits/limits.h
+++ b/arch/or1k/bits/limits.h
@@ -1,6 +1,6 @@
#if defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) \
|| defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
-#define PAGE_SIZE 8192
+#define PAGESIZE 8192
#define LONG_BIT 32
#endif
diff --git a/arch/s390x/bits/limits.h b/arch/s390x/bits/limits.h
index 792a30b..86ef766 100644
--- a/arch/s390x/bits/limits.h
+++ b/arch/s390x/bits/limits.h
@@ -1,6 +1,6 @@
#if defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) \
|| defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
-#define PAGE_SIZE 4096
+#define PAGESIZE 4096
#define LONG_BIT 64
#endif
diff --git a/arch/sh/bits/limits.h b/arch/sh/bits/limits.h
index 65a3dd6..c340ceb 100644
--- a/arch/sh/bits/limits.h
+++ b/arch/sh/bits/limits.h
@@ -1,6 +1,6 @@
#if defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) \
|| defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
-#define PAGE_SIZE 4096
+#define PAGESIZE 4096
#define LONG_BIT 32
#endif
diff --git a/arch/x32/bits/limits.h b/arch/x32/bits/limits.h
index 65a3dd6..c340ceb 100644
--- a/arch/x32/bits/limits.h
+++ b/arch/x32/bits/limits.h
@@ -1,6 +1,6 @@
#if defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) \
|| defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
-#define PAGE_SIZE 4096
+#define PAGESIZE 4096
#define LONG_BIT 32
#endif
diff --git a/arch/x86_64/bits/limits.h b/arch/x86_64/bits/limits.h
index 792a30b..86ef766 100644
--- a/arch/x86_64/bits/limits.h
+++ b/arch/x86_64/bits/limits.h
@@ -1,6 +1,6 @@
#if defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) \
|| defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
-#define PAGE_SIZE 4096
+#define PAGESIZE 4096
#define LONG_BIT 64
#endif
diff --git a/include/limits.h b/include/limits.h
index f9805a1..3e47609 100644
--- a/include/limits.h
+++ b/include/limits.h
@@ -40,8 +40,8 @@
|| defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
#define PIPE_BUF 4096
-#ifdef PAGE_SIZE
-#define PAGESIZE PAGE_SIZE
+#ifdef PAGESIZE
+#define PAGE_SIZE PAGESIZE
#endif
#define FILESIZEBITS 64
#define NAME_MAX 255