Source File
error_posix.go
Belonging Package
os
// Copyright 2017 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.
//go:build aix || darwin || dragonfly || freebsd || (js && wasm) || linux || netbsd || openbsd || solaris || windows
package os
import
// wrapSyscallError takes an error and a syscall name. If the error is
// a syscall.Errno, it wraps it in a os.SyscallError using the syscall name.
func ( string, error) error {
if , := .(syscall.Errno); {
= NewSyscallError(, )
}
return
}
The pages are generated with Golds v0.4.9. (GOOS=linux GOARCH=amd64)