vendor/golang.org/x/sys/unix/ztypes_netbsd_arm.go
changeset 251 1c52a0eeb952
parent 242 2a9ec03fe5a1
child 256 6d9efbef00a9
equal deleted inserted replaced
250:c040f992052f 251:1c52a0eeb952
     4 // +build arm,netbsd
     4 // +build arm,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
    57 }
    57 }
    58 
    58 
    59 type _Gid_t uint32
    59 type _Gid_t uint32
    60 
    60 
    61 type Stat_t struct {
    61 type Stat_t struct {
    62 	Dev           uint64
    62 	Dev     uint64
    63 	Mode          uint32
    63 	Mode    uint32
    64 	Pad_cgo_0     [4]byte
    64 	_       [4]byte
    65 	Ino           uint64
    65 	Ino     uint64
    66 	Nlink         uint32
    66 	Nlink   uint32
    67 	Uid           uint32
    67 	Uid     uint32
    68 	Gid           uint32
    68 	Gid     uint32
    69 	Pad_cgo_1     [4]byte
    69 	_       [4]byte
    70 	Rdev          uint64
    70 	Rdev    uint64
    71 	Atimespec     Timespec
    71 	Atim    Timespec
    72 	Mtimespec     Timespec
    72 	Mtim    Timespec
    73 	Ctimespec     Timespec
    73 	Ctim    Timespec
    74 	Birthtimespec Timespec
    74 	Btim    Timespec
    75 	Size          int64
    75 	Size    int64
    76 	Blocks        int64
    76 	Blocks  int64
    77 	Blksize       uint32
    77 	Blksize uint32
    78 	Flags         uint32
    78 	Flags   uint32
    79 	Gen           uint32
    79 	Gen     uint32
    80 	Spare         [2]uint32
    80 	Spare   [2]uint32
    81 	Pad_cgo_2     [4]byte
    81 	_       [4]byte
    82 }
    82 }
    83 
    83 
    84 type Statfs_t [0]byte
    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 }
    85 
   112 
    86 type Flock_t struct {
   113 type Flock_t struct {
    87 	Start  int64
   114 	Start  int64
    88 	Len    int64
   115 	Len    int64
    89 	Pid    int32
   116 	Pid    int32
   104 	X__fsid_val [2]int32
   131 	X__fsid_val [2]int32
   105 }
   132 }
   106 
   133 
   107 const (
   134 const (
   108 	PathMax = 0x400
   135 	PathMax = 0x400
       
   136 )
       
   137 
       
   138 const (
       
   139 	ST_WAIT   = 0x1
       
   140 	ST_NOWAIT = 0x2
   109 )
   141 )
   110 
   142 
   111 const (
   143 const (
   112 	FADV_NORMAL     = 0x0
   144 	FADV_NORMAL     = 0x0
   113 	FADV_RANDOM     = 0x1
   145 	FADV_RANDOM     = 0x1
   405 	Col    uint16
   437 	Col    uint16
   406 	Xpixel uint16
   438 	Xpixel uint16
   407 	Ypixel uint16
   439 	Ypixel uint16
   408 }
   440 }
   409 
   441 
       
   442 type Ptmget struct {
       
   443 	Cfd int32
       
   444 	Sfd int32
       
   445 	Cn  [1024]byte
       
   446 	Sn  [1024]byte
       
   447 }
       
   448 
   410 const (
   449 const (
   411 	AT_FDCWD            = -0x64
   450 	AT_FDCWD            = -0x64
       
   451 	AT_SYMLINK_FOLLOW   = 0x400
   412 	AT_SYMLINK_NOFOLLOW = 0x200
   452 	AT_SYMLINK_NOFOLLOW = 0x200
   413 )
   453 )
   414 
   454 
   415 type PollFd struct {
   455 type PollFd struct {
   416 	Fd      int32
   456 	Fd      int32