glibc/sysdeps/unix/sysv/linux
Adhemerval Zanella afcf3cd8eb New internal function __access_noerrno
Implement an internal version of __access called __access_noerrno that
avoids setting errno.  This is useful to check accessibility of files
very early on in process startup i.e. before TLS setup.  This allows
tunables to replace MALLOC_CHECK_ safely (i.e. check existence of
/etc/suid-debug to enable/disable MALLOC_CHECK) and at the same time
initialize very early so that it can override IFUNCs.

Checked on x86_64.

	* hurd/hurd.h (__hurd_fail_noerrno): New function.
	* include/unistd.h [IS_IN (rtld) || !defined SHARED]: Declare
	__access_noerrno.
	* io/access.c (__access_noerrno): New function.
	* sysdeps/mach/hurd/access.c (hurd_fail_seterrno): New function.
	(hurd_fail_seterrno): Likewise.
	(access_common): Likewise.
	(__access_noerrno): Likewise.
	* sysdeps/nacl/access.c (__access_noerrno): Likewise.
	* sysdeps/unix/sysv/linux/access.c (__access_noerrno): Likewise.
	* sysdeps/nacl/nacl-interfaces.h (NACL_CALL_NOERRNO): New
	macro.
2016-11-16 15:53:58 -02:00
..
aarch64 Add canonicalize, canonicalizef, canonicalizel. 2016-10-26 23:14:31 +00:00
alpha Update alpha localplt.data. 2016-11-08 23:41:51 +00:00
arm Consolidate Linux truncate implementations 2016-11-09 17:46:17 -02:00
bits
generic Consolidate Linux access implementation 2016-11-10 16:38:07 -02:00
hppa Add localplt.data for hppa. 2016-11-08 23:42:36 +00:00
i386 i386: Support CFLAGS which imply -fno-omit-frame-pointer [BZ #20729] 2016-10-28 17:09:09 +02:00
ia64 Add canonicalize, canonicalizef, canonicalizel. 2016-10-26 23:14:31 +00:00
include/sys
m68k Add canonicalize, canonicalizef, canonicalizel. 2016-10-26 23:14:31 +00:00
microblaze Add canonicalize, canonicalizef, canonicalizel. 2016-10-26 23:14:31 +00:00
mips Consolidate Linux truncate implementations 2016-11-09 17:46:17 -02:00
net
netash
netatalk
netax25
neteconet
netinet
netipx
netiucv
netpacket
netrom
netrose
nfs
nios2 Update nios2 localplt.data. 2016-11-08 23:41:05 +00:00
powerpc Consolidate Linux truncate implementations 2016-11-09 17:46:17 -02:00
s390 Add canonicalize, canonicalizef, canonicalizel. 2016-10-26 23:14:31 +00:00
scsi
sh Fix SH4 register-dump.h for soft-float. 2016-11-16 03:45:49 +00:00
sparc Fix sparc build due missing __WORDSIZE_TIME64_COMPAT32 definition 2016-11-04 18:10:42 -02:00
sys
tile Make tilegx32 install libraries in lib32 directories. 2016-11-14 23:34:54 +00:00
wordsize-64 Consolidate Linux truncate implementations 2016-11-09 17:46:17 -02:00
x86
x86_64 Consolidate lseek/lseek64/llseek implementations 2016-11-08 16:04:33 -02:00
Implies
Makefile Consolidate lseek/lseek64/llseek implementations 2016-11-08 16:04:33 -02:00
Versions
_G_config.h
_exit.c
a.out.h
accept.c
accept4.c
access.c New internal function __access_noerrno 2016-11-16 15:53:58 -02:00
adjtime.c
aio_misc.h
aio_sigqueue.c
arch-fork.h
bind.c
check_native.c
check_pf.c
clock.c
clock_getcpuclockid.c
clock_getres.c
clock_gettime.c
clock_nanosleep.c
clock_settime.c
cmsg_nxthdr.c
configure
configure.ac
connect.c
createthread.c
default-sched.h
device-nrs.h
dl-brk.c
dl-execstack.c
dl-fxstatat64.c
dl-getcwd.c
dl-librecon.h
dl-openat64.c
dl-opendir.c
dl-origin.c
dl-osinfo.h
dl-sbrk.c
dl-sysdep.c
dl-sysdep.h
dl-vdso.c
dl-vdso.h
dl-writev.h
epoll_pwait.c
errqueue.h
eventfd_read.c
eventfd_write.c
exit-thread.h
faccessat.c
fallocate.c
fallocate64.c
fatal-prepare.h
fchmodat.c
fcntl.c
fd_to_filename.h
fexecve.c
fips-private.h
fpathconf.c
fstatfs64.c
fstatvfs.c
fstatvfs64.c
ftime.c
ftruncate.c Consolidate Linux ftruncate implementations 2016-11-09 17:46:11 -02:00
ftruncate64.c Consolidate Linux ftruncate implementations 2016-11-09 17:46:11 -02:00
futex-internal.h
futimens.c
futimes.c
futimesat.c
fxstat.c * sysdeps/unix/sysv/linux/fxstat.c: Remove useless cast. 2016-10-24 14:36:53 -07:00
fxstat64.c Define __ASSUME_ST_INO_64_BIT on all platforms. 2016-11-07 13:26:27 -08:00
fxstatat.c
fxstatat64.c
gai_sigqueue.c
getclktck.c
getcwd.c
getdents.c
getdents64.c
getdirentries.c
getdirentries64.c
getdtsz.c
gethostid.c
getipv4sourcefilter.c
getloadavg.c
getlogin.c
getlogin_r.c
getpagesize.c
getpeername.c
getpid.c
getpriority.c
getpt.c
getrlimit64.c
getsockname.c
getsockopt.c
getsourcefilter.c
getsysstats.c
gettimeofday.c
grantpt.c
if_index.c
ifaddrs.c
ifreq.c
internal_statvfs.c
internal_statvfs64.c
ipc_priv.h
kernel-features.h
kernel-posix-cpu-timers.h
kernel-posix-timers.h
kernel_sigaction.h
kernel_stat.h
kernel_termios.h
ldd-rewrite.sed
lddlibc4.c
ldsodefs.h
libc_fatal.c
linux_fsinfo.h
listen.c
local-setxid.h
lowlevellock-futex.h
lseek.c Consolidate lseek/lseek64/llseek implementations 2016-11-08 16:04:33 -02:00
lseek64.c Consolidate lseek/lseek64/llseek implementations 2016-11-08 16:04:33 -02:00
lutimes.c
lxstat.c * sysdeps/unix/sysv/linux/fxstat.c: Remove useless cast. 2016-10-24 14:36:53 -07:00
lxstat64.c Define __ASSUME_ST_INO_64_BIT on all platforms. 2016-11-07 13:26:27 -08:00
malloc-sysdep.h
mmap64.c
mq_close.c
mq_getattr.c
mq_notify.c
mq_open.c
mq_receive.c
mq_send.c
mq_unlink.c
msgctl.c
msgget.c
msgrcv.c
msgsnd.c
netlink_assert_response.c
netlinkaccess.h
nice.c
not-cancel.h
nptl-signals.h
nscd_setup_thread.c
ntp_gettime.c
ntp_gettimex.c
open64.c
openat.c
openat64.c
opendir.c
opensock.c
pathconf.c
pathconf.h
paths.h
personality.c
posix_fadvise.c
posix_fadvise64.c
posix_fallocate.c
posix_fallocate64.c
posix_madvise.c
ppoll.c
pread.c Fix Linux sh4 pread/pwrite argument passing 2016-10-24 15:26:42 -02:00
pread64.c Fix Linux sh4 pread/pwrite argument passing 2016-10-24 15:26:42 -02:00
preadv.c
preadv64.c
prlimit.c
prof-freq.c
profil.c
pselect.c
pt-raise.c
pthread-pids.h
pthread_getaffinity.c
pthread_getcpuclockid.c
pthread_getname.c
pthread_kill.c
pthread_setaffinity.c
pthread_setname.c
pthread_sigmask.c
pthread_sigqueue.c
ptrace.c
ptsname.c
pwrite.c Fix Linux sh4 pread/pwrite argument passing 2016-10-24 15:26:42 -02:00
pwrite64.c Fix Linux sh4 pread/pwrite argument passing 2016-10-24 15:26:42 -02:00
pwritev.c
pwritev64.c
raise.c
readahead.c
readdir64.c
readdir64_r.c
readonly-area.c
reboot.c
recv.c
recvfrom.c
recvmmsg.c
recvmsg.c
remove.c
sa_len.c
safe-fatal.h
sched_getaffinity.c
sched_getcpu.c
sched_setaffinity.c
segfault.c
semctl.c
semget.c
semop.c
semtimedop.c
send.c
sendmmsg.c
sendmsg.c
sendto.c
setegid.c
seteuid.c
setgid.c
setgroups.c
sethostid.c
setipv4sourcefilter.c
setregid.c
setresgid.c
setresuid.c
setreuid.c
setrlimit64.c
setsockopt.c
setsourcefilter.c
setuid.c
shlib-versions
shm-directory.c
shmat.c
shmctl.c
shmdt.c
shmget.c
shutdown.c
sigaction.c
siglist.h
signal.c
signalfd.c
sigpending.c
sigprocmask.c
sigqueue.c
sigreturn.c
sigset-cvt-mask.h
sigstack.c
sigsuspend.c
sigtimedwait.c
sigwait.c
sigwaitinfo.c
sizes.h
socket.c
socketcall.h
socketpair.c
spawni.c
speed.c
statfs64.c
statvfs.c
statvfs64.c
sync_file_range.c
syscalls.list
sysconf.c
sysctl.c
sysctl.mk
sysdep-vdso.h
sysdep.h Fix Linux sh4 pread/pwrite argument passing 2016-10-24 15:26:42 -02:00
syslog.c
system.c
tcdrain.c
tcflow.c
tcflush.c
tcgetattr.c
tcgetpgrp.c
tcsendbrk.c
tcsetattr.c
tcsetpgrp.c
termio.h
time.c
timer_create.c
timer_delete.c
timer_getoverr.c
timer_gettime.c
timer_routines.c
timer_settime.c
times.c
timespec_get.c
truncate.c Consolidate Linux truncate implementations 2016-11-09 17:46:17 -02:00
truncate64.c Consolidate Linux truncate implementations 2016-11-09 17:46:17 -02:00
tst-affinity-pid.c
tst-affinity.c
tst-align-clone.c
tst-clone.c
tst-clone2.c
tst-fallocate-common.c Fix Linux fallocate tests for EOPNOTSUPP 2016-10-18 08:56:22 -02:00
tst-fallocate.c
tst-fallocate64.c
tst-fanotify.c
tst-getpid1.c
tst-personality.c
tst-quota.c
tst-setgetname.c Fix -Wformat-length warning in tst-setgetname.c 2016-10-24 09:43:54 -07:00
tst-skeleton-affinity.c
tst-skeleton-thread-affinity.c
tst-sync_file_range.c
tst-thread-affinity-pthread.c
tst-thread-affinity-pthread2.c
tst-thread-affinity-sched.c
ttyname.c
ttyname_r.c
ualarm.c
umount.S
umount2.S
unlockpt.c
updwtmp.c
ustat.c
utimensat.c
utimes.c
utmp_file.c
vfork.c
wait.c
wait3.c
waitid.c
waitpid.c
xmknod.c
xmknodat.c
xstat.c * sysdeps/unix/sysv/linux/fxstat.c: Remove useless cast. 2016-10-24 14:36:53 -07:00
xstat64.c Define __ASSUME_ST_INO_64_BIT on all platforms. 2016-11-07 13:26:27 -08:00
xstatconv.c Define __ASSUME_ST_INO_64_BIT on all platforms. 2016-11-07 13:26:27 -08:00
xstatconv.h