about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/ia64
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2001-01-08 22:30:44 +0000
committerUlrich Drepper <drepper@redhat.com>2001-01-08 22:30:44 +0000
commitf93e323f9e627ae8403ad2fc64663793153bf7ec (patch)
tree7d216ded8fb1ac4dba81b469444f69409b6c5f57 /sysdeps/unix/sysv/linux/ia64
parent0b795736c823a672f840b63920b098f3a7290451 (diff)
downloadglibc-f93e323f9e627ae8403ad2fc64663793153bf7ec.tar.gz
glibc-f93e323f9e627ae8403ad2fc64663793153bf7ec.tar.xz
glibc-f93e323f9e627ae8403ad2fc64663793153bf7ec.zip
Update.
	* sysdeps/unix/sysv/linux/ia64/getpagesize.c (__getpagesize):
	Remove getpagesize syscall.  We assume that the pagesize is always
	determined from the auxiliary vector.
Diffstat (limited to 'sysdeps/unix/sysv/linux/ia64')
-rw-r--r--sysdeps/unix/sysv/linux/ia64/getpagesize.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/sysdeps/unix/sysv/linux/ia64/getpagesize.c b/sysdeps/unix/sysv/linux/ia64/getpagesize.c
index 4a5c2ebe43..112f7e1b83 100644
--- a/sysdeps/unix/sysv/linux/ia64/getpagesize.c
+++ b/sysdeps/unix/sysv/linux/ia64/getpagesize.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1999, 2000 Free Software Foundation, Inc.
+/* Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -16,6 +16,7 @@
    write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    Boston, MA 02111-1307, USA.  */
 
+#include <assert.h>
 #include <unistd.h>
 #include <sys/param.h>
 
@@ -27,19 +28,12 @@
    determine the page size to ensure proper alignment for calls such
    as mmap and friends.  --davidm 99/11/30 */
 
-/* If we are not a static program, this value is collected from the system
-   via the AT_PAGESZ auxiliary argument.  If we are a static program, we
-   use the getpagesize system call.  */
-
 extern size_t _dl_pagesize;
 
-extern size_t __syscall_getpagesize (void);
-
 int
 __getpagesize ()
 {
-  if (_dl_pagesize == 0)
-    _dl_pagesize = INLINE_SYSCALL (getpagesize, 0);
+  assert (_dl_pagesize != 0);
   return _dl_pagesize;
 }