[Glibc-bsd-commits] r6172 - trunk/glibc-ports-2.25/kfreebsd
aurel32 at alioth.debian.org
aurel32 at alioth.debian.org
Sat Aug 26 21:12:23 UTC 2017
Author: aurel32
Date: 2017-08-26 21:12:23 +0000 (Sat, 26 Aug 2017)
New Revision: 6172
Modified:
trunk/glibc-ports-2.25/kfreebsd/access.c
Log:
access: add a __access_noerrno function
Modified: trunk/glibc-ports-2.25/kfreebsd/access.c
===================================================================
--- trunk/glibc-ports-2.25/kfreebsd/access.c 2017-08-04 22:56:49 UTC (rev 6171)
+++ trunk/glibc-ports-2.25/kfreebsd/access.c 2017-08-26 21:12:23 UTC (rev 6172)
@@ -64,4 +64,19 @@
return -1;
}
+
+/* Test for access to FILE by our real user and group IDs without setting
+ errno. */
+int
+__access_noerrno (const char *file, int type)
+{
+ int ret;
+ int saved_errno = errno;
+
+ ret = __access (file, type);
+
+ __set_errno(saved_errno);
+ return ret;
+}
+
weak_alias (__access, access)
More information about the Glibc-bsd-commits
mailing list