aboutsummaryrefslogtreecommitdiff
path: root/sysutils/nomad-pot-driver/files/patch-vendor_github.com_shirou_gopsutil_disk_disk__freebsd__arm64.go
blob: 70294d94cec85651f5de9b3c1ace856b4e9153c7 (plain) (blame)
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
--- vendor/github.com/shirou/gopsutil/disk/disk_freebsd_arm64.go.orig	2021-05-28 13:42:23 UTC
+++ vendor/github.com/shirou/gopsutil/disk/disk_freebsd_arm64.go
@@ -0,0 +1,115 @@
+// +build freebsd
+// +build arm64
+// Code generated by cmd/cgo -godefs; DO NOT EDIT.
+// cgo -godefs disk/types_freebsd.go
+
+package disk
+
+const (
+	sizeofPtr		= 0x8
+	sizeofShort		= 0x2
+	sizeofInt		= 0x4
+	sizeofLong		= 0x8
+	sizeofLongLong		= 0x8
+	sizeofLongDouble	= 0x8
+
+	DEVSTAT_NO_DATA	= 0x00
+	DEVSTAT_READ	= 0x01
+	DEVSTAT_WRITE	= 0x02
+	DEVSTAT_FREE	= 0x03
+
+	MNT_RDONLY	= 0x00000001
+	MNT_SYNCHRONOUS	= 0x00000002
+	MNT_NOEXEC	= 0x00000004
+	MNT_NOSUID	= 0x00000008
+	MNT_UNION	= 0x00000020
+	MNT_ASYNC	= 0x00000040
+	MNT_SUIDDIR	= 0x00100000
+	MNT_SOFTDEP	= 0x00200000
+	MNT_NOSYMFOLLOW	= 0x00400000
+	MNT_GJOURNAL	= 0x02000000
+	MNT_MULTILABEL	= 0x04000000
+	MNT_ACLS	= 0x08000000
+	MNT_NOATIME	= 0x10000000
+	MNT_NOCLUSTERR	= 0x40000000
+	MNT_NOCLUSTERW	= 0x80000000
+	MNT_NFS4ACLS	= 0x00000010
+
+	MNT_WAIT	= 1
+	MNT_NOWAIT	= 2
+	MNT_LAZY	= 3
+	MNT_SUSPEND	= 4
+)
+
+const (
+	sizeOfDevstat = 0x120
+)
+
+type (
+	_C_short	int16
+	_C_int		int32
+	_C_long		int64
+	_C_long_long	int64
+	_C_long_double	int64
+)
+
+type Statfs struct {
+	Version		uint32
+	Type		uint32
+	Flags		uint64
+	Bsize		uint64
+	Iosize		uint64
+	Blocks		uint64
+	Bfree		uint64
+	Bavail		int64
+	Files		uint64
+	Ffree		int64
+	Syncwrites	uint64
+	Asyncwrites	uint64
+	Syncreads	uint64
+	Asyncreads	uint64
+	Spare		[10]uint64
+	Namemax		uint32
+	Owner		uint32
+	Fsid		Fsid
+	Charspare	[80]uint8
+	Fstypename	[16]int8
+	Mntfromname	[1024]int8
+	Mntonname	[1024]int8
+}
+type Fsid struct {
+	Val [2]int32
+}
+
+type Devstat struct {
+	Sequence0	uint32
+	Allocated	int32
+	Start_count	uint32
+	End_count	uint32
+	Busy_from	Bintime
+	Dev_links	_Ctype_struct___0
+	Device_number	uint32
+	Device_name	[16]int8
+	Unit_number	int32
+	Bytes		[4]uint64
+	Operations	[4]uint64
+	Duration	[4]Bintime
+	Busy_time	Bintime
+	Creation_time	Bintime
+	Block_size	uint32
+	Tag_types	[3]uint64
+	Flags		uint32
+	Device_type	uint32
+	Priority	uint32
+	Id		*byte
+	Sequence1	uint32
+	Pad_cgo_0	[4]byte
+}
+type Bintime struct {
+	Sec	int64
+	Frac	uint64
+}
+
+type _Ctype_struct___0 struct {
+	Empty uint64
+}