vendor/golang.org/x/sys/unix/ztypes_openbsd_amd64.go
changeset 251 1c52a0eeb952
parent 242 2a9ec03fe5a1
child 256 6d9efbef00a9
equal deleted inserted replaced
250:c040f992052f 251:1c52a0eeb952
     4 // +build amd64,openbsd
     4 // +build amd64,openbsd
     5 
     5 
     6 package unix
     6 package unix
     7 
     7 
     8 const (
     8 const (
     9 	sizeofPtr      = 0x8
     9 	SizeofPtr      = 0x8
    10 	sizeofShort    = 0x2
    10 	SizeofShort    = 0x2
    11 	sizeofInt      = 0x4
    11 	SizeofInt      = 0x4
    12 	sizeofLong     = 0x8
    12 	SizeofLong     = 0x8
    13 	sizeofLongLong = 0x8
    13 	SizeofLongLong = 0x8
    14 )
    14 )
    15 
    15 
    16 type (
    16 type (
    17 	_C_short     int16
    17 	_C_short     int16
    18 	_C_int       int32
    18 	_C_int       int32
   434 	Ypixel uint16
   434 	Ypixel uint16
   435 }
   435 }
   436 
   436 
   437 const (
   437 const (
   438 	AT_FDCWD            = -0x64
   438 	AT_FDCWD            = -0x64
       
   439 	AT_SYMLINK_FOLLOW   = 0x4
   439 	AT_SYMLINK_NOFOLLOW = 0x2
   440 	AT_SYMLINK_NOFOLLOW = 0x2
   440 )
   441 )
   441 
   442 
   442 type PollFd struct {
   443 type PollFd struct {
   443 	Fd      int32
   444 	Fd      int32
   456 	POLLRDNORM = 0x40
   457 	POLLRDNORM = 0x40
   457 	POLLWRBAND = 0x100
   458 	POLLWRBAND = 0x100
   458 	POLLWRNORM = 0x4
   459 	POLLWRNORM = 0x4
   459 )
   460 )
   460 
   461 
       
   462 type Sigset_t uint32
       
   463 
   461 type Utsname struct {
   464 type Utsname struct {
   462 	Sysname  [256]byte
   465 	Sysname  [256]byte
   463 	Nodename [256]byte
   466 	Nodename [256]byte
   464 	Release  [256]byte
   467 	Release  [256]byte
   465 	Version  [256]byte
   468 	Version  [256]byte
   466 	Machine  [256]byte
   469 	Machine  [256]byte
   467 }
   470 }
       
   471 
       
   472 const SizeofUvmexp = 0x158
       
   473 
       
   474 type Uvmexp struct {
       
   475 	Pagesize           int32
       
   476 	Pagemask           int32
       
   477 	Pageshift          int32
       
   478 	Npages             int32
       
   479 	Free               int32
       
   480 	Active             int32
       
   481 	Inactive           int32
       
   482 	Paging             int32
       
   483 	Wired              int32
       
   484 	Zeropages          int32
       
   485 	Reserve_pagedaemon int32
       
   486 	Reserve_kernel     int32
       
   487 	Anonpages          int32
       
   488 	Vnodepages         int32
       
   489 	Vtextpages         int32
       
   490 	Freemin            int32
       
   491 	Freetarg           int32
       
   492 	Inactarg           int32
       
   493 	Wiredmax           int32
       
   494 	Anonmin            int32
       
   495 	Vtextmin           int32
       
   496 	Vnodemin           int32
       
   497 	Anonminpct         int32
       
   498 	Vtextminpct        int32
       
   499 	Vnodeminpct        int32
       
   500 	Nswapdev           int32
       
   501 	Swpages            int32
       
   502 	Swpginuse          int32
       
   503 	Swpgonly           int32
       
   504 	Nswget             int32
       
   505 	Nanon              int32
       
   506 	Nanonneeded        int32
       
   507 	Nfreeanon          int32
       
   508 	Faults             int32
       
   509 	Traps              int32
       
   510 	Intrs              int32
       
   511 	Swtch              int32
       
   512 	Softs              int32
       
   513 	Syscalls           int32
       
   514 	Pageins            int32
       
   515 	Obsolete_swapins   int32
       
   516 	Obsolete_swapouts  int32
       
   517 	Pgswapin           int32
       
   518 	Pgswapout          int32
       
   519 	Forks              int32
       
   520 	Forks_ppwait       int32
       
   521 	Forks_sharevm      int32
       
   522 	Pga_zerohit        int32
       
   523 	Pga_zeromiss       int32
       
   524 	Zeroaborts         int32
       
   525 	Fltnoram           int32
       
   526 	Fltnoanon          int32
       
   527 	Fltnoamap          int32
       
   528 	Fltpgwait          int32
       
   529 	Fltpgrele          int32
       
   530 	Fltrelck           int32
       
   531 	Fltrelckok         int32
       
   532 	Fltanget           int32
       
   533 	Fltanretry         int32
       
   534 	Fltamcopy          int32
       
   535 	Fltnamap           int32
       
   536 	Fltnomap           int32
       
   537 	Fltlget            int32
       
   538 	Fltget             int32
       
   539 	Flt_anon           int32
       
   540 	Flt_acow           int32
       
   541 	Flt_obj            int32
       
   542 	Flt_prcopy         int32
       
   543 	Flt_przero         int32
       
   544 	Pdwoke             int32
       
   545 	Pdrevs             int32
       
   546 	Pdswout            int32
       
   547 	Pdfreed            int32
       
   548 	Pdscans            int32
       
   549 	Pdanscan           int32
       
   550 	Pdobscan           int32
       
   551 	Pdreact            int32
       
   552 	Pdbusy             int32
       
   553 	Pdpageouts         int32
       
   554 	Pdpending          int32
       
   555 	Pddeact            int32
       
   556 	Pdreanon           int32
       
   557 	Pdrevnode          int32
       
   558 	Pdrevtext          int32
       
   559 	Fpswtch            int32
       
   560 	Kmapent            int32
       
   561 }
       
   562 
       
   563 const SizeofClockinfo = 0x14
       
   564 
       
   565 type Clockinfo struct {
       
   566 	Hz      int32
       
   567 	Tick    int32
       
   568 	Tickadj int32
       
   569 	Stathz  int32
       
   570 	Profhz  int32
       
   571 }