vendor/golang.org/x/sys/unix/ztypes_darwin_386.go
changeset 251 1c52a0eeb952
parent 242 2a9ec03fe5a1
equal deleted inserted replaced
250:c040f992052f 251:1c52a0eeb952
     4 // +build 386,darwin
     4 // +build 386,darwin
     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           int32
    62 	Dev     int32
    63 	Mode          uint16
    63 	Mode    uint16
    64 	Nlink         uint16
    64 	Nlink   uint16
    65 	Ino           uint64
    65 	Ino     uint64
    66 	Uid           uint32
    66 	Uid     uint32
    67 	Gid           uint32
    67 	Gid     uint32
    68 	Rdev          int32
    68 	Rdev    int32
    69 	Atimespec     Timespec
    69 	Atim    Timespec
    70 	Mtimespec     Timespec
    70 	Mtim    Timespec
    71 	Ctimespec     Timespec
    71 	Ctim    Timespec
    72 	Birthtimespec Timespec
    72 	Btim    Timespec
    73 	Size          int64
    73 	Size    int64
    74 	Blocks        int64
    74 	Blocks  int64
    75 	Blksize       int32
    75 	Blksize int32
    76 	Flags         uint32
    76 	Flags   uint32
    77 	Gen           uint32
    77 	Gen     uint32
    78 	Lspare        int32
    78 	Lspare  int32
    79 	Qspare        [2]int64
    79 	Qspare  [2]int64
    80 }
    80 }
    81 
    81 
    82 type Statfs_t struct {
    82 type Statfs_t struct {
    83 	Bsize       uint32
    83 	Bsize       uint32
    84 	Iosize      int32
    84 	Iosize      int32
   485 	Nodename [256]byte
   485 	Nodename [256]byte
   486 	Release  [256]byte
   486 	Release  [256]byte
   487 	Version  [256]byte
   487 	Version  [256]byte
   488 	Machine  [256]byte
   488 	Machine  [256]byte
   489 }
   489 }
       
   490 
       
   491 const SizeofClockinfo = 0x14
       
   492 
       
   493 type Clockinfo struct {
       
   494 	Hz      int32
       
   495 	Tick    int32
       
   496 	Tickadj int32
       
   497 	Stathz  int32
       
   498 	Profhz  int32
       
   499 }