mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-23 17:53:37 +08:00
m68k: getpagesize syscall number is always available
Due to the built-in tables, __NR_getpagesize is always defined. Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
This commit is contained in:
parent
e76d4fb014
commit
bf956afeaa
@ -28,19 +28,15 @@
|
||||
int
|
||||
__getpagesize (void)
|
||||
{
|
||||
#ifdef __NR_getpagesize
|
||||
int result;
|
||||
#endif
|
||||
|
||||
if (GLRO(dl_pagesize) != 0)
|
||||
return GLRO(dl_pagesize);
|
||||
|
||||
#ifdef __NR_getpagesize
|
||||
result = INTERNAL_SYSCALL_CALL (getpagesize);
|
||||
/* The only possible error is ENOSYS. */
|
||||
if (!INTERNAL_SYSCALL_ERROR_P (result))
|
||||
return result;
|
||||
#endif
|
||||
|
||||
return 4096;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user