github.com/shijuvar/go@v0.0.0-20141209052335-e8f13700b70c/src/syscall/ztypes_netbsd_arm.go (about)

     1  // Created by cgo -godefs - DO NOT EDIT
     2  // cgo -godefs types_netbsd.go
     3  
     4  package syscall
     5  
     6  const (
     7  	sizeofPtr      = 0x4
     8  	sizeofShort    = 0x2
     9  	sizeofInt      = 0x4
    10  	sizeofLong     = 0x4
    11  	sizeofLongLong = 0x8
    12  )
    13  
    14  type (
    15  	_C_short     int16
    16  	_C_int       int32
    17  	_C_long      int32
    18  	_C_long_long int64
    19  )
    20  
    21  type Timespec struct {
    22  	Sec       int64
    23  	Nsec      int32
    24  	Pad_cgo_0 [4]byte
    25  }
    26  
    27  type Timeval struct {
    28  	Sec       int64
    29  	Usec      int32
    30  	Pad_cgo_0 [4]byte
    31  }
    32  
    33  type Rusage struct {
    34  	Utime    Timeval
    35  	Stime    Timeval
    36  	Maxrss   int32
    37  	Ixrss    int32
    38  	Idrss    int32
    39  	Isrss    int32
    40  	Minflt   int32
    41  	Majflt   int32
    42  	Nswap    int32
    43  	Inblock  int32
    44  	Oublock  int32
    45  	Msgsnd   int32
    46  	Msgrcv   int32
    47  	Nsignals int32
    48  	Nvcsw    int32
    49  	Nivcsw   int32
    50  }
    51  
    52  type Rlimit struct {
    53  	Cur uint64
    54  	Max uint64
    55  }
    56  
    57  type _Gid_t uint32
    58  
    59  type Stat_t struct {
    60  	Dev           uint64
    61  	Mode          uint32
    62  	Pad_cgo_0     [4]byte
    63  	Ino           uint64
    64  	Nlink         uint32
    65  	Uid           uint32
    66  	Gid           uint32
    67  	Pad_cgo_1     [4]byte
    68  	Rdev          uint64
    69  	Atimespec     Timespec
    70  	Mtimespec     Timespec
    71  	Ctimespec     Timespec
    72  	Birthtimespec Timespec
    73  	Size          int64
    74  	Blocks        int64
    75  	Blksize       uint32
    76  	Flags         uint32
    77  	Gen           uint32
    78  	Spare         [2]uint32
    79  	Pad_cgo_2     [4]byte
    80  }
    81  
    82  type Statfs_t [0]byte
    83  
    84  type Flock_t struct {
    85  	Start  int64
    86  	Len    int64
    87  	Pid    int32
    88  	Type   int16
    89  	Whence int16
    90  }
    91  
    92  type Dirent struct {
    93  	Fileno    uint64
    94  	Reclen    uint16
    95  	Namlen    uint16
    96  	Type      uint8
    97  	Name      [512]int8
    98  	Pad_cgo_0 [3]byte
    99  }
   100  
   101  type Fsid struct {
   102  	X__fsid_val [2]int32
   103  }
   104  
   105  type RawSockaddrInet4 struct {
   106  	Len    uint8
   107  	Family uint8
   108  	Port   uint16
   109  	Addr   [4]byte /* in_addr */
   110  	Zero   [8]int8
   111  }
   112  
   113  type RawSockaddrInet6 struct {
   114  	Len      uint8
   115  	Family   uint8
   116  	Port     uint16
   117  	Flowinfo uint32
   118  	Addr     [16]byte /* in6_addr */
   119  	Scope_id uint32
   120  }
   121  
   122  type RawSockaddrUnix struct {
   123  	Len    uint8
   124  	Family uint8
   125  	Path   [104]int8
   126  }
   127  
   128  type RawSockaddrDatalink struct {
   129  	Len    uint8
   130  	Family uint8
   131  	Index  uint16
   132  	Type   uint8
   133  	Nlen   uint8
   134  	Alen   uint8
   135  	Slen   uint8
   136  	Data   [12]int8
   137  }
   138  
   139  type RawSockaddr struct {
   140  	Len    uint8
   141  	Family uint8
   142  	Data   [14]int8
   143  }
   144  
   145  type RawSockaddrAny struct {
   146  	Addr RawSockaddr
   147  	Pad  [92]int8
   148  }
   149  
   150  type _Socklen uint32
   151  
   152  type Linger struct {
   153  	Onoff  int32
   154  	Linger int32
   155  }
   156  
   157  type Iovec struct {
   158  	Base *byte
   159  	Len  uint32
   160  }
   161  
   162  type IPMreq struct {
   163  	Multiaddr [4]byte /* in_addr */
   164  	Interface [4]byte /* in_addr */
   165  }
   166  
   167  type IPv6Mreq struct {
   168  	Multiaddr [16]byte /* in6_addr */
   169  	Interface uint32
   170  }
   171  
   172  type Msghdr struct {
   173  	Name       *byte
   174  	Namelen    uint32
   175  	Iov        *Iovec
   176  	Iovlen     int32
   177  	Control    *byte
   178  	Controllen uint32
   179  	Flags      int32
   180  }
   181  
   182  type Cmsghdr struct {
   183  	Len   uint32
   184  	Level int32
   185  	Type  int32
   186  }
   187  
   188  type Inet6Pktinfo struct {
   189  	Addr    [16]byte /* in6_addr */
   190  	Ifindex uint32
   191  }
   192  
   193  type IPv6MTUInfo struct {
   194  	Addr RawSockaddrInet6
   195  	Mtu  uint32
   196  }
   197  
   198  type ICMPv6Filter struct {
   199  	Filt [8]uint32
   200  }
   201  
   202  const (
   203  	SizeofSockaddrInet4    = 0x10
   204  	SizeofSockaddrInet6    = 0x1c
   205  	SizeofSockaddrAny      = 0x6c
   206  	SizeofSockaddrUnix     = 0x6a
   207  	SizeofSockaddrDatalink = 0x14
   208  	SizeofLinger           = 0x8
   209  	SizeofIPMreq           = 0x8
   210  	SizeofIPv6Mreq         = 0x14
   211  	SizeofMsghdr           = 0x1c
   212  	SizeofCmsghdr          = 0xc
   213  	SizeofInet6Pktinfo     = 0x14
   214  	SizeofIPv6MTUInfo      = 0x20
   215  	SizeofICMPv6Filter     = 0x20
   216  )
   217  
   218  const (
   219  	PTRACE_TRACEME = 0x0
   220  	PTRACE_CONT    = 0x7
   221  	PTRACE_KILL    = 0x8
   222  )
   223  
   224  type Kevent_t struct {
   225  	Ident     uint32
   226  	Filter    uint32
   227  	Flags     uint32
   228  	Fflags    uint32
   229  	Data      int64
   230  	Udata     int32
   231  	Pad_cgo_0 [4]byte
   232  }
   233  
   234  type FdSet struct {
   235  	Bits [8]uint32
   236  }
   237  
   238  const (
   239  	SizeofIfMsghdr         = 0x98
   240  	SizeofIfData           = 0x88
   241  	SizeofIfaMsghdr        = 0x18
   242  	SizeofIfAnnounceMsghdr = 0x18
   243  	SizeofRtMsghdr         = 0x78
   244  	SizeofRtMetrics        = 0x50
   245  )
   246  
   247  type IfMsghdr struct {
   248  	Msglen    uint16
   249  	Version   uint8
   250  	Type      uint8
   251  	Addrs     int32
   252  	Flags     int32
   253  	Index     uint16
   254  	Pad_cgo_0 [2]byte
   255  	Data      IfData
   256  }
   257  
   258  type IfData struct {
   259  	Type       uint8
   260  	Addrlen    uint8
   261  	Hdrlen     uint8
   262  	Pad_cgo_0  [1]byte
   263  	Link_state int32
   264  	Mtu        uint64
   265  	Metric     uint64
   266  	Baudrate   uint64
   267  	Ipackets   uint64
   268  	Ierrors    uint64
   269  	Opackets   uint64
   270  	Oerrors    uint64
   271  	Collisions uint64
   272  	Ibytes     uint64
   273  	Obytes     uint64
   274  	Imcasts    uint64
   275  	Omcasts    uint64
   276  	Iqdrops    uint64
   277  	Noproto    uint64
   278  	Lastchange Timespec
   279  }
   280  
   281  type IfaMsghdr struct {
   282  	Msglen    uint16
   283  	Version   uint8
   284  	Type      uint8
   285  	Addrs     int32
   286  	Flags     int32
   287  	Metric    int32
   288  	Index     uint16
   289  	Pad_cgo_0 [6]byte
   290  }
   291  
   292  type IfAnnounceMsghdr struct {
   293  	Msglen  uint16
   294  	Version uint8
   295  	Type    uint8
   296  	Index   uint16
   297  	Name    [16]int8
   298  	What    uint16
   299  }
   300  
   301  type RtMsghdr struct {
   302  	Msglen    uint16
   303  	Version   uint8
   304  	Type      uint8
   305  	Index     uint16
   306  	Pad_cgo_0 [2]byte
   307  	Flags     int32
   308  	Addrs     int32
   309  	Pid       int32
   310  	Seq       int32
   311  	Errno     int32
   312  	Use       int32
   313  	Inits     int32
   314  	Pad_cgo_1 [4]byte
   315  	Rmx       RtMetrics
   316  }
   317  
   318  type RtMetrics struct {
   319  	Locks    uint64
   320  	Mtu      uint64
   321  	Hopcount uint64
   322  	Recvpipe uint64
   323  	Sendpipe uint64
   324  	Ssthresh uint64
   325  	Rtt      uint64
   326  	Rttvar   uint64
   327  	Expire   int64
   328  	Pksent   int64
   329  }
   330  
   331  type Mclpool [0]byte
   332  
   333  const (
   334  	SizeofBpfVersion = 0x4
   335  	SizeofBpfStat    = 0x80
   336  	SizeofBpfProgram = 0x8
   337  	SizeofBpfInsn    = 0x8
   338  	SizeofBpfHdr     = 0x14
   339  )
   340  
   341  type BpfVersion struct {
   342  	Major uint16
   343  	Minor uint16
   344  }
   345  
   346  type BpfStat struct {
   347  	Recv    uint64
   348  	Drop    uint64
   349  	Capt    uint64
   350  	Padding [13]uint64
   351  }
   352  
   353  type BpfProgram struct {
   354  	Len   uint32
   355  	Insns *BpfInsn
   356  }
   357  
   358  type BpfInsn struct {
   359  	Code uint16
   360  	Jt   uint8
   361  	Jf   uint8
   362  	K    uint32
   363  }
   364  
   365  type BpfHdr struct {
   366  	Tstamp    BpfTimeval
   367  	Caplen    uint32
   368  	Datalen   uint32
   369  	Hdrlen    uint16
   370  	Pad_cgo_0 [2]byte
   371  }
   372  
   373  type BpfTimeval struct {
   374  	Sec  int32
   375  	Usec int32
   376  }
   377  
   378  type Termios struct {
   379  	Iflag  uint32
   380  	Oflag  uint32
   381  	Cflag  uint32
   382  	Lflag  uint32
   383  	Cc     [20]uint8
   384  	Ispeed int32
   385  	Ospeed int32
   386  }
   387  
   388  type Sysctlnode struct {
   389  	Flags           uint32
   390  	Num             int32
   391  	Name            [32]int8
   392  	Ver             uint32
   393  	X__rsvd         uint32
   394  	Un              [16]byte
   395  	X_sysctl_size   [8]byte
   396  	X_sysctl_func   [8]byte
   397  	X_sysctl_parent [8]byte
   398  	X_sysctl_desc   [8]byte
   399  }