about summary refs log tree commit diff
path: root/sysdeps/unix/sh
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2018-03-01 15:55:25 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2018-04-03 08:57:17 -0300
commit8e4754ed7ed60e3243ce83eee14bdcc7b88b73d1 (patch)
treed79e246adf2d4d9e66ed4f9c3fc8840a7e78fa54 /sysdeps/unix/sh
parent57408435ad7716715fa3a74c874eb3dc4db61861 (diff)
downloadglibc-8e4754ed7ed60e3243ce83eee14bdcc7b88b73d1.tar.gz
glibc-8e4754ed7ed60e3243ce83eee14bdcc7b88b73d1.tar.xz
glibc-8e4754ed7ed60e3243ce83eee14bdcc7b88b73d1.zip
Assume O_DIRECTORY for opendir
This patch assumes O_DIRECTORY works as defined by POSIX on opendir
implementation (aligning with other glibc code, for instance pwd).  This
allows remove both the fallback code to handle system with missing or
broken O_DIRECTORY along with the Linux specific opendir.c which just
advertise the working flag.

Checked on aarch64-linux-gnu, x86_64-linux-gnu, i686-linux-gnu,
sparcv9-linux-gnu, sparc64-linux-gnu, powerpc-linux-gnu, and
powerpc64le-linux-gnu.

	* sysdeps/posix/opendir.c (o_directory_works, tryopen_o_directory):
	Remove definitions.
	(opendir_oflags): Use O_DIRECTORY regardless.
	(__opendir, __opendirat): Remove need_isdir_precheck usage.
	* sysdeps/unix/sysv/linux/opendir.c: Remove file.
Diffstat (limited to 'sysdeps/unix/sh')
0 files changed, 0 insertions, 0 deletions