File: local-aux-pagesz.diff

package info (click to toggle)
glibc 2.42-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 312,368 kB
  • sloc: ansic: 1,060,859; asm: 238,416; makefile: 20,960; python: 13,509; sh: 11,828; cpp: 5,188; awk: 1,794; perl: 317; yacc: 292; pascal: 182; sed: 19
file content (16 lines) | stat: -rw-r--r-- 456 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff --git a/misc/getauxval.c b/misc/getauxval.c
index a973956760..ccedaddeb5 100644
--- a/misc/getauxval.c
+++ b/misc/getauxval.c
@@ -37,6 +38,11 @@ __getauxval2 (unsigned long int type, unsigned long int *result)
       *result = GLRO(dl_hwcap2);
       return true;
     }
+  else if (type == AT_PAGESZ)
+    {
+      *result = __getpagesize ();
+      return true;
+    }
 
 #ifdef HAVE_AUX_VECTOR
   for (p = GLRO(dl_auxv); p->a_type != AT_NULL; p++)