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 SysctlBytes to retrieve binary data on BSD #18053

Closed
corny opened this issue Nov 25, 2016 · 2 comments
Closed

x/sys/unix: add SysctlBytes to retrieve binary data on BSD #18053

corny opened this issue Nov 25, 2016 · 2 comments

Comments

@corny
Copy link

corny commented Nov 25, 2016

The Sysctl function in syscall_bsd.go strips a null byte at the end and returns a string. I would like to have a SysctlBytes function that returns the raw byte array.

@gopherbot
Copy link

CL https://golang.org/cl/33611 mentions this issue.

@gopherbot
Copy link

CL https://golang.org/cl/33612 mentions this issue.

@mikioh mikioh changed the title syscall: add SysctlBytes to retrieve binary data on BSD x/sys/unix: add SysctlBytes to retrieve binary data on BSD Nov 25, 2016
@golang golang locked and limited conversation to collaborators Nov 29, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants