equal
deleted
inserted
replaced
5 // +build arm,darwin |
5 // +build arm,darwin |
6 |
6 |
7 package unix |
7 package unix |
8 |
8 |
9 const ( |
9 const ( |
10 sizeofPtr = 0x4 |
10 SizeofPtr = 0x4 |
11 sizeofShort = 0x2 |
11 SizeofShort = 0x2 |
12 sizeofInt = 0x4 |
12 SizeofInt = 0x4 |
13 sizeofLong = 0x4 |
13 SizeofLong = 0x4 |
14 sizeofLongLong = 0x8 |
14 SizeofLongLong = 0x8 |
15 ) |
15 ) |
16 |
16 |
17 type ( |
17 type ( |
18 _C_short int16 |
18 _C_short int16 |
19 _C_int int32 |
19 _C_int int32 |
58 } |
58 } |
59 |
59 |
60 type _Gid_t uint32 |
60 type _Gid_t uint32 |
61 |
61 |
62 type Stat_t struct { |
62 type Stat_t struct { |
63 Dev int32 |
63 Dev int32 |
64 Mode uint16 |
64 Mode uint16 |
65 Nlink uint16 |
65 Nlink uint16 |
66 Ino uint64 |
66 Ino uint64 |
67 Uid uint32 |
67 Uid uint32 |
68 Gid uint32 |
68 Gid uint32 |
69 Rdev int32 |
69 Rdev int32 |
70 Atimespec Timespec |
70 Atim Timespec |
71 Mtimespec Timespec |
71 Mtim Timespec |
72 Ctimespec Timespec |
72 Ctim Timespec |
73 Birthtimespec Timespec |
73 Btim Timespec |
74 Size int64 |
74 Size int64 |
75 Blocks int64 |
75 Blocks int64 |
76 Blksize int32 |
76 Blksize int32 |
77 Flags uint32 |
77 Flags uint32 |
78 Gen uint32 |
78 Gen uint32 |
79 Lspare int32 |
79 Lspare int32 |
80 Qspare [2]int64 |
80 Qspare [2]int64 |
81 } |
81 } |
82 |
82 |
83 type Statfs_t struct { |
83 type Statfs_t struct { |
84 Bsize uint32 |
84 Bsize uint32 |
85 Iosize int32 |
85 Iosize int32 |
486 Nodename [256]byte |
486 Nodename [256]byte |
487 Release [256]byte |
487 Release [256]byte |
488 Version [256]byte |
488 Version [256]byte |
489 Machine [256]byte |
489 Machine [256]byte |
490 } |
490 } |
|
491 |
|
492 const SizeofClockinfo = 0x14 |
|
493 |
|
494 type Clockinfo struct { |
|
495 Hz int32 |
|
496 Tick int32 |
|
497 Tickadj int32 |
|
498 Stathz int32 |
|
499 Profhz int32 |
|
500 } |