Skip to content

machine: fixes for unix.Uname use#3775

Merged
dims merged 2 commits intogoogle:masterfrom
tklauser:unix-uname
Dec 10, 2025
Merged

machine: fixes for unix.Uname use#3775
dims merged 2 commits intogoogle:masterfrom
tklauser:unix-uname

Conversation

@tklauser
Copy link
Contributor

Use the convenience function ByteSliceToString from x/sys/unix to convert Utsname members to string. Also use unix.Uname instead of exec'ing uname -s on darwin and freebsd.

See commits for details.

Use the convenience function ByteSliceToString from x/sys/unix to
convert Utsname members to string.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
unix.Uname wrapping the uname syscall is available on both darwin and
freebsd.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
@dims dims added this pull request to the merge queue Dec 10, 2025
Merged via the queue into google:master with commit 306df94 Dec 10, 2025
7 checks passed
@tklauser tklauser deleted the unix-uname branch December 10, 2025 21:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants