Skip to content

x/sys/unix: F_OFD_* consts are not present on Darwin #73351

Open
golang/sys
#248
@david-its

Description

@david-its

Go version

go version go1.24.0 darwin/arm64

Output of go env in your module/workspace:

not relevant

What did you do?

man fcntl describes OFD locks which are available on MacOS (initially invented on Linux).
However, syscall/zerrors_darwin_*.go files are missing definitions for these 3 consts:
F_OFD_GETLK, F_OFD_SETLK and F_OFD_SETLKW

What did you see happen?

not relevant

What did you expect to see?

consts present in Go definitions

Metadata

Metadata

Assignees

Labels

FeatureRequestIssues asking for a new feature that does not need a proposal.OS-DarwinSuggestedIssues that may be good for new contributors looking for work to do.

Type

No type

Projects

Status

Todo

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions