equal
deleted
inserted
replaced
4 // +build ppc,aix |
4 // +build ppc,aix |
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 PathMax = 0x3ff |
14 PathMax = 0x3ff |
15 ) |
15 ) |
16 |
16 |
17 type ( |
17 type ( |
18 _C_short int16 |
18 _C_short int16 |
24 type off64 int64 |
24 type off64 int64 |
25 type off int32 |
25 type off int32 |
26 type Mode_t uint32 |
26 type Mode_t uint32 |
27 |
27 |
28 type Timespec struct { |
28 type Timespec struct { |
29 Sec int32 |
|
30 Nsec int32 |
|
31 } |
|
32 |
|
33 type StTimespec struct { |
|
34 Sec int32 |
29 Sec int32 |
35 Nsec int32 |
30 Nsec int32 |
36 } |
31 } |
37 |
32 |
38 type Timeval struct { |
33 type Timeval struct { |
99 Flag uint16 |
94 Flag uint16 |
100 Uid uint32 |
95 Uid uint32 |
101 Gid uint32 |
96 Gid uint32 |
102 Rdev uint32 |
97 Rdev uint32 |
103 Size int32 |
98 Size int32 |
104 Atim StTimespec |
99 Atim Timespec |
105 Mtim StTimespec |
100 Mtim Timespec |
106 Ctim StTimespec |
101 Ctim Timespec |
107 Blksize int32 |
102 Blksize int32 |
108 Blocks int32 |
103 Blocks int32 |
109 Vfstype int32 |
104 Vfstype int32 |
110 Vfs uint32 |
105 Vfs uint32 |
111 Type uint32 |
106 Type uint32 |
144 |
139 |
145 type RawSockaddrUnix struct { |
140 type RawSockaddrUnix struct { |
146 Len uint8 |
141 Len uint8 |
147 Family uint8 |
142 Family uint8 |
148 Path [1023]uint8 |
143 Path [1023]uint8 |
|
144 } |
|
145 |
|
146 type RawSockaddrDatalink struct { |
|
147 Len uint8 |
|
148 Family uint8 |
|
149 Index uint16 |
|
150 Type uint8 |
|
151 Nlen uint8 |
|
152 Alen uint8 |
|
153 Slen uint8 |
|
154 Data [120]uint8 |
149 } |
155 } |
150 |
156 |
151 type RawSockaddr struct { |
157 type RawSockaddr struct { |
152 Len uint8 |
158 Len uint8 |
153 Family uint8 |
159 Family uint8 |
205 Controllen uint32 |
211 Controllen uint32 |
206 Flags int32 |
212 Flags int32 |
207 } |
213 } |
208 |
214 |
209 const ( |
215 const ( |
210 SizeofSockaddrInet4 = 0x10 |
216 SizeofSockaddrInet4 = 0x10 |
211 SizeofSockaddrInet6 = 0x1c |
217 SizeofSockaddrInet6 = 0x1c |
212 SizeofSockaddrAny = 0x404 |
218 SizeofSockaddrAny = 0x404 |
213 SizeofSockaddrUnix = 0x401 |
219 SizeofSockaddrUnix = 0x401 |
214 SizeofLinger = 0x8 |
220 SizeofSockaddrDatalink = 0x80 |
215 SizeofIPMreq = 0x8 |
221 SizeofLinger = 0x8 |
216 SizeofIPv6Mreq = 0x14 |
222 SizeofIPMreq = 0x8 |
217 SizeofIPv6MTUInfo = 0x20 |
223 SizeofIPv6Mreq = 0x14 |
218 SizeofMsghdr = 0x1c |
224 SizeofIPv6MTUInfo = 0x20 |
219 SizeofCmsghdr = 0xc |
225 SizeofMsghdr = 0x1c |
220 SizeofICMPv6Filter = 0x20 |
226 SizeofCmsghdr = 0xc |
|
227 SizeofICMPv6Filter = 0x20 |
221 ) |
228 ) |
222 |
229 |
223 const ( |
230 const ( |
224 SizeofIfMsghdr = 0x10 |
231 SizeofIfMsghdr = 0x10 |
225 ) |
232 ) |