equal
deleted
inserted
replaced
1 // cgo -godefs types_darwin.go | go run mkpost.go |
1 // cgo -godefs types_darwin.go | go run mkpost.go |
2 // Code generated by the command above; see README.md. DO NOT EDIT. |
2 // Code generated by the command above; see README.md. DO NOT EDIT. |
3 |
3 |
|
4 //go:build arm64 && darwin |
4 // +build arm64,darwin |
5 // +build arm64,darwin |
5 |
6 |
6 package unix |
7 package unix |
7 |
8 |
8 const ( |
9 const ( |
68 Nlink uint16 |
69 Nlink uint16 |
69 Ino uint64 |
70 Ino uint64 |
70 Uid uint32 |
71 Uid uint32 |
71 Gid uint32 |
72 Gid uint32 |
72 Rdev int32 |
73 Rdev int32 |
73 _ [4]byte |
|
74 Atim Timespec |
74 Atim Timespec |
75 Mtim Timespec |
75 Mtim Timespec |
76 Ctim Timespec |
76 Ctim Timespec |
77 Btim Timespec |
77 Btim Timespec |
78 Size int64 |
78 Size int64 |
95 Fsid Fsid |
95 Fsid Fsid |
96 Owner uint32 |
96 Owner uint32 |
97 Type uint32 |
97 Type uint32 |
98 Flags uint32 |
98 Flags uint32 |
99 Fssubtype uint32 |
99 Fssubtype uint32 |
100 Fstypename [16]int8 |
100 Fstypename [16]byte |
101 Mntonname [1024]int8 |
101 Mntonname [1024]byte |
102 Mntfromname [1024]int8 |
102 Mntfromname [1024]byte |
103 Reserved [8]uint32 |
103 Flags_ext uint32 |
|
104 Reserved [7]uint32 |
104 } |
105 } |
105 |
106 |
106 type Flock_t struct { |
107 type Flock_t struct { |
107 Start int64 |
108 Start int64 |
108 Len int64 |
109 Len int64 |
131 Buffer *byte |
132 Buffer *byte |
132 } |
133 } |
133 |
134 |
134 type Log2phys_t struct { |
135 type Log2phys_t struct { |
135 Flags uint32 |
136 Flags uint32 |
136 _ [8]byte |
137 _ [16]byte |
137 _ [8]byte |
|
138 } |
138 } |
139 |
139 |
140 type Fsid struct { |
140 type Fsid struct { |
141 Val [2]int32 |
141 Val [2]int32 |
142 } |
142 } |
148 Namlen uint16 |
148 Namlen uint16 |
149 Type uint8 |
149 Type uint8 |
150 Name [1024]int8 |
150 Name [1024]int8 |
151 _ [3]byte |
151 _ [3]byte |
152 } |
152 } |
|
153 |
|
154 const ( |
|
155 PathMax = 0x400 |
|
156 ) |
153 |
157 |
154 type RawSockaddrInet4 struct { |
158 type RawSockaddrInet4 struct { |
155 Len uint8 |
159 Len uint8 |
156 Family uint8 |
160 Family uint8 |
157 Port uint16 |
161 Port uint16 |
194 type RawSockaddrAny struct { |
198 type RawSockaddrAny struct { |
195 Addr RawSockaddr |
199 Addr RawSockaddr |
196 Pad [92]int8 |
200 Pad [92]int8 |
197 } |
201 } |
198 |
202 |
|
203 type RawSockaddrCtl struct { |
|
204 Sc_len uint8 |
|
205 Sc_family uint8 |
|
206 Ss_sysaddr uint16 |
|
207 Sc_id uint32 |
|
208 Sc_unit uint32 |
|
209 Sc_reserved [5]uint32 |
|
210 } |
|
211 |
199 type _Socklen uint32 |
212 type _Socklen uint32 |
|
213 |
|
214 type Xucred struct { |
|
215 Version uint32 |
|
216 Uid uint32 |
|
217 Ngroups int16 |
|
218 Groups [16]uint32 |
|
219 } |
200 |
220 |
201 type Linger struct { |
221 type Linger struct { |
202 Onoff int32 |
222 Onoff int32 |
203 Linger int32 |
223 Linger int32 |
204 } |
224 } |
211 type IPMreq struct { |
231 type IPMreq struct { |
212 Multiaddr [4]byte /* in_addr */ |
232 Multiaddr [4]byte /* in_addr */ |
213 Interface [4]byte /* in_addr */ |
233 Interface [4]byte /* in_addr */ |
214 } |
234 } |
215 |
235 |
|
236 type IPMreqn struct { |
|
237 Multiaddr [4]byte /* in_addr */ |
|
238 Address [4]byte /* in_addr */ |
|
239 Ifindex int32 |
|
240 } |
|
241 |
216 type IPv6Mreq struct { |
242 type IPv6Mreq struct { |
217 Multiaddr [16]byte /* in6_addr */ |
243 Multiaddr [16]byte /* in6_addr */ |
218 Interface uint32 |
244 Interface uint32 |
219 } |
245 } |
220 |
246 |
221 type Msghdr struct { |
247 type Msghdr struct { |
222 Name *byte |
248 Name *byte |
223 Namelen uint32 |
249 Namelen uint32 |
224 _ [4]byte |
|
225 Iov *Iovec |
250 Iov *Iovec |
226 Iovlen int32 |
251 Iovlen int32 |
227 _ [4]byte |
|
228 Control *byte |
252 Control *byte |
229 Controllen uint32 |
253 Controllen uint32 |
230 Flags int32 |
254 Flags int32 |
231 } |
255 } |
232 |
256 |
260 SizeofSockaddrInet4 = 0x10 |
284 SizeofSockaddrInet4 = 0x10 |
261 SizeofSockaddrInet6 = 0x1c |
285 SizeofSockaddrInet6 = 0x1c |
262 SizeofSockaddrAny = 0x6c |
286 SizeofSockaddrAny = 0x6c |
263 SizeofSockaddrUnix = 0x6a |
287 SizeofSockaddrUnix = 0x6a |
264 SizeofSockaddrDatalink = 0x14 |
288 SizeofSockaddrDatalink = 0x14 |
|
289 SizeofSockaddrCtl = 0x20 |
|
290 SizeofXucred = 0x4c |
265 SizeofLinger = 0x8 |
291 SizeofLinger = 0x8 |
|
292 SizeofIovec = 0x10 |
266 SizeofIPMreq = 0x8 |
293 SizeofIPMreq = 0x8 |
|
294 SizeofIPMreqn = 0xc |
267 SizeofIPv6Mreq = 0x14 |
295 SizeofIPv6Mreq = 0x14 |
268 SizeofMsghdr = 0x30 |
296 SizeofMsghdr = 0x30 |
269 SizeofCmsghdr = 0xc |
297 SizeofCmsghdr = 0xc |
270 SizeofInet4Pktinfo = 0xc |
298 SizeofInet4Pktinfo = 0xc |
271 SizeofInet6Pktinfo = 0x14 |
299 SizeofInet6Pktinfo = 0x14 |
307 Version uint8 |
335 Version uint8 |
308 Type uint8 |
336 Type uint8 |
309 Addrs int32 |
337 Addrs int32 |
310 Flags int32 |
338 Flags int32 |
311 Index uint16 |
339 Index uint16 |
312 _ [2]byte |
|
313 Data IfData |
340 Data IfData |
314 } |
341 } |
315 |
342 |
316 type IfData struct { |
343 type IfData struct { |
317 Type uint8 |
344 Type uint8 |
350 Version uint8 |
377 Version uint8 |
351 Type uint8 |
378 Type uint8 |
352 Addrs int32 |
379 Addrs int32 |
353 Flags int32 |
380 Flags int32 |
354 Index uint16 |
381 Index uint16 |
355 _ [2]byte |
|
356 Metric int32 |
382 Metric int32 |
357 } |
383 } |
358 |
384 |
359 type IfmaMsghdr struct { |
385 type IfmaMsghdr struct { |
360 Msglen uint16 |
386 Msglen uint16 |
371 Version uint8 |
397 Version uint8 |
372 Type uint8 |
398 Type uint8 |
373 Addrs int32 |
399 Addrs int32 |
374 Flags int32 |
400 Flags int32 |
375 Index uint16 |
401 Index uint16 |
376 _ [2]byte |
|
377 Refcount int32 |
402 Refcount int32 |
378 } |
403 } |
379 |
404 |
380 type RtMsghdr struct { |
405 type RtMsghdr struct { |
381 Msglen uint16 |
406 Msglen uint16 |
382 Version uint8 |
407 Version uint8 |
383 Type uint8 |
408 Type uint8 |
384 Index uint16 |
409 Index uint16 |
385 _ [2]byte |
|
386 Flags int32 |
410 Flags int32 |
387 Addrs int32 |
411 Addrs int32 |
388 Pid int32 |
412 Pid int32 |
389 Seq int32 |
413 Seq int32 |
390 Errno int32 |
414 Errno int32 |
402 Sendpipe uint32 |
426 Sendpipe uint32 |
403 Ssthresh uint32 |
427 Ssthresh uint32 |
404 Rtt uint32 |
428 Rtt uint32 |
405 Rttvar uint32 |
429 Rttvar uint32 |
406 Pksent uint32 |
430 Pksent uint32 |
407 Filler [4]uint32 |
431 State uint32 |
|
432 Filler [3]uint32 |
408 } |
433 } |
409 |
434 |
410 const ( |
435 const ( |
411 SizeofBpfVersion = 0x4 |
436 SizeofBpfVersion = 0x4 |
412 SizeofBpfStat = 0x8 |
437 SizeofBpfStat = 0x8 |
425 Drop uint32 |
450 Drop uint32 |
426 } |
451 } |
427 |
452 |
428 type BpfProgram struct { |
453 type BpfProgram struct { |
429 Len uint32 |
454 Len uint32 |
430 _ [4]byte |
|
431 Insns *BpfInsn |
455 Insns *BpfInsn |
432 } |
456 } |
433 |
457 |
434 type BpfInsn struct { |
458 type BpfInsn struct { |
435 Code uint16 |
459 Code uint16 |
450 Iflag uint64 |
474 Iflag uint64 |
451 Oflag uint64 |
475 Oflag uint64 |
452 Cflag uint64 |
476 Cflag uint64 |
453 Lflag uint64 |
477 Lflag uint64 |
454 Cc [20]uint8 |
478 Cc [20]uint8 |
455 _ [4]byte |
|
456 Ispeed uint64 |
479 Ispeed uint64 |
457 Ospeed uint64 |
480 Ospeed uint64 |
458 } |
481 } |
459 |
482 |
460 type Winsize struct { |
483 type Winsize struct { |
505 Tick int32 |
528 Tick int32 |
506 Tickadj int32 |
529 Tickadj int32 |
507 Stathz int32 |
530 Stathz int32 |
508 Profhz int32 |
531 Profhz int32 |
509 } |
532 } |
|
533 |
|
534 type CtlInfo struct { |
|
535 Id uint32 |
|
536 Name [96]byte |
|
537 } |
|
538 |
|
539 const SizeofKinfoProc = 0x288 |
|
540 |
|
541 type Eproc struct { |
|
542 Paddr uintptr |
|
543 Sess uintptr |
|
544 Pcred Pcred |
|
545 Ucred Ucred |
|
546 Vm Vmspace |
|
547 Ppid int32 |
|
548 Pgid int32 |
|
549 Jobc int16 |
|
550 Tdev int32 |
|
551 Tpgid int32 |
|
552 Tsess uintptr |
|
553 Wmesg [8]int8 |
|
554 Xsize int32 |
|
555 Xrssize int16 |
|
556 Xccount int16 |
|
557 Xswrss int16 |
|
558 Flag int32 |
|
559 Login [12]int8 |
|
560 Spare [4]int32 |
|
561 _ [4]byte |
|
562 } |
|
563 |
|
564 type ExternProc struct { |
|
565 P_starttime Timeval |
|
566 P_vmspace *Vmspace |
|
567 P_sigacts uintptr |
|
568 P_flag int32 |
|
569 P_stat int8 |
|
570 P_pid int32 |
|
571 P_oppid int32 |
|
572 P_dupfd int32 |
|
573 User_stack *int8 |
|
574 Exit_thread *byte |
|
575 P_debugger int32 |
|
576 Sigwait int32 |
|
577 P_estcpu uint32 |
|
578 P_cpticks int32 |
|
579 P_pctcpu uint32 |
|
580 P_wchan *byte |
|
581 P_wmesg *int8 |
|
582 P_swtime uint32 |
|
583 P_slptime uint32 |
|
584 P_realtimer Itimerval |
|
585 P_rtime Timeval |
|
586 P_uticks uint64 |
|
587 P_sticks uint64 |
|
588 P_iticks uint64 |
|
589 P_traceflag int32 |
|
590 P_tracep uintptr |
|
591 P_siglist int32 |
|
592 P_textvp uintptr |
|
593 P_holdcnt int32 |
|
594 P_sigmask uint32 |
|
595 P_sigignore uint32 |
|
596 P_sigcatch uint32 |
|
597 P_priority uint8 |
|
598 P_usrpri uint8 |
|
599 P_nice int8 |
|
600 P_comm [17]int8 |
|
601 P_pgrp uintptr |
|
602 P_addr uintptr |
|
603 P_xstat uint16 |
|
604 P_acflag uint16 |
|
605 P_ru *Rusage |
|
606 } |
|
607 |
|
608 type Itimerval struct { |
|
609 Interval Timeval |
|
610 Value Timeval |
|
611 } |
|
612 |
|
613 type KinfoProc struct { |
|
614 Proc ExternProc |
|
615 Eproc Eproc |
|
616 } |
|
617 |
|
618 type Vmspace struct { |
|
619 Dummy int32 |
|
620 Dummy2 *int8 |
|
621 Dummy3 [5]int32 |
|
622 Dummy4 [3]*int8 |
|
623 } |
|
624 |
|
625 type Pcred struct { |
|
626 Pc_lock [72]int8 |
|
627 Pc_ucred uintptr |
|
628 P_ruid uint32 |
|
629 P_svuid uint32 |
|
630 P_rgid uint32 |
|
631 P_svgid uint32 |
|
632 P_refcnt int32 |
|
633 _ [4]byte |
|
634 } |
|
635 |
|
636 type Ucred struct { |
|
637 Ref int32 |
|
638 Uid uint32 |
|
639 Ngroups int16 |
|
640 Groups [16]uint32 |
|
641 } |