public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc] m68k: getpagesize syscall number is always available
@ 2020-03-03 13:28 Florian Weimer
  0 siblings, 0 replies; only message in thread
From: Florian Weimer @ 2020-03-03 13:28 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=bf956afeaaf2f466111e72d988e2dc41ef83be9a

commit bf956afeaaf2f466111e72d988e2dc41ef83be9a
Author: Florian Weimer <fweimer@redhat.com>
Date:   Sun Feb 9 17:02:48 2020 +0100

    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>

Diff:
---
 sysdeps/unix/sysv/linux/m68k/getpagesize.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/sysdeps/unix/sysv/linux/m68k/getpagesize.c b/sysdeps/unix/sysv/linux/m68k/getpagesize.c
index b57a03f..99c8331 100644
--- a/sysdeps/unix/sysv/linux/m68k/getpagesize.c
+++ b/sysdeps/unix/sysv/linux/m68k/getpagesize.c
@@ -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;
 }


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-03-03 13:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-03 13:28 [glibc] m68k: getpagesize syscall number is always available Florian Weimer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).