github.com/xingly-cn/shorturl-go@v0.0.0-20220110130535-e21de4659f74/pkg/mod/golang.org/x/sys@v0.0.0-20200323222414-85ca7c5b95cd/unix/ztypes_netbsd_arm.go (about) 1 // cgo -godefs types_netbsd.go | go run mkpost.go 2 // Code generated by the command above; see README.md. DO NOT EDIT. 3 4 // +build arm,netbsd 5 6 package unix 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 Pad_cgo_0 [4]byte 27 } 28 29 type Timeval struct { 30 Sec int64 31 Usec int32 32 Pad_cgo_0 [4]byte 33 } 34 35 type Rusage struct { 36 Utime Timeval 37 Stime Timeval 38 Maxrss int32 39 Ixrss int32 40 Idrss int32 41 Isrss int32 42 Minflt int32 43 Majflt int32 44 Nswap int32 45 Inblock int32 46 Oublock int32 47 Msgsnd int32 48 Msgrcv int32 49 Nsignals int32 50 Nvcsw int32 51 Nivcsw int32 52 } 53 54 type Rlimit struct { 55 Cur uint64 56 Max uint64 57 } 58 59 type _Gid_t uint32 60 61 type Stat_t struct { 62 Dev uint64 63 Mode uint32 64 _ [4]byte 65 Ino uint64 66 Nlink uint32 67 Uid uint32 68 Gid uint32 69 _ [4]byte 70 Rdev uint64 71 Atim Timespec 72 Mtim Timespec 73 Ctim Timespec 74 Btim Timespec 75 Size int64 76 Blocks int64 77 Blksize uint32 78 Flags uint32 79 Gen uint32 80 Spare [2]uint32 81 _ [4]byte 82 } 83 84 type Statfs_t [0]byte 85 86 type Statvfs_t struct { 87 Flag uint32 88 Bsize uint32 89 Frsize uint32 90 Iosize uint32 91 Blocks uint64 92 Bfree uint64 93 Bavail uint64 94 Bresvd uint64 95 Files uint64 96 Ffree uint64 97 Favail uint64 98 Fresvd uint64 99 Syncreads uint64 100 Syncwrites uint64 101 Asyncreads uint64 102 Asyncwrites uint64 103 Fsidx Fsid 104 Fsid uint32 105 Namemax uint32 106 Owner uint32 107 Spare [4]uint32 108 Fstypename [32]byte 109 Mntonname [1024]byte 110 Mntfromname [1024]byte 111 } 112 113 type Flock_t struct { 114 Start int64 115 Len int64 116 Pid int32 117 Type int16 118 Whence int16 119 } 120 121 type Dirent struct { 122 Fileno uint64 123 Reclen uint16 124 Namlen uint16 125 Type uint8 126 Name [512]int8 127 Pad_cgo_0 [3]byte 128 } 129 130 type Fsid struct { 131 X__fsid_val [2]int32 132 } 133 134 const ( 135 PathMax = 0x400 136 ) 137 138 const ( 139 ST_WAIT = 0x1 140 ST_NOWAIT = 0x2 141 ) 142 143 const ( 144 FADV_NORMAL = 0x0 145 FADV_RANDOM = 0x1 146 FADV_SEQUENTIAL = 0x2 147 FADV_WILLNEED = 0x3 148 FADV_DONTNEED = 0x4 149 FADV_NOREUSE = 0x5 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 [12]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 uint32 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 Iov *Iovec 223 Iovlen int32 224 Control *byte 225 Controllen uint32 226 Flags int32 227 } 228 229 type Cmsghdr struct { 230 Len uint32 231 Level int32 232 Type int32 233 } 234 235 type Inet6Pktinfo struct { 236 Addr [16]byte /* in6_addr */ 237 Ifindex uint32 238 } 239 240 type IPv6MTUInfo struct { 241 Addr RawSockaddrInet6 242 Mtu uint32 243 } 244 245 type ICMPv6Filter struct { 246 Filt [8]uint32 247 } 248 249 const ( 250 SizeofSockaddrInet4 = 0x10 251 SizeofSockaddrInet6 = 0x1c 252 SizeofSockaddrAny = 0x6c 253 SizeofSockaddrUnix = 0x6a 254 SizeofSockaddrDatalink = 0x14 255 SizeofLinger = 0x8 256 SizeofIPMreq = 0x8 257 SizeofIPv6Mreq = 0x14 258 SizeofMsghdr = 0x1c 259 SizeofCmsghdr = 0xc 260 SizeofInet6Pktinfo = 0x14 261 SizeofIPv6MTUInfo = 0x20 262 SizeofICMPv6Filter = 0x20 263 ) 264 265 const ( 266 PTRACE_TRACEME = 0x0 267 PTRACE_CONT = 0x7 268 PTRACE_KILL = 0x8 269 ) 270 271 type Kevent_t struct { 272 Ident uint32 273 Filter uint32 274 Flags uint32 275 Fflags uint32 276 Data int64 277 Udata int32 278 Pad_cgo_0 [4]byte 279 } 280 281 type FdSet struct { 282 Bits [8]uint32 283 } 284 285 const ( 286 SizeofIfMsghdr = 0x98 287 SizeofIfData = 0x88 288 SizeofIfaMsghdr = 0x18 289 SizeofIfAnnounceMsghdr = 0x18 290 SizeofRtMsghdr = 0x78 291 SizeofRtMetrics = 0x50 292 ) 293 294 type IfMsghdr struct { 295 Msglen uint16 296 Version uint8 297 Type uint8 298 Addrs int32 299 Flags int32 300 Index uint16 301 Pad_cgo_0 [2]byte 302 Data IfData 303 } 304 305 type IfData struct { 306 Type uint8 307 Addrlen uint8 308 Hdrlen uint8 309 Pad_cgo_0 [1]byte 310 Link_state int32 311 Mtu uint64 312 Metric uint64 313 Baudrate uint64 314 Ipackets uint64 315 Ierrors uint64 316 Opackets uint64 317 Oerrors uint64 318 Collisions uint64 319 Ibytes uint64 320 Obytes uint64 321 Imcasts uint64 322 Omcasts uint64 323 Iqdrops uint64 324 Noproto uint64 325 Lastchange Timespec 326 } 327 328 type IfaMsghdr struct { 329 Msglen uint16 330 Version uint8 331 Type uint8 332 Addrs int32 333 Flags int32 334 Metric int32 335 Index uint16 336 Pad_cgo_0 [6]byte 337 } 338 339 type IfAnnounceMsghdr struct { 340 Msglen uint16 341 Version uint8 342 Type uint8 343 Index uint16 344 Name [16]int8 345 What uint16 346 } 347 348 type RtMsghdr struct { 349 Msglen uint16 350 Version uint8 351 Type uint8 352 Index uint16 353 Pad_cgo_0 [2]byte 354 Flags int32 355 Addrs int32 356 Pid int32 357 Seq int32 358 Errno int32 359 Use int32 360 Inits int32 361 Pad_cgo_1 [4]byte 362 Rmx RtMetrics 363 } 364 365 type RtMetrics struct { 366 Locks uint64 367 Mtu uint64 368 Hopcount uint64 369 Recvpipe uint64 370 Sendpipe uint64 371 Ssthresh uint64 372 Rtt uint64 373 Rttvar uint64 374 Expire int64 375 Pksent int64 376 } 377 378 type Mclpool [0]byte 379 380 const ( 381 SizeofBpfVersion = 0x4 382 SizeofBpfStat = 0x80 383 SizeofBpfProgram = 0x8 384 SizeofBpfInsn = 0x8 385 SizeofBpfHdr = 0x14 386 ) 387 388 type BpfVersion struct { 389 Major uint16 390 Minor uint16 391 } 392 393 type BpfStat struct { 394 Recv uint64 395 Drop uint64 396 Capt uint64 397 Padding [13]uint64 398 } 399 400 type BpfProgram struct { 401 Len uint32 402 Insns *BpfInsn 403 } 404 405 type BpfInsn struct { 406 Code uint16 407 Jt uint8 408 Jf uint8 409 K uint32 410 } 411 412 type BpfHdr struct { 413 Tstamp BpfTimeval 414 Caplen uint32 415 Datalen uint32 416 Hdrlen uint16 417 Pad_cgo_0 [2]byte 418 } 419 420 type BpfTimeval struct { 421 Sec int32 422 Usec int32 423 } 424 425 type Termios struct { 426 Iflag uint32 427 Oflag uint32 428 Cflag uint32 429 Lflag uint32 430 Cc [20]uint8 431 Ispeed int32 432 Ospeed int32 433 } 434 435 type Winsize struct { 436 Row uint16 437 Col uint16 438 Xpixel uint16 439 Ypixel uint16 440 } 441 442 type Ptmget struct { 443 Cfd int32 444 Sfd int32 445 Cn [1024]byte 446 Sn [1024]byte 447 } 448 449 const ( 450 AT_FDCWD = -0x64 451 AT_SYMLINK_FOLLOW = 0x400 452 AT_SYMLINK_NOFOLLOW = 0x200 453 ) 454 455 type PollFd struct { 456 Fd int32 457 Events int16 458 Revents int16 459 } 460 461 const ( 462 POLLERR = 0x8 463 POLLHUP = 0x10 464 POLLIN = 0x1 465 POLLNVAL = 0x20 466 POLLOUT = 0x4 467 POLLPRI = 0x2 468 POLLRDBAND = 0x80 469 POLLRDNORM = 0x40 470 POLLWRBAND = 0x100 471 POLLWRNORM = 0x4 472 ) 473 474 type Sysctlnode struct { 475 Flags uint32 476 Num int32 477 Name [32]int8 478 Ver uint32 479 X__rsvd uint32 480 Un [16]byte 481 X_sysctl_size [8]byte 482 X_sysctl_func [8]byte 483 X_sysctl_parent [8]byte 484 X_sysctl_desc [8]byte 485 } 486 487 type Utsname struct { 488 Sysname [256]byte 489 Nodename [256]byte 490 Release [256]byte 491 Version [256]byte 492 Machine [256]byte 493 } 494 495 const SizeofClockinfo = 0x14 496 497 type Clockinfo struct { 498 Hz int32 499 Tick int32 500 Tickadj int32 501 Stathz int32 502 Profhz int32 503 }