mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
6d068bc25b
Update golang.org/x/sys to 95c6576299259db960f6c5b9b69ea52422860fce in order to get the unix.Utsname with byte array instead of int8/uint8 members. This allows to use simple byte slice to string conversions instead of using charsToString or its open-coded version. Also see golang/go#20753 for details. Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
30 lines
587 B
Go
30 lines
587 B
Go
// Copyright 2012 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.
|
|
|
|
// +build windows,race
|
|
|
|
package windows
|
|
|
|
import (
|
|
"runtime"
|
|
"unsafe"
|
|
)
|
|
|
|
const raceenabled = true
|
|
|
|
func raceAcquire(addr unsafe.Pointer) {
|
|
runtime.RaceAcquire(addr)
|
|
}
|
|
|
|
func raceReleaseMerge(addr unsafe.Pointer) {
|
|
runtime.RaceReleaseMerge(addr)
|
|
}
|
|
|
|
func raceReadRange(addr unsafe.Pointer, len int) {
|
|
runtime.RaceReadRange(addr, len)
|
|
}
|
|
|
|
func raceWriteRange(addr unsafe.Pointer, len int) {
|
|
runtime.RaceWriteRange(addr, len)
|
|
}
|