This is the mail archive of the
glibc-cvs@sourceware.org
mailing list for the glibc project.
GNU C Library master sources branch master updated. glibc-2.24-359-g3e06601
- From: azanella at sourceware dot org
- To: glibc-cvs at sourceware dot org
- Date: 10 Nov 2016 19:28:56 -0000
- Subject: GNU C Library master sources branch master updated. glibc-2.24-359-g3e06601
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".
The branch, master has been updated
via 3e06601fedba07d837089daa5c71fe397d6c8389 (commit)
from 4589d0715cfa4556388d42f7afbf6aecf7e4aa08 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=3e06601fedba07d837089daa5c71fe397d6c8389
commit 3e06601fedba07d837089daa5c71fe397d6c8389
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Thu Nov 10 09:24:34 2016 -0200
Consolidate Linux access implementation
This patch consolidates the Linux access implementation on
sysdeps/unix/sysv/linux/access.c. Similar to auto-generation through
syscalls.list, __NR_access is check and __NR_faccessat is used only
for newer architectures (where __NR_access is not defined).
Checked on x86_64.
* sysdeps/unix/sysv/linux/access.c: New file.
* sysdeps/unix/sysv/linux/generic/access.c: Remove file.
diff --git a/ChangeLog b/ChangeLog
index 484fff8..4b93266 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2016-11-10 Adhemerval Zanella <adhemerval.zanella@linaro.org>
+
+ * sysdeps/unix/sysv/linux/access.c: New file.
+ * sysdeps/unix/sysv/linux/generic/access.c: Remove file.
+
2016-11-10 Steve Ellcey <sellcey@caviumnetworks.com>
* sysdeps/tile/tilepro/bits/wordsize.h: Define __WORDSIZE32_SIZE_ULONG
diff --git a/sysdeps/unix/sysv/linux/generic/access.c b/sysdeps/unix/sysv/linux/access.c
similarity index 77%
rename from sysdeps/unix/sysv/linux/generic/access.c
rename to sysdeps/unix/sysv/linux/access.c
index 586aa93..8f003df 100644
--- a/sysdeps/unix/sysv/linux/generic/access.c
+++ b/sysdeps/unix/sysv/linux/access.c
@@ -1,6 +1,6 @@
-/* Copyright (C) 2011-2016 Free Software Foundation, Inc.
+/* Linux implementation for access function.
+ Copyright (C) 2016 Free Software Foundation, Inc.
This file is part of the GNU C Library.
- Contributed by Chris Metcalf <cmetcalf@tilera.com>, 2011.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
@@ -16,16 +16,17 @@
License along with the GNU C Library. If not, see
<http://www.gnu.org/licenses/>. */
-#include <errno.h>
-#include <stddef.h>
-#include <unistd.h>
#include <fcntl.h>
+#include <unistd.h>
#include <sysdep-cancel.h>
-/* Test for access to FILE. */
int
__access (const char *file, int type)
{
- return INLINE_SYSCALL (faccessat, 3, AT_FDCWD, file, type);
+#ifdef __NR_access
+ return INLINE_SYSCALL_CALL (access, file, type);
+#else
+ return INLINE_SYSCALL_CALL (faccessat, AT_FDCWD, file, type);
+#endif
}
weak_alias (__access, access)
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 5 +++++
sysdeps/unix/sysv/linux/{generic => }/access.c | 15 ++++++++-------
2 files changed, 13 insertions(+), 7 deletions(-)
rename sysdeps/unix/sysv/linux/{generic => }/access.c (77%)
hooks/post-receive
--
GNU C Library master sources