| 1 | package ioctl |
| 2 | |
| 3 | import ( |
| 4 | "github.com/dennwc/ioctl" |
| 5 | "os" |
| 6 | ) |
| 7 | |
| 8 | const ( |
| 9 | None = ioctl.None |
| 10 | Write = ioctl.Write |
| 11 | Read = ioctl.Read |
| 12 | ) |
| 13 | |
| 14 | // IOC |
| 15 | // |
| 16 | // Deprecated: use github/dennwc/ioctl |
| 17 | func IOC(dir, typ, nr, size uintptr) uintptr { |
| 18 | return ioctl.IOC(dir, typ, nr, size) |
| 19 | } |
| 20 | |
| 21 | // IO |
| 22 | // |
| 23 | // Deprecated: use github/dennwc/ioctl |
| 24 | func IO(typ, nr uintptr) uintptr { |
| 25 | return ioctl.IO(typ, nr) |
| 26 | } |
| 27 | |
| 28 | // IOC |
| 29 | // |
| 30 | // Deprecated: use github/dennwc/ioctl |
| 31 | func IOR(typ, nr, size uintptr) uintptr { |
| 32 | return ioctl.IOR(typ, nr, size) |
| 33 | } |
| 34 | |
| 35 | // IOW |
| 36 | // |
| 37 | // Deprecated: use github/dennwc/ioctl |
| 38 | func IOW(typ, nr, size uintptr) uintptr { |
| 39 | return ioctl.IOW(typ, nr, size) |
| 40 | } |
| 41 | |
| 42 | // IOWR |
| 43 | // |
| 44 | // Deprecated: use github/dennwc/ioctl |
| 45 | func IOWR(typ, nr, size uintptr) uintptr { |
| 46 | return ioctl.IOWR(typ, nr, size) |
| 47 | } |
| 48 | |
| 49 | // Ioctl |
| 50 | // |
| 51 | // Deprecated: use github/dennwc/ioctl |
| 52 | func Ioctl(f *os.File, ioc uintptr, addr uintptr) error { |
| 53 | return ioctl.Ioctl(f, ioc, addr) |
| 54 | } |
| 55 | |
| 56 | // Do |
| 57 | // |
| 58 | // Deprecated: use github/dennwc/ioctl |
| 59 | func Do(f *os.File, ioc uintptr, arg interface{}) error { |
| 60 | return ioctl.Do(f, ioc, arg) |
| 61 | } |