]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
__readlink_chk: Assume HAVE_INLINED_SYSCALLS
authorFlorian Weimer <fweimer@redhat.com>
Mon, 20 Aug 2018 16:23:28 +0000 (18:23 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Mon, 20 Aug 2018 16:24:09 +0000 (18:24 +0200)
HAVE_INLINED_SYSCALLS is always defined on Linux.
Switch to INLINE_SYSCALL_CALL as well.

ChangeLog
sysdeps/unix/sysv/linux/generic/readlink_chk.c

index 789396211544c9f5599d172a2b61b2343237aebd..3807de147b9a716624d5b0493e32c2ef79146e45 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2018-08-20  Florian Weimer  <fweimer@redhat.com>
+
+       * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove
+       HAVE_INLINED_SYSCALLS conditionals.  Use INLINE_SYSCALL_CALL.
+
 2018-08-20  Joseph Myers  <joseph@codesourcery.com>
 
        * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
index 9240408a6b4dca4b4937ca95b6738aa1fca619ea..52d1f5b52292d3997b174cfd32528cd90214adbc 100644 (file)
 #include <unistd.h>
 #include <fcntl.h>
 #include <sys/param.h>
-#ifdef HAVE_INLINED_SYSCALLS
 # include <errno.h>
 # include <sysdep.h>
-#endif
 
 
 ssize_t
@@ -31,9 +29,5 @@ __readlink_chk (const char *path, void *buf, size_t len, size_t buflen)
   if (len > buflen)
     __chk_fail ();
 
-#ifdef HAVE_INLINED_SYSCALLS
-  return INLINE_SYSCALL (readlinkat, 4, AT_FDCWD, path, buf, len);
-#else
-  return __readlink (path, buf, len);
-#endif
+  return INLINE_SYSCALL_CALL (readlinkat, AT_FDCWD, path, buf, len);
 }