Source file
src/syscall/types_freebsd.go
1
2
3
4
5
6
7
10
11
12
13
14 package syscall
15
16
112 import "C"
113
114
115
116 const (
117 sizeofPtr = C.sizeofPtr
118 sizeofShort = C.sizeof_short
119 sizeofInt = C.sizeof_int
120 sizeofLong = C.sizeof_long
121 sizeofLongLong = C.sizeof_longlong
122 )
123
124
125
126 type (
127 _C_short C.short
128 _C_int C.int
129 _C_long C.long
130 _C_long_long C.longlong
131 )
132
133
134
135 type Timespec C.struct_timespec
136
137 type Timeval C.struct_timeval
138
139
140
141 type Rusage C.struct_rusage
142
143 type Rlimit C.struct_rlimit
144
145 type _Gid_t C.gid_t
146
147
148
149 const (
150 S_IFMT = C.S_IFMT
151 S_IFIFO = C.S_IFIFO
152 S_IFCHR = C.S_IFCHR
153 S_IFDIR = C.S_IFDIR
154 S_IFBLK = C.S_IFBLK
155 S_IFREG = C.S_IFREG
156 S_IFLNK = C.S_IFLNK
157 S_IFSOCK = C.S_IFSOCK
158 S_ISUID = C.S_ISUID
159 S_ISGID = C.S_ISGID
160 S_ISVTX = C.S_ISVTX
161 S_IRUSR = C.S_IRUSR
162 S_IWUSR = C.S_IWUSR
163 S_IXUSR = C.S_IXUSR
164 S_IRWXG = C.S_IRWXG
165 S_IRWXO = C.S_IRWXO
166 )
167
168 const (
169 _statfsVersion = C.STATFS_VERSION
170 _dirblksiz = C.DIRBLKSIZ
171 )
172
173 type Stat_t C.struct_stat
174
175 type stat_freebsd11_t C.struct_freebsd11_stat
176
177 type Statfs_t C.struct_statfs
178
179 type statfs_freebsd11_t C.struct_freebsd11_statfs
180
181 type Flock_t C.struct_flock
182
183 type Dirent C.struct_dirent
184
185 type dirent_freebsd11 C.struct_freebsd11_dirent
186
187 type Fsid C.struct_fsid
188
189
190
191 const (
192 pathMax = C.PATH_MAX
193 )
194
195
196
197 type RawSockaddrInet4 C.struct_sockaddr_in
198
199 type RawSockaddrInet6 C.struct_sockaddr_in6
200
201 type RawSockaddrUnix C.struct_sockaddr_un
202
203 type RawSockaddrDatalink C.struct_sockaddr_dl
204
205 type RawSockaddr C.struct_sockaddr
206
207 type RawSockaddrAny C.struct_sockaddr_any
208
209 type _Socklen C.socklen_t
210
211 type Linger C.struct_linger
212
213 type Iovec C.struct_iovec
214
215 type IPMreq C.struct_ip_mreq
216
217 type IPMreqn C.struct_ip_mreqn
218
219 type IPv6Mreq C.struct_ipv6_mreq
220
221 type Msghdr C.struct_msghdr
222
223 type Cmsghdr C.struct_cmsghdr
224
225 type Inet6Pktinfo C.struct_in6_pktinfo
226
227 type IPv6MTUInfo C.struct_ip6_mtuinfo
228
229 type ICMPv6Filter C.struct_icmp6_filter
230
231 const (
232 SizeofSockaddrInet4 = C.sizeof_struct_sockaddr_in
233 SizeofSockaddrInet6 = C.sizeof_struct_sockaddr_in6
234 SizeofSockaddrAny = C.sizeof_struct_sockaddr_any
235 SizeofSockaddrUnix = C.sizeof_struct_sockaddr_un
236 SizeofSockaddrDatalink = C.sizeof_struct_sockaddr_dl
237 SizeofLinger = C.sizeof_struct_linger
238 SizeofIPMreq = C.sizeof_struct_ip_mreq
239 SizeofIPMreqn = C.sizeof_struct_ip_mreqn
240 SizeofIPv6Mreq = C.sizeof_struct_ipv6_mreq
241 SizeofMsghdr = C.sizeof_struct_msghdr
242 SizeofCmsghdr = C.sizeof_struct_cmsghdr
243 SizeofInet6Pktinfo = C.sizeof_struct_in6_pktinfo
244 SizeofIPv6MTUInfo = C.sizeof_struct_ip6_mtuinfo
245 SizeofICMPv6Filter = C.sizeof_struct_icmp6_filter
246 )
247
248
249
250 const (
251 PTRACE_TRACEME = C.PT_TRACE_ME
252 PTRACE_CONT = C.PT_CONTINUE
253 PTRACE_KILL = C.PT_KILL
254 )
255
256
257
258 type Kevent_t C.struct_kevent_freebsd11
259
260
261
262 type FdSet C.fd_set
263
264
265
266 const (
267 sizeofIfMsghdr = C.sizeof_struct_if_msghdr
268 SizeofIfMsghdr = C.sizeof_struct_if_msghdr8
269 sizeofIfData = C.sizeof_struct_if_data
270 SizeofIfData = C.sizeof_struct_if_data8
271 SizeofIfaMsghdr = C.sizeof_struct_ifa_msghdr
272 SizeofIfmaMsghdr = C.sizeof_struct_ifma_msghdr
273 SizeofIfAnnounceMsghdr = C.sizeof_struct_if_announcemsghdr
274 SizeofRtMsghdr = C.sizeof_struct_rt_msghdr
275 SizeofRtMetrics = C.sizeof_struct_rt_metrics
276 )
277
278 type ifMsghdr C.struct_if_msghdr
279
280 type IfMsghdr C.struct_if_msghdr8
281
282 type ifData C.struct_if_data
283
284 type IfData C.struct_if_data8
285
286 type IfaMsghdr C.struct_ifa_msghdr
287
288 type IfmaMsghdr C.struct_ifma_msghdr
289
290 type IfAnnounceMsghdr C.struct_if_announcemsghdr
291
292 type RtMsghdr C.struct_rt_msghdr
293
294 type RtMetrics C.struct_rt_metrics
295
296
297
298 const (
299 SizeofBpfVersion = C.sizeof_struct_bpf_version
300 SizeofBpfStat = C.sizeof_struct_bpf_stat
301 SizeofBpfZbuf = C.sizeof_struct_bpf_zbuf
302 SizeofBpfProgram = C.sizeof_struct_bpf_program
303 SizeofBpfInsn = C.sizeof_struct_bpf_insn
304 SizeofBpfHdr = C.sizeof_struct_bpf_hdr
305 SizeofBpfZbufHeader = C.sizeof_struct_bpf_zbuf_header
306 )
307
308 type BpfVersion C.struct_bpf_version
309
310 type BpfStat C.struct_bpf_stat
311
312 type BpfZbuf C.struct_bpf_zbuf
313
314 type BpfProgram C.struct_bpf_program
315
316 type BpfInsn C.struct_bpf_insn
317
318 type BpfHdr C.struct_bpf_hdr
319
320 type BpfZbufHeader C.struct_bpf_zbuf_header
321
322
323
324 const (
325 _AT_FDCWD = C.AT_FDCWD
326 _AT_SYMLINK_FOLLOW = C.AT_SYMLINK_FOLLOW
327 _AT_SYMLINK_NOFOLLOW = C.AT_SYMLINK_NOFOLLOW
328 )
329
330
331
332 type Termios C.struct_termios
333
View as plain text