equal
deleted
inserted
replaced
4 // +build amd64,netbsd |
4 // +build amd64,netbsd |
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 |
56 } |
56 } |
57 |
57 |
58 type _Gid_t uint32 |
58 type _Gid_t uint32 |
59 |
59 |
60 type Stat_t struct { |
60 type Stat_t struct { |
61 Dev uint64 |
61 Dev uint64 |
62 Mode uint32 |
62 Mode uint32 |
63 Pad_cgo_0 [4]byte |
63 _ [4]byte |
64 Ino uint64 |
64 Ino uint64 |
65 Nlink uint32 |
65 Nlink uint32 |
66 Uid uint32 |
66 Uid uint32 |
67 Gid uint32 |
67 Gid uint32 |
68 Pad_cgo_1 [4]byte |
68 _ [4]byte |
69 Rdev uint64 |
69 Rdev uint64 |
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 uint32 |
76 Blksize uint32 |
77 Flags uint32 |
77 Flags uint32 |
78 Gen uint32 |
78 Gen uint32 |
79 Spare [2]uint32 |
79 Spare [2]uint32 |
80 Pad_cgo_2 [4]byte |
80 _ [4]byte |
81 } |
81 } |
82 |
82 |
83 type Statfs_t [0]byte |
83 type Statfs_t [0]byte |
|
84 |
|
85 type Statvfs_t struct { |
|
86 Flag uint64 |
|
87 Bsize uint64 |
|
88 Frsize uint64 |
|
89 Iosize uint64 |
|
90 Blocks uint64 |
|
91 Bfree uint64 |
|
92 Bavail uint64 |
|
93 Bresvd uint64 |
|
94 Files uint64 |
|
95 Ffree uint64 |
|
96 Favail uint64 |
|
97 Fresvd uint64 |
|
98 Syncreads uint64 |
|
99 Syncwrites uint64 |
|
100 Asyncreads uint64 |
|
101 Asyncwrites uint64 |
|
102 Fsidx Fsid |
|
103 Fsid uint64 |
|
104 Namemax uint64 |
|
105 Owner uint32 |
|
106 Spare [4]uint32 |
|
107 Fstypename [32]byte |
|
108 Mntonname [1024]byte |
|
109 Mntfromname [1024]byte |
|
110 _ [4]byte |
|
111 } |
84 |
112 |
85 type Flock_t struct { |
113 type Flock_t struct { |
86 Start int64 |
114 Start int64 |
87 Len int64 |
115 Len int64 |
88 Pid int32 |
116 Pid int32 |
103 X__fsid_val [2]int32 |
131 X__fsid_val [2]int32 |
104 } |
132 } |
105 |
133 |
106 const ( |
134 const ( |
107 PathMax = 0x400 |
135 PathMax = 0x400 |
|
136 ) |
|
137 |
|
138 const ( |
|
139 ST_WAIT = 0x1 |
|
140 ST_NOWAIT = 0x2 |
108 ) |
141 ) |
109 |
142 |
110 const ( |
143 const ( |
111 FADV_NORMAL = 0x0 |
144 FADV_NORMAL = 0x0 |
112 FADV_RANDOM = 0x1 |
145 FADV_RANDOM = 0x1 |
407 Col uint16 |
440 Col uint16 |
408 Xpixel uint16 |
441 Xpixel uint16 |
409 Ypixel uint16 |
442 Ypixel uint16 |
410 } |
443 } |
411 |
444 |
|
445 type Ptmget struct { |
|
446 Cfd int32 |
|
447 Sfd int32 |
|
448 Cn [1024]byte |
|
449 Sn [1024]byte |
|
450 } |
|
451 |
412 const ( |
452 const ( |
413 AT_FDCWD = -0x64 |
453 AT_FDCWD = -0x64 |
|
454 AT_SYMLINK_FOLLOW = 0x400 |
414 AT_SYMLINK_NOFOLLOW = 0x200 |
455 AT_SYMLINK_NOFOLLOW = 0x200 |
415 ) |
456 ) |
416 |
457 |
417 type PollFd struct { |
458 type PollFd struct { |
418 Fd int32 |
459 Fd int32 |