...

Source file src/syscall/ztypes_netbsd_amd64.go

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

View as plain text