...

Source file src/pkg/syscall/ztypes_netbsd_386.go

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

View as plain text