1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-08-01 10:06:57 +03:00

* sysdeps/unix/sysv/linux/m68k/getpagesize.c: Check _dl_pagesize

first.  Default to 4096, not EXEC_PAGESIZE.
This commit is contained in:
Andreas Schwab
2001-07-15 15:25:23 +00:00
parent 09e57bdf01
commit b20895bd7f
2 changed files with 9 additions and 1 deletions

View File

@ -1,5 +1,8 @@
2001-07-15 Andreas Schwab <schwab@suse.de> 2001-07-15 Andreas Schwab <schwab@suse.de>
* sysdeps/unix/sysv/linux/m68k/getpagesize.c: Check _dl_pagesize
first. Default to 4096, not EXEC_PAGESIZE.
* iconv/loop.c (put16) [!_STRING_ARCH_unaligned && BIG_ENDIAN]: * iconv/loop.c (put16) [!_STRING_ARCH_unaligned && BIG_ENDIAN]:
Fix index. Fix index.

View File

@ -28,8 +28,13 @@
int int
__getpagesize () __getpagesize ()
{ {
extern size_t _dl_pagesize;
#ifdef __NR_getpagesize #ifdef __NR_getpagesize
int result; int result;
#endif
if (_dl_pagesize != 0)
return _dl_pagesize;
result = INLINE_SYSCALL (getpagesize, 0); result = INLINE_SYSCALL (getpagesize, 0);
/* The only possible error is ENOSYS. */ /* The only possible error is ENOSYS. */
@ -37,7 +42,7 @@ __getpagesize ()
return result; return result;
#endif #endif
return EXEC_PAGESIZE; return 4096;
} }
weak_alias (__getpagesize, getpagesize) weak_alias (__getpagesize, getpagesize)