...

Source file src/syscall/ztypes_openbsd_amd64.go

Documentation: syscall

		 1  // Created by cgo -godefs - DO NOT EDIT
		 2  // cgo -godefs types_openbsd.go
		 3  
		 4  //go:build amd64 && openbsd
		 5  // +build amd64,openbsd
		 6  
		 7  package syscall
		 8  
		 9  const (
		10  	sizeofPtr			= 0x8
		11  	sizeofShort		= 0x2
		12  	sizeofInt			= 0x4
		13  	sizeofLong		 = 0x8
		14  	sizeofLongLong = 0x8
		15  )
		16  
		17  type (
		18  	_C_short		 int16
		19  	_C_int			 int32
		20  	_C_long			int64
		21  	_C_long_long int64
		22  )
		23  
		24  type Timespec struct {
		25  	Sec	int64
		26  	Nsec int64
		27  }
		28  
		29  type Timeval struct {
		30  	Sec	int64
		31  	Usec int64
		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  const (
		61  	S_IFMT	 = 0xf000
		62  	S_IFIFO	= 0x1000
		63  	S_IFCHR	= 0x2000
		64  	S_IFDIR	= 0x4000
		65  	S_IFBLK	= 0x6000
		66  	S_IFREG	= 0x8000
		67  	S_IFLNK	= 0xa000
		68  	S_IFSOCK = 0xc000
		69  	S_ISUID	= 0x800
		70  	S_ISGID	= 0x400
		71  	S_ISVTX	= 0x200
		72  	S_IRUSR	= 0x100
		73  	S_IWUSR	= 0x80
		74  	S_IXUSR	= 0x40
		75  	S_IRWXG	= 0x38
		76  	S_IRWXO	= 0x7
		77  )
		78  
		79  type Stat_t struct {
		80  	Mode					 uint32
		81  	Dev						int32
		82  	Ino						uint64
		83  	Nlink					uint32
		84  	Uid						uint32
		85  	Gid						uint32
		86  	Rdev					 int32
		87  	Atim					 Timespec
		88  	Mtim					 Timespec
		89  	Ctim					 Timespec
		90  	Size					 int64
		91  	Blocks				 int64
		92  	Blksize				uint32
		93  	Flags					uint32
		94  	Gen						uint32
		95  	Pad_cgo_0			[4]byte
		96  	X__st_birthtim Timespec
		97  }
		98  
		99  type Statfs_t struct {
	 100  	F_flags			 uint32
	 101  	F_bsize			 uint32
	 102  	F_iosize			uint32
	 103  	Pad_cgo_0		 [4]byte
	 104  	F_blocks			uint64
	 105  	F_bfree			 uint64
	 106  	F_bavail			int64
	 107  	F_files			 uint64
	 108  	F_ffree			 uint64
	 109  	F_favail			int64
	 110  	F_syncwrites	uint64
	 111  	F_syncreads	 uint64
	 112  	F_asyncwrites uint64
	 113  	F_asyncreads	uint64
	 114  	F_fsid				Fsid
	 115  	F_namemax		 uint32
	 116  	F_owner			 uint32
	 117  	F_ctime			 uint64
	 118  	F_fstypename	[16]int8
	 119  	F_mntonname	 [90]int8
	 120  	F_mntfromname [90]int8
	 121  	F_mntfromspec [90]int8
	 122  	Pad_cgo_1		 [2]byte
	 123  	Mount_info		[160]byte
	 124  }
	 125  
	 126  type Flock_t struct {
	 127  	Start	int64
	 128  	Len		int64
	 129  	Pid		int32
	 130  	Type	 int16
	 131  	Whence int16
	 132  }
	 133  
	 134  type Dirent struct {
	 135  	Fileno			 uint64
	 136  	Off					int64
	 137  	Reclen			 uint16
	 138  	Type				 uint8
	 139  	Namlen			 uint8
	 140  	X__d_padding [4]uint8
	 141  	Name				 [256]int8
	 142  }
	 143  
	 144  type Fsid struct {
	 145  	Val [2]int32
	 146  }
	 147  
	 148  const (
	 149  	pathMax = 0x400
	 150  )
	 151  
	 152  type RawSockaddrInet4 struct {
	 153  	Len		uint8
	 154  	Family uint8
	 155  	Port	 uint16
	 156  	Addr	 [4]byte /* in_addr */
	 157  	Zero	 [8]int8
	 158  }
	 159  
	 160  type RawSockaddrInet6 struct {
	 161  	Len			uint8
	 162  	Family	 uint8
	 163  	Port		 uint16
	 164  	Flowinfo uint32
	 165  	Addr		 [16]byte /* in6_addr */
	 166  	Scope_id uint32
	 167  }
	 168  
	 169  type RawSockaddrUnix struct {
	 170  	Len		uint8
	 171  	Family uint8
	 172  	Path	 [104]int8
	 173  }
	 174  
	 175  type RawSockaddrDatalink struct {
	 176  	Len		uint8
	 177  	Family uint8
	 178  	Index	uint16
	 179  	Type	 uint8
	 180  	Nlen	 uint8
	 181  	Alen	 uint8
	 182  	Slen	 uint8
	 183  	Data	 [24]int8
	 184  }
	 185  
	 186  type RawSockaddr struct {
	 187  	Len		uint8
	 188  	Family uint8
	 189  	Data	 [14]int8
	 190  }
	 191  
	 192  type RawSockaddrAny struct {
	 193  	Addr RawSockaddr
	 194  	Pad	[92]int8
	 195  }
	 196  
	 197  type _Socklen uint32
	 198  
	 199  type Linger struct {
	 200  	Onoff	int32
	 201  	Linger int32
	 202  }
	 203  
	 204  type Iovec struct {
	 205  	Base *byte
	 206  	Len	uint64
	 207  }
	 208  
	 209  type IPMreq struct {
	 210  	Multiaddr [4]byte /* in_addr */
	 211  	Interface [4]byte /* in_addr */
	 212  }
	 213  
	 214  type IPv6Mreq struct {
	 215  	Multiaddr [16]byte /* in6_addr */
	 216  	Interface uint32
	 217  }
	 218  
	 219  type Msghdr struct {
	 220  	Name			 *byte
	 221  	Namelen		uint32
	 222  	Pad_cgo_0	[4]byte
	 223  	Iov				*Iovec
	 224  	Iovlen		 uint32
	 225  	Pad_cgo_1	[4]byte
	 226  	Control		*byte
	 227  	Controllen uint32
	 228  	Flags			int32
	 229  }
	 230  
	 231  type Cmsghdr struct {
	 232  	Len	 uint32
	 233  	Level int32
	 234  	Type	int32
	 235  }
	 236  
	 237  type Inet6Pktinfo struct {
	 238  	Addr		[16]byte /* in6_addr */
	 239  	Ifindex uint32
	 240  }
	 241  
	 242  type IPv6MTUInfo struct {
	 243  	Addr RawSockaddrInet6
	 244  	Mtu	uint32
	 245  }
	 246  
	 247  type ICMPv6Filter struct {
	 248  	Filt [8]uint32
	 249  }
	 250  
	 251  const (
	 252  	SizeofSockaddrInet4		= 0x10
	 253  	SizeofSockaddrInet6		= 0x1c
	 254  	SizeofSockaddrAny			= 0x6c
	 255  	SizeofSockaddrUnix		 = 0x6a
	 256  	SizeofSockaddrDatalink = 0x20
	 257  	SizeofLinger					 = 0x8
	 258  	SizeofIPMreq					 = 0x8
	 259  	SizeofIPv6Mreq				 = 0x14
	 260  	SizeofMsghdr					 = 0x30
	 261  	SizeofCmsghdr					= 0xc
	 262  	SizeofInet6Pktinfo		 = 0x14
	 263  	SizeofIPv6MTUInfo			= 0x20
	 264  	SizeofICMPv6Filter		 = 0x20
	 265  )
	 266  
	 267  const (
	 268  	PTRACE_TRACEME = 0x0
	 269  	PTRACE_CONT		= 0x7
	 270  	PTRACE_KILL		= 0x8
	 271  )
	 272  
	 273  type Kevent_t struct {
	 274  	Ident	uint64
	 275  	Filter int16
	 276  	Flags	uint16
	 277  	Fflags uint32
	 278  	Data	 int64
	 279  	Udata	*byte
	 280  }
	 281  
	 282  type FdSet struct {
	 283  	Bits [32]uint32
	 284  }
	 285  
	 286  const (
	 287  	SizeofIfMsghdr				 = 0xf8
	 288  	SizeofIfData					 = 0xe0
	 289  	SizeofIfaMsghdr				= 0x18
	 290  	SizeofIfAnnounceMsghdr = 0x1a
	 291  	SizeofRtMsghdr				 = 0x60
	 292  	SizeofRtMetrics				= 0x38
	 293  )
	 294  
	 295  type IfMsghdr struct {
	 296  	Msglen	uint16
	 297  	Version uint8
	 298  	Type		uint8
	 299  	Hdrlen	uint16
	 300  	Index	 uint16
	 301  	Tableid uint16
	 302  	Pad1		uint8
	 303  	Pad2		uint8
	 304  	Addrs	 int32
	 305  	Flags	 int32
	 306  	Xflags	int32
	 307  	Data		IfData
	 308  }
	 309  
	 310  type IfData struct {
	 311  	Type				 uint8
	 312  	Addrlen			uint8
	 313  	Hdrlen			 uint8
	 314  	Link_state	 uint8
	 315  	Mtu					uint32
	 316  	Metric			 uint32
	 317  	Pad					uint32
	 318  	Baudrate		 uint64
	 319  	Ipackets		 uint64
	 320  	Ierrors			uint64
	 321  	Opackets		 uint64
	 322  	Oerrors			uint64
	 323  	Collisions	 uint64
	 324  	Ibytes			 uint64
	 325  	Obytes			 uint64
	 326  	Imcasts			uint64
	 327  	Omcasts			uint64
	 328  	Iqdrops			uint64
	 329  	Noproto			uint64
	 330  	Capabilities uint32
	 331  	Pad_cgo_0		[4]byte
	 332  	Lastchange	 Timeval
	 333  	Mclpool			[7]Mclpool
	 334  	Pad_cgo_1		[4]byte
	 335  }
	 336  
	 337  type IfaMsghdr struct {
	 338  	Msglen	uint16
	 339  	Version uint8
	 340  	Type		uint8
	 341  	Hdrlen	uint16
	 342  	Index	 uint16
	 343  	Tableid uint16
	 344  	Pad1		uint8
	 345  	Pad2		uint8
	 346  	Addrs	 int32
	 347  	Flags	 int32
	 348  	Metric	int32
	 349  }
	 350  
	 351  type IfAnnounceMsghdr struct {
	 352  	Msglen	uint16
	 353  	Version uint8
	 354  	Type		uint8
	 355  	Hdrlen	uint16
	 356  	Index	 uint16
	 357  	What		uint16
	 358  	Name		[16]int8
	 359  }
	 360  
	 361  type RtMsghdr struct {
	 362  	Msglen	 uint16
	 363  	Version	uint8
	 364  	Type		 uint8
	 365  	Hdrlen	 uint16
	 366  	Index		uint16
	 367  	Tableid	uint16
	 368  	Priority uint8
	 369  	Mpls		 uint8
	 370  	Addrs		int32
	 371  	Flags		int32
	 372  	Fmask		int32
	 373  	Pid			int32
	 374  	Seq			int32
	 375  	Errno		int32
	 376  	Inits		uint32
	 377  	Rmx			RtMetrics
	 378  }
	 379  
	 380  type RtMetrics struct {
	 381  	Pksent	 uint64
	 382  	Expire	 int64
	 383  	Locks		uint32
	 384  	Mtu			uint32
	 385  	Refcnt	 uint32
	 386  	Hopcount uint32
	 387  	Recvpipe uint32
	 388  	Sendpipe uint32
	 389  	Ssthresh uint32
	 390  	Rtt			uint32
	 391  	Rttvar	 uint32
	 392  	Pad			uint32
	 393  }
	 394  
	 395  type Mclpool struct {
	 396  	Grown int32
	 397  	Alive uint16
	 398  	Hwm	 uint16
	 399  	Cwm	 uint16
	 400  	Lwm	 uint16
	 401  }
	 402  
	 403  const (
	 404  	SizeofBpfVersion = 0x4
	 405  	SizeofBpfStat		= 0x8
	 406  	SizeofBpfProgram = 0x10
	 407  	SizeofBpfInsn		= 0x8
	 408  	SizeofBpfHdr		 = 0x14
	 409  )
	 410  
	 411  type BpfVersion struct {
	 412  	Major uint16
	 413  	Minor uint16
	 414  }
	 415  
	 416  type BpfStat struct {
	 417  	Recv uint32
	 418  	Drop uint32
	 419  }
	 420  
	 421  type BpfProgram struct {
	 422  	Len			 uint32
	 423  	Pad_cgo_0 [4]byte
	 424  	Insns		 *BpfInsn
	 425  }
	 426  
	 427  type BpfInsn struct {
	 428  	Code uint16
	 429  	Jt	 uint8
	 430  	Jf	 uint8
	 431  	K		uint32
	 432  }
	 433  
	 434  type BpfHdr struct {
	 435  	Tstamp		BpfTimeval
	 436  	Caplen		uint32
	 437  	Datalen	 uint32
	 438  	Hdrlen		uint16
	 439  	Pad_cgo_0 [2]byte
	 440  }
	 441  
	 442  type BpfTimeval struct {
	 443  	Sec	uint32
	 444  	Usec uint32
	 445  }
	 446  
	 447  const (
	 448  	_AT_FDCWD = -0x64
	 449  )
	 450  
	 451  type Termios struct {
	 452  	Iflag	uint32
	 453  	Oflag	uint32
	 454  	Cflag	uint32
	 455  	Lflag	uint32
	 456  	Cc		 [20]uint8
	 457  	Ispeed int32
	 458  	Ospeed int32
	 459  }
	 460  

View as plain text