Skip to content

x/sys/unix: O_PATH & O_TMPFILE aren't defined on Linux #7830

@gopherbot

Description

@gopherbot

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)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions