PKGBUILD/vendor/periph.io/x/periph/host/sysfs/sysfs_linux.go
2018-12-07 20:42:30 +01:00

18 lines
347 B
Go

// Copyright 2016 The Periph Authors. All rights reserved.
// Use of this source code is governed under the Apache License, Version 2.0
// that can be found in the LICENSE file.
package sysfs
import (
"os"
"syscall"
)
const isLinux = true
func isErrBusy(err error) bool {
e, ok := err.(*os.PathError)
return ok && e.Err == syscall.EBUSY
}