Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

syscall: Missing open flags for AMD64 #54167

Closed
AlonZivony opened this issue Aug 1, 2022 · 3 comments
Closed

syscall: Missing open flags for AMD64 #54167

AlonZivony opened this issue Aug 1, 2022 · 3 comments
Labels
compiler/runtime Issues related to the Go compiler and/or runtime.

Comments

@AlonZivony
Copy link

What version of Go are you using (go version)?

$ go version
go version go1.18.3 linux/amd64

Does this issue reproduce with the latest release?

Yes

What operating system and processor architecture are you using (go env)?

go env Output
$ go env
GOARCH="amd64"
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"

What did you do?

I want to use syscall.openat, so I want to open a directory using syscall.open using the O_PATH flag.
However, it seems that it is not defined in the syscall library.
I have seen that other architectures have this flag in their source code, but for some reason it is missing for normal AMD64.
Might be that other flags are missing too (didn't check).

@gopherbot gopherbot added the compiler/runtime Issues related to the Go compiler and/or runtime. label Aug 1, 2022
@jacobishao
Copy link
Contributor

jacobishao commented Aug 1, 2022

@AlonZivony if you use the syscall.O_PATH flag in the code, can you compile your program?

@seankhliao
Copy link
Member

syscall is frozen, use golang.org/x/sys/unix

@seankhliao seankhliao closed this as not planned Won't fix, can't repro, duplicate, stale Aug 1, 2022
@AlonZivony
Copy link
Author

Thanks @seankhliao!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler/runtime Issues related to the Go compiler and/or runtime.
Projects
None yet
Development

No branches or pull requests

4 participants