Skip to content

Commit d7e52fb

Browse files
committed
update
1 parent 992cc9f commit d7e52fb

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

src/runtime/cgo/callbacks_musl_linux.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2016 The Go Authors. All rights reserved.
1+
// Copyright 2024 The Go Authors. All rights reserved.
22
// Use of this source code is governed by a BSD-style
33
// license that can be found in the LICENSE file.
44

@@ -8,7 +8,7 @@ package cgo
88

99
import _ "unsafe" // for go:linkname
1010

11-
// x_cgo_is_musl is set to 1 if the C library is musl.
11+
// x_cgo_is_musl returns 1 if the C library is musl.
1212

1313
//go:cgo_import_static x_cgo_is_musl
1414
//go:linkname x_cgo_is_musl x_cgo_is_musl

src/runtime/cgo/gcc_musl_linux.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2009 The Go Authors. All rights reserved.
1+
// Copyright 2024 The Go Authors. All rights reserved.
22
// Use of this source code is governed by a BSD-style
33
// license that can be found in the LICENSE file.
44

src/runtime/cgo_musl_linux.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2015 The Go Authors. All rights reserved.
1+
// Copyright 2024 The Go Authors. All rights reserved.
22
// Use of this source code is governed by a BSD-style
33
// license that can be found in the LICENSE file.
44

src/runtime/runtime1.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ func goenvs_unix() {
119119
//
120120
// Note: This function will return nil if the file cannot be opened.
121121
func readNullTerminatedStringsFromFile(path []byte) []string {
122-
fd := open(&path[0], 0 /* O_RDONLY */, 0)
122+
fd := open(&path[0], _O_RDONLY, 0)
123123
if fd <= 0 {
124124
return nil
125125
}

0 commit comments

Comments
 (0)