diff options
author | Ulrich Drepper <drepper@redhat.com> | 2001-01-08 22:30:44 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2001-01-08 22:30:44 +0000 |
commit | f93e323f9e627ae8403ad2fc64663793153bf7ec (patch) | |
tree | 7d216ded8fb1ac4dba81b469444f69409b6c5f57 | |
parent | 0b795736c823a672f840b63920b098f3a7290451 (diff) | |
download | glibc-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.
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | sysdeps/unix/sysv/linux/ia64/getpagesize.c | 12 |
2 files changed, 7 insertions, 9 deletions
diff --git a/ChangeLog b/ChangeLog index 61a384fad0..8b52653e2a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2001-01-08 Ulrich Drepper <drepper@redhat.com> + * sysdeps/unix/sysv/linux/ia64/getpagesize.c (__getpagesize): + Remove getpagesize syscall. We assume that the pagesize is always + determined from the auxiliary vector. + * intl/dcigettext.c: Fix a few warnings. Patch by Bruno Haible <haible@ilog.fr>. 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; } |