equal
deleted
inserted
replaced
4 // +build amd64,dragonfly |
4 // +build amd64,dragonfly |
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 |
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 Ino uint64 |
60 Ino uint64 |
61 Nlink uint32 |
61 Nlink uint32 |
62 Dev uint32 |
62 Dev uint32 |
63 Mode uint16 |
63 Mode uint16 |
64 Padding1 uint16 |
64 _1 uint16 |
65 Uid uint32 |
65 Uid uint32 |
66 Gid uint32 |
66 Gid uint32 |
67 Rdev uint32 |
67 Rdev uint32 |
68 Atim Timespec |
68 Atim Timespec |
69 Mtim Timespec |
69 Mtim Timespec |
70 Ctim Timespec |
70 Ctim 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 Lspare int32 |
76 Lspare int32 |
77 Qspare1 int64 |
77 Qspare1 int64 |
78 Qspare2 int64 |
78 Qspare2 int64 |
79 } |
79 } |
80 |
80 |
81 type Statfs_t struct { |
81 type Statfs_t struct { |
82 Spare2 int64 |
82 Spare2 int64 |
83 Bsize int64 |
83 Bsize int64 |
465 Nodename [32]byte |
465 Nodename [32]byte |
466 Release [32]byte |
466 Release [32]byte |
467 Version [32]byte |
467 Version [32]byte |
468 Machine [32]byte |
468 Machine [32]byte |
469 } |
469 } |
|
470 |
|
471 const SizeofClockinfo = 0x14 |
|
472 |
|
473 type Clockinfo struct { |
|
474 Hz int32 |
|
475 Tick int32 |
|
476 Tickadj int32 |
|
477 Stathz int32 |
|
478 Profhz int32 |
|
479 } |