robocar-pca9685/vendor/periph.io/x/host/v3/fs/fs_other.go

27 lines
592 B
Go
Raw Normal View History

2019-12-27 17:23:08 +00:00
// Copyright 2017 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.
2022-01-02 22:29:08 +00:00
//go:build !linux
2019-12-27 17:23:08 +00:00
// +build !linux
package fs
import "errors"
const isLinux = false
func ioctl(f uintptr, op uint, arg uintptr) error {
return errors.New("fs: ioctl not supported on non-linux")
}
type event struct{}
func (e *event) makeEvent(f uintptr) error {
return errors.New("fs: unreachable code")
}
func (e *event) wait(timeoutms int) (int, error) {
return 0, errors.New("fs: unreachable code")
}