diff --git a/src/runtime/cgo/callbacks_musl_linux.go b/src/runtime/cgo/callbacks_musl_linux.go index e341a65a73e..305941817b3 100644 --- a/src/runtime/cgo/callbacks_musl_linux.go +++ b/src/runtime/cgo/callbacks_musl_linux.go @@ -1,4 +1,4 @@ -// Copyright 2016 The Go Authors. All rights reserved. +// Copyright 2024 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. @@ -8,7 +8,7 @@ package cgo import _ "unsafe" // for go:linkname -// x_cgo_is_musl is set to 1 if the C library is musl. +// x_cgo_is_musl returns 1 if the C library is musl. //go:cgo_import_static x_cgo_is_musl //go:linkname x_cgo_is_musl x_cgo_is_musl diff --git a/src/runtime/cgo/gcc_musl_linux.c b/src/runtime/cgo/gcc_musl_linux.c index 0f40398e0a0..82998f0afb1 100644 --- a/src/runtime/cgo/gcc_musl_linux.c +++ b/src/runtime/cgo/gcc_musl_linux.c @@ -1,4 +1,4 @@ -// Copyright 2009 The Go Authors. All rights reserved. +// Copyright 2024 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/src/runtime/cgo_musl_linux.go b/src/runtime/cgo_musl_linux.go index 29856e1f558..470dfd64173 100644 --- a/src/runtime/cgo_musl_linux.go +++ b/src/runtime/cgo_musl_linux.go @@ -1,4 +1,4 @@ -// Copyright 2015 The Go Authors. All rights reserved. +// Copyright 2024 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. diff --git a/src/runtime/runtime1.go b/src/runtime/runtime1.go index e39abbeffa8..7700799f2ab 100644 --- a/src/runtime/runtime1.go +++ b/src/runtime/runtime1.go @@ -119,7 +119,7 @@ func goenvs_unix() { // // Note: This function will return nil if the file cannot be opened. func readNullTerminatedStringsFromFile(path []byte) []string { - fd := open(&path[0], 0 /* O_RDONLY */, 0) + fd := open(&path[0], _O_RDONLY, 0) if fd <= 0 { return nil }