File: ioctl.go

package info (click to toggle)
golang-github-dennwc-btrfs 0.0~git20240418.0167142-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 312 kB
  • sloc: makefile: 4; sh: 4
file content (61 lines) | stat: -rw-r--r-- 1,049 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
package ioctl

import (
	"github.com/dennwc/ioctl"
	"os"
)

const (
	None  = ioctl.None
	Write = ioctl.Write
	Read  = ioctl.Read
)

// IOC
//
// Deprecated: use github/dennwc/ioctl
func IOC(dir, typ, nr, size uintptr) uintptr {
	return ioctl.IOC(dir, typ, nr, size)
}

// IO
//
// Deprecated: use github/dennwc/ioctl
func IO(typ, nr uintptr) uintptr {
	return ioctl.IO(typ, nr)
}

// IOC
//
// Deprecated: use github/dennwc/ioctl
func IOR(typ, nr, size uintptr) uintptr {
	return ioctl.IOR(typ, nr, size)
}

// IOW
//
// Deprecated: use github/dennwc/ioctl
func IOW(typ, nr, size uintptr) uintptr {
	return ioctl.IOW(typ, nr, size)
}

// IOWR
//
// Deprecated: use github/dennwc/ioctl
func IOWR(typ, nr, size uintptr) uintptr {
	return ioctl.IOWR(typ, nr, size)
}

// Ioctl
//
// Deprecated: use github/dennwc/ioctl
func Ioctl(f *os.File, ioc uintptr, addr uintptr) error {
	return ioctl.Ioctl(f, ioc, addr)
}

// Do
//
// Deprecated: use github/dennwc/ioctl
func Do(f *os.File, ioc uintptr, arg interface{}) error {
	return ioctl.Do(f, ioc, arg)
}