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

x/sys/unix: add support for timerfd syscalls on Linux #38733

Closed
itwaseasy opened this issue Apr 28, 2020 · 2 comments
Closed

x/sys/unix: add support for timerfd syscalls on Linux #38733

itwaseasy opened this issue Apr 28, 2020 · 2 comments
Labels
FrozenDueToAge NeedsFix The path to resolution is known, but the work has not been done.
Milestone

Comments

@itwaseasy
Copy link

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

go version go1.14.2 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
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/pugachev/.cache/go-build"
GOENV="/home/pugachev/.config/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/home/pugachev/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/snap/go/5646"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/snap/go/5646/pkg/tool/linux_amd64"
GCCGO="gccgo"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/home/pugachev/work/golang_xsys/go.mod"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build463295103=/tmp/go-build -gno-record-gcc-switches"

What did you do?

The project I'm working on uses epoll for low-level network code. And lack of timerfd support in x/sys/unix is a problem for me because I have to invent various workarounds for timers.

I'd like to submit a patch for this, if nobody objects.

What did you expect to see?

Support for timerfd in x/sys/unix package.

What did you see instead?

No support at the moment.

@gopherbot gopherbot added this to the Unreleased milestone Apr 28, 2020
@tklauser tklauser changed the title x/sys: add support for timerfd syscalls on Linux x/sys/unix: add support for timerfd syscalls on Linux Apr 28, 2020
@tklauser tklauser added the NeedsFix The path to resolution is known, but the work has not been done. label Apr 28, 2020
@tklauser
Copy link
Member

I'd like to submit a patch for this, if nobody objects.

Please feel free to send a CL.

Quoting @ianlancetaylor from https://groups.google.com/d/msg/golang-dev/A2QnYWHoAao/uCNaGGLiBAAJ:

That said, x/sys is all about unportable features. If someone wants
to add the timerfd system calls, I think that would be OK. I agree
that they would be hard to use in a Go program, but the same is true
of other functions already in x/sys.

@gopherbot
Copy link

Change https://golang.org/cl/230798 mentions this issue: unix: add support for timerfd syscalls on Linux

@golang golang locked and limited conversation to collaborators Apr 30, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge NeedsFix The path to resolution is known, but the work has not been done.
Projects
None yet
Development

No branches or pull requests

3 participants