add O_PATH/O_SEARCH support to fcntl.h
authorRich Felker <dalias@aerifal.cx>
Fri, 14 Sep 2012 00:56:25 +0000 (20:56 -0400)
committerRich Felker <dalias@aerifal.cx>
Fri, 14 Sep 2012 00:56:25 +0000 (20:56 -0400)
commitb238b37a0f9d12f87dc9b7ce1ece4bcde566a45f
treeb6cb7b8118f355e77046eb388c2163b1d1d267c6
parentcfc09b1ecf0c6981494fd73dffe234416f66af10
add O_PATH/O_SEARCH support to fcntl.h

I'm not 100% sure that Linux's O_PATH meets the POSIX requirements for
O_SEARCH, but it seems very close if not perfect. and old kernels
ignore it, so O_SEARCH will still work as desired as long as the
caller has read permissions to the directory.
arch/arm/bits/fcntl.h
arch/i386/bits/fcntl.h
arch/mips/bits/fcntl.h
arch/x86_64/bits/fcntl.h
include/fcntl.h