* sysdeps/unix/sysv/linux/ia64/getpagesize.c (__getpagesize):
	Remove getpagesize syscall.  We assume that the pagesize is always
	determined from the auxiliary vector.
This commit is contained in:
Ulrich Drepper 2001-01-08 22:30:44 +00:00
parent 0b795736c8
commit f93e323f9e
2 changed files with 7 additions and 9 deletions

View File

@ -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>.

View File

@ -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;
}