Skip to content

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

@corny

Description

@corny

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions