mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-07 06:43:00 +03: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:
@@ -28,19 +28,15 @@
|
|||||||
int
|
int
|
||||||
__getpagesize (void)
|
__getpagesize (void)
|
||||||
{
|
{
|
||||||
#ifdef __NR_getpagesize
|
|
||||||
int result;
|
int result;
|
||||||
#endif
|
|
||||||
|
|
||||||
if (GLRO(dl_pagesize) != 0)
|
if (GLRO(dl_pagesize) != 0)
|
||||||
return GLRO(dl_pagesize);
|
return GLRO(dl_pagesize);
|
||||||
|
|
||||||
#ifdef __NR_getpagesize
|
|
||||||
result = INTERNAL_SYSCALL_CALL (getpagesize);
|
result = INTERNAL_SYSCALL_CALL (getpagesize);
|
||||||
/* The only possible error is ENOSYS. */
|
/* The only possible error is ENOSYS. */
|
||||||
if (!INTERNAL_SYSCALL_ERROR_P (result))
|
if (!INTERNAL_SYSCALL_ERROR_P (result))
|
||||||
return result;
|
return result;
|
||||||
#endif
|
|
||||||
|
|
||||||
return 4096;
|
return 4096;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user