Source file
src/syscall/types_dragonfly.go
1
2
3
4
5
6
7
10
11
12
13
14 package syscall
15
16
64 import "C"
65
66
67
68 const (
69 sizeofPtr = C.sizeofPtr
70 sizeofShort = C.sizeof_short
71 sizeofInt = C.sizeof_int
72 sizeofLong = C.sizeof_long
73 sizeofLongLong = C.sizeof_longlong
74 )
75
76
77
78 type (
79 _C_short C.short
80 _C_int C.int
81 _C_long C.long
82 _C_long_long C.longlong
83 )
84
85
86
87 type Timespec C.struct_timespec
88
89 type Timeval C.struct_timeval
90
91
92
93 type Rusage C.struct_rusage
94
95 type Rlimit C.struct_rlimit
96
97 type _Gid_t C.gid_t
98
99
100
101 const (
102 S_IFMT = C.S_IFMT
103 S_IFIFO = C.S_IFIFO
104 S_IFCHR = C.S_IFCHR
105 S_IFDIR = C.S_IFDIR
106 S_IFBLK = C.S_IFBLK
107 S_IFREG = C.S_IFREG
108 S_IFLNK = C.S_IFLNK
109 S_IFSOCK = C.S_IFSOCK
110 S_ISUID = C.S_ISUID
111 S_ISGID = C.S_ISGID
112 S_ISVTX = C.S_ISVTX
113 S_IRUSR = C.S_IRUSR
114 S_IWUSR = C.S_IWUSR
115 S_IXUSR = C.S_IXUSR
116 S_IRWXG = C.S_IRWXG
117 S_IRWXO = C.S_IRWXO
118 )
119
120 type Stat_t C.struct_stat
121
122 type Statfs_t C.struct_statfs
123
124 type Flock_t C.struct_flock
125
126 type Dirent C.struct_dirent
127
128 type Fsid C.struct_fsid
129
130
131
132 const (
133 pathMax = C.PATH_MAX
134 )
135
136
137
138 type RawSockaddrInet4 C.struct_sockaddr_in
139
140 type RawSockaddrInet6 C.struct_sockaddr_in6
141
142 type RawSockaddrUnix C.struct_sockaddr_un
143
144 type RawSockaddrDatalink C.struct_sockaddr_dl
145
146 type RawSockaddr C.struct_sockaddr
147
148 type RawSockaddrAny C.struct_sockaddr_any
149
150 type _Socklen C.socklen_t
151
152 type Linger C.struct_linger
153
154 type Iovec C.struct_iovec
155
156 type IPMreq C.struct_ip_mreq
157
158 type IPv6Mreq C.struct_ipv6_mreq
159
160 type Msghdr C.struct_msghdr
161
162 type Cmsghdr C.struct_cmsghdr
163
164 type Inet6Pktinfo C.struct_in6_pktinfo
165
166 type IPv6MTUInfo C.struct_ip6_mtuinfo
167
168 type ICMPv6Filter C.struct_icmp6_filter
169
170 const (
171 SizeofSockaddrInet4 = C.sizeof_struct_sockaddr_in
172 SizeofSockaddrInet6 = C.sizeof_struct_sockaddr_in6
173 SizeofSockaddrAny = C.sizeof_struct_sockaddr_any
174 SizeofSockaddrUnix = C.sizeof_struct_sockaddr_un
175 SizeofSockaddrDatalink = C.sizeof_struct_sockaddr_dl
176 SizeofLinger = C.sizeof_struct_linger
177 SizeofIPMreq = C.sizeof_struct_ip_mreq
178 SizeofIPv6Mreq = C.sizeof_struct_ipv6_mreq
179 SizeofMsghdr = C.sizeof_struct_msghdr
180 SizeofCmsghdr = C.sizeof_struct_cmsghdr
181 SizeofInet6Pktinfo = C.sizeof_struct_in6_pktinfo
182 SizeofIPv6MTUInfo = C.sizeof_struct_ip6_mtuinfo
183 SizeofICMPv6Filter = C.sizeof_struct_icmp6_filter
184 )
185
186
187
188 const (
189 PTRACE_TRACEME = C.PT_TRACE_ME
190 PTRACE_CONT = C.PT_CONTINUE
191 PTRACE_KILL = C.PT_KILL
192 )
193
194
195
196 type Kevent_t C.struct_kevent
197
198
199
200 type FdSet C.fd_set
201
202
203
204 const (
205 SizeofIfMsghdr = C.sizeof_struct_if_msghdr
206 SizeofIfData = C.sizeof_struct_if_data
207 SizeofIfaMsghdr = C.sizeof_struct_ifa_msghdr
208 SizeofIfmaMsghdr = C.sizeof_struct_ifma_msghdr
209 SizeofIfAnnounceMsghdr = C.sizeof_struct_if_announcemsghdr
210 SizeofRtMsghdr = C.sizeof_struct_rt_msghdr
211 SizeofRtMetrics = C.sizeof_struct_rt_metrics
212 )
213
214 type IfMsghdr C.struct_if_msghdr
215
216 type IfData C.struct_if_data
217
218 type IfaMsghdr C.struct_ifa_msghdr
219
220 type IfmaMsghdr C.struct_ifma_msghdr
221
222 type IfAnnounceMsghdr C.struct_if_announcemsghdr
223
224 type RtMsghdr C.struct_rt_msghdr
225
226 type RtMetrics C.struct_rt_metrics
227
228
229
230 const (
231 SizeofBpfVersion = C.sizeof_struct_bpf_version
232 SizeofBpfStat = C.sizeof_struct_bpf_stat
233 SizeofBpfProgram = C.sizeof_struct_bpf_program
234 SizeofBpfInsn = C.sizeof_struct_bpf_insn
235 SizeofBpfHdr = C.sizeof_struct_bpf_hdr
236 )
237
238 type BpfVersion C.struct_bpf_version
239
240 type BpfStat C.struct_bpf_stat
241
242 type BpfProgram C.struct_bpf_program
243
244 type BpfInsn C.struct_bpf_insn
245
246 type BpfHdr C.struct_bpf_hdr
247
248
249
250 const (
251 _AT_FDCWD = C.AT_FDCWD
252 )
253
254
255
256 type Termios C.struct_termios
257
View as plain text