瀏覽代碼

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.
Rich Felker 7 年之前
父節點
當前提交
c9c2cd3e69
共有 7 個文件被更改,包括 8 次插入8 次删除
  1. 1 1
      arch/i386/bits/limits.h
  2. 1 1
      arch/or1k/bits/limits.h
  3. 1 1
      arch/s390x/bits/limits.h
  4. 1 1
      arch/sh/bits/limits.h
  5. 1 1
      arch/x32/bits/limits.h
  6. 1 1
      arch/x86_64/bits/limits.h
  7. 2 2
      include/limits.h

+ 1 - 1
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
 

+ 1 - 1
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
 

+ 1 - 1
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
 

+ 1 - 1
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
 

+ 1 - 1
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
 

+ 1 - 1
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
 

+ 2 - 2
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