github.com/shogo82148/std@v1.22.1-0.20240327122250-4e474527810c/syscall/types_netbsd.go (about)

     1  // Copyright 2009 The Go Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  //go:build ignore
     6  
     7  /*
     8  Input to cgo -godefs.  See also mkerrors.sh and mkall.sh
     9  */
    10  
    11  // +godefs map struct_in_addr [4]byte /* in_addr */
    12  // +godefs map struct_in6_addr [16]byte /* in6_addr */
    13  
    14  package syscall
    15  
    16  import "C"
    17  
    18  type Timespec C.struct_timespec
    19  
    20  type Timeval C.struct_timeval
    21  
    22  type Rusage C.struct_rusage
    23  
    24  type Rlimit C.struct_rlimit
    25  
    26  type Stat_t C.struct_stat
    27  
    28  type Statfs_t C.struct_statfs
    29  
    30  type Flock_t C.struct_flock
    31  
    32  type Dirent C.struct_dirent
    33  
    34  type Fsid C.fsid_t
    35  
    36  type RawSockaddrInet4 C.struct_sockaddr_in
    37  
    38  type RawSockaddrInet6 C.struct_sockaddr_in6
    39  
    40  type RawSockaddrUnix C.struct_sockaddr_un
    41  
    42  type RawSockaddrDatalink C.struct_sockaddr_dl
    43  
    44  type RawSockaddr C.struct_sockaddr
    45  
    46  type RawSockaddrAny C.struct_sockaddr_any
    47  
    48  type Linger C.struct_linger
    49  
    50  type Iovec C.struct_iovec
    51  
    52  type IPMreq C.struct_ip_mreq
    53  
    54  type IPv6Mreq C.struct_ipv6_mreq
    55  
    56  type Msghdr C.struct_msghdr
    57  
    58  type Cmsghdr C.struct_cmsghdr
    59  
    60  type Inet6Pktinfo C.struct_in6_pktinfo
    61  
    62  type IPv6MTUInfo C.struct_ip6_mtuinfo
    63  
    64  type ICMPv6Filter C.struct_icmp6_filter
    65  
    66  const (
    67  	SizeofSockaddrInet4    = C.sizeof_struct_sockaddr_in
    68  	SizeofSockaddrInet6    = C.sizeof_struct_sockaddr_in6
    69  	SizeofSockaddrAny      = C.sizeof_struct_sockaddr_any
    70  	SizeofSockaddrUnix     = C.sizeof_struct_sockaddr_un
    71  	SizeofSockaddrDatalink = C.sizeof_struct_sockaddr_dl
    72  	SizeofLinger           = C.sizeof_struct_linger
    73  	SizeofIPMreq           = C.sizeof_struct_ip_mreq
    74  	SizeofIPv6Mreq         = C.sizeof_struct_ipv6_mreq
    75  	SizeofMsghdr           = C.sizeof_struct_msghdr
    76  	SizeofCmsghdr          = C.sizeof_struct_cmsghdr
    77  	SizeofInet6Pktinfo     = C.sizeof_struct_in6_pktinfo
    78  	SizeofIPv6MTUInfo      = C.sizeof_struct_ip6_mtuinfo
    79  	SizeofICMPv6Filter     = C.sizeof_struct_icmp6_filter
    80  )
    81  
    82  const (
    83  	PTRACE_TRACEME = C.PT_TRACE_ME
    84  	PTRACE_CONT    = C.PT_CONTINUE
    85  	PTRACE_KILL    = C.PT_KILL
    86  )
    87  
    88  type Kevent_t C.struct_kevent
    89  
    90  type FdSet C.fd_set
    91  
    92  const (
    93  	SizeofIfMsghdr         = C.sizeof_struct_if_msghdr
    94  	SizeofIfData           = C.sizeof_struct_if_data
    95  	SizeofIfaMsghdr        = C.sizeof_struct_ifa_msghdr
    96  	SizeofIfAnnounceMsghdr = C.sizeof_struct_if_announcemsghdr
    97  	SizeofRtMsghdr         = C.sizeof_struct_rt_msghdr
    98  	SizeofRtMetrics        = C.sizeof_struct_rt_metrics
    99  )
   100  
   101  type IfMsghdr C.struct_if_msghdr
   102  
   103  type IfData C.struct_if_data
   104  
   105  type IfaMsghdr C.struct_ifa_msghdr
   106  
   107  type IfAnnounceMsghdr C.struct_if_announcemsghdr
   108  
   109  type RtMsghdr C.struct_rt_msghdr
   110  
   111  type RtMetrics C.struct_rt_metrics
   112  
   113  type Mclpool C.struct_mclpool
   114  
   115  const (
   116  	SizeofBpfVersion = C.sizeof_struct_bpf_version
   117  	SizeofBpfStat    = C.sizeof_struct_bpf_stat
   118  	SizeofBpfProgram = C.sizeof_struct_bpf_program
   119  	SizeofBpfInsn    = C.sizeof_struct_bpf_insn
   120  	SizeofBpfHdr     = C.sizeof_struct_bpf_hdr
   121  )
   122  
   123  type BpfVersion C.struct_bpf_version
   124  
   125  type BpfStat C.struct_bpf_stat
   126  
   127  type BpfProgram C.struct_bpf_program
   128  
   129  type BpfInsn C.struct_bpf_insn
   130  
   131  type BpfHdr C.struct_bpf_hdr
   132  
   133  type BpfTimeval C.struct_bpf_timeval
   134  
   135  type Termios C.struct_termios
   136  
   137  type Sysctlnode C.struct_sysctlnode