mirror of
https://github.com/golang/go
synced 2024-11-21 17:24:42 -07:00
update
This commit is contained in:
parent
992cc9f67a
commit
d7e52fb512
@ -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
|
||||
|
@ -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.
|
||||
|
||||
|
@ -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.
|
||||
|
||||
|
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user