vendor/golang.org/x/sys/unix/ztypes_netbsd_386.go
changeset 251 1c52a0eeb952
parent 242 2a9ec03fe5a1
child 256 6d9efbef00a9
equal deleted inserted replaced
250:c040f992052f 251:1c52a0eeb952
     4 // +build 386,netbsd
     4 // +build 386,netbsd
     5 
     5 
     6 package unix
     6 package unix
     7 
     7 
     8 const (
     8 const (
     9 	sizeofPtr      = 0x4
     9 	SizeofPtr      = 0x4
    10 	sizeofShort    = 0x2
    10 	SizeofShort    = 0x2
    11 	sizeofInt      = 0x4
    11 	SizeofInt      = 0x4
    12 	sizeofLong     = 0x4
    12 	SizeofLong     = 0x4
    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
    55 }
    55 }
    56 
    56 
    57 type _Gid_t uint32
    57 type _Gid_t uint32
    58 
    58 
    59 type Stat_t struct {
    59 type Stat_t struct {
    60 	Dev           uint64
    60 	Dev     uint64
    61 	Mode          uint32
    61 	Mode    uint32
    62 	Ino           uint64
    62 	Ino     uint64
    63 	Nlink         uint32
    63 	Nlink   uint32
    64 	Uid           uint32
    64 	Uid     uint32
    65 	Gid           uint32
    65 	Gid     uint32
    66 	Rdev          uint64
    66 	Rdev    uint64
    67 	Atimespec     Timespec
    67 	Atim    Timespec
    68 	Mtimespec     Timespec
    68 	Mtim    Timespec
    69 	Ctimespec     Timespec
    69 	Ctim    Timespec
    70 	Birthtimespec Timespec
    70 	Btim    Timespec
    71 	Size          int64
    71 	Size    int64
    72 	Blocks        int64
    72 	Blocks  int64
    73 	Blksize       uint32
    73 	Blksize uint32
    74 	Flags         uint32
    74 	Flags   uint32
    75 	Gen           uint32
    75 	Gen     uint32
    76 	Spare         [2]uint32
    76 	Spare   [2]uint32
    77 }
    77 }
    78 
    78 
    79 type Statfs_t [0]byte
    79 type Statfs_t [0]byte
       
    80 
       
    81 type Statvfs_t struct {
       
    82 	Flag        uint32
       
    83 	Bsize       uint32
       
    84 	Frsize      uint32
       
    85 	Iosize      uint32
       
    86 	Blocks      uint64
       
    87 	Bfree       uint64
       
    88 	Bavail      uint64
       
    89 	Bresvd      uint64
       
    90 	Files       uint64
       
    91 	Ffree       uint64
       
    92 	Favail      uint64
       
    93 	Fresvd      uint64
       
    94 	Syncreads   uint64
       
    95 	Syncwrites  uint64
       
    96 	Asyncreads  uint64
       
    97 	Asyncwrites uint64
       
    98 	Fsidx       Fsid
       
    99 	Fsid        uint32
       
   100 	Namemax     uint32
       
   101 	Owner       uint32
       
   102 	Spare       [4]uint32
       
   103 	Fstypename  [32]byte
       
   104 	Mntonname   [1024]byte
       
   105 	Mntfromname [1024]byte
       
   106 }
    80 
   107 
    81 type Flock_t struct {
   108 type Flock_t struct {
    82 	Start  int64
   109 	Start  int64
    83 	Len    int64
   110 	Len    int64
    84 	Pid    int32
   111 	Pid    int32
    99 	X__fsid_val [2]int32
   126 	X__fsid_val [2]int32
   100 }
   127 }
   101 
   128 
   102 const (
   129 const (
   103 	PathMax = 0x400
   130 	PathMax = 0x400
       
   131 )
       
   132 
       
   133 const (
       
   134 	ST_WAIT   = 0x1
       
   135 	ST_NOWAIT = 0x2
   104 )
   136 )
   105 
   137 
   106 const (
   138 const (
   107 	FADV_NORMAL     = 0x0
   139 	FADV_NORMAL     = 0x0
   108 	FADV_RANDOM     = 0x1
   140 	FADV_RANDOM     = 0x1
   400 	Col    uint16
   432 	Col    uint16
   401 	Xpixel uint16
   433 	Xpixel uint16
   402 	Ypixel uint16
   434 	Ypixel uint16
   403 }
   435 }
   404 
   436 
       
   437 type Ptmget struct {
       
   438 	Cfd int32
       
   439 	Sfd int32
       
   440 	Cn  [1024]byte
       
   441 	Sn  [1024]byte
       
   442 }
       
   443 
   405 const (
   444 const (
   406 	AT_FDCWD            = -0x64
   445 	AT_FDCWD            = -0x64
       
   446 	AT_SYMLINK_FOLLOW   = 0x400
   407 	AT_SYMLINK_NOFOLLOW = 0x200
   447 	AT_SYMLINK_NOFOLLOW = 0x200
   408 )
   448 )
   409 
   449 
   410 type PollFd struct {
   450 type PollFd struct {
   411 	Fd      int32
   451 	Fd      int32