btrfs/ioctl/ioctl.go

62 lines
1.0 KiB
Go
Raw Normal View History

2016-09-14 17:29:46 +00:00
package ioctl
import (
2018-10-21 18:02:44 +00:00
"github.com/dennwc/ioctl"
2016-09-14 17:29:46 +00:00
"os"
)
const (
2018-10-21 18:02:44 +00:00
None = ioctl.None
Write = ioctl.Write
Read = ioctl.Read
2016-09-14 17:29:46 +00:00
)
2018-10-21 18:02:44 +00:00
// IOC
//
// Deprecated: use github/dennwc/ioctl
2016-09-14 17:29:46 +00:00
func IOC(dir, typ, nr, size uintptr) uintptr {
2018-10-21 18:02:44 +00:00
return ioctl.IOC(dir, typ, nr, size)
2016-09-14 17:29:46 +00:00
}
2018-10-21 18:02:44 +00:00
// IO
//
// Deprecated: use github/dennwc/ioctl
2016-09-14 17:29:46 +00:00
func IO(typ, nr uintptr) uintptr {
2018-10-21 18:02:44 +00:00
return ioctl.IO(typ, nr)
2016-09-14 17:29:46 +00:00
}
2018-10-21 18:02:44 +00:00
// IOC
//
// Deprecated: use github/dennwc/ioctl
2016-09-14 17:29:46 +00:00
func IOR(typ, nr, size uintptr) uintptr {
2018-10-21 18:02:44 +00:00
return ioctl.IOR(typ, nr, size)
2016-09-14 17:29:46 +00:00
}
2018-10-21 18:02:44 +00:00
// IOW
//
// Deprecated: use github/dennwc/ioctl
2016-09-14 17:29:46 +00:00
func IOW(typ, nr, size uintptr) uintptr {
2018-10-21 18:02:44 +00:00
return ioctl.IOW(typ, nr, size)
2016-09-14 17:29:46 +00:00
}
2018-10-21 18:02:44 +00:00
// IOWR
//
// Deprecated: use github/dennwc/ioctl
2016-09-14 17:29:46 +00:00
func IOWR(typ, nr, size uintptr) uintptr {
2018-10-21 18:02:44 +00:00
return ioctl.IOWR(typ, nr, size)
2016-09-14 17:29:46 +00:00
}
2018-10-21 18:02:44 +00:00
// Ioctl
//
// Deprecated: use github/dennwc/ioctl
2016-09-14 17:29:46 +00:00
func Ioctl(f *os.File, ioc uintptr, addr uintptr) error {
2018-10-21 18:02:44 +00:00
return ioctl.Ioctl(f, ioc, addr)
2016-09-14 17:29:46 +00:00
}
2018-10-21 18:02:44 +00:00
// Do
//
// Deprecated: use github/dennwc/ioctl
2016-09-14 17:29:46 +00:00
func Do(f *os.File, ioc uintptr, arg interface{}) error {
2018-10-21 18:02:44 +00:00
return ioctl.Do(f, ioc, arg)
2016-09-14 17:29:46 +00:00
}