by joejob357:
go version devel +7da10a02f6dd Sun Apr 20 11:02:01 2014 +0200 linux/amd64
Linux defines the constants O_PATH (as of v2.6.39) and O_TMPFILE (as of v3.11), but
neither are exposed by the syscall package. Running src/pkg/syscall/mkerrors.sh
correctly picks up O_PATH, but not O_TMPFILE. Perhaps this is because of how it is
defined:
#define O_TMPFILE (__O_TMPFILE | O_DIRECTORY)
(in /usr/src/linux-headers-3.13-1-common/include/uapi/asm-generic/fcntl.h)