equal
deleted
inserted
replaced
28 |
28 |
29 type Timeval struct { |
29 type Timeval struct { |
30 Sec int64 |
30 Sec int64 |
31 Usec int64 |
31 Usec int64 |
32 } |
32 } |
|
33 |
|
34 type Time_t int64 |
33 |
35 |
34 type Rusage struct { |
36 type Rusage struct { |
35 Utime Timeval |
37 Utime Timeval |
36 Stime Timeval |
38 Stime Timeval |
37 Maxrss int64 |
39 Maxrss int64 |
80 Blocks int64 |
82 Blocks int64 |
81 Blksize int32 |
83 Blksize int32 |
82 Flags uint32 |
84 Flags uint32 |
83 Gen uint64 |
85 Gen uint64 |
84 Spare [10]uint64 |
86 Spare [10]uint64 |
85 } |
|
86 |
|
87 type stat_freebsd11_t struct { |
|
88 Dev uint32 |
|
89 Ino uint32 |
|
90 Mode uint16 |
|
91 Nlink uint16 |
|
92 Uid uint32 |
|
93 Gid uint32 |
|
94 Rdev uint32 |
|
95 Atim Timespec |
|
96 Mtim Timespec |
|
97 Ctim Timespec |
|
98 Size int64 |
|
99 Blocks int64 |
|
100 Blksize int32 |
|
101 Flags uint32 |
|
102 Gen uint32 |
|
103 Lspare int32 |
|
104 Btim Timespec |
|
105 } |
87 } |
106 |
88 |
107 type Statfs_t struct { |
89 type Statfs_t struct { |
108 Version uint32 |
90 Version uint32 |
109 Type uint32 |
91 Type uint32 |
127 Fstypename [16]byte |
109 Fstypename [16]byte |
128 Mntfromname [1024]byte |
110 Mntfromname [1024]byte |
129 Mntonname [1024]byte |
111 Mntonname [1024]byte |
130 } |
112 } |
131 |
113 |
132 type statfs_freebsd11_t struct { |
|
133 Version uint32 |
|
134 Type uint32 |
|
135 Flags uint64 |
|
136 Bsize uint64 |
|
137 Iosize uint64 |
|
138 Blocks uint64 |
|
139 Bfree uint64 |
|
140 Bavail int64 |
|
141 Files uint64 |
|
142 Ffree int64 |
|
143 Syncwrites uint64 |
|
144 Asyncwrites uint64 |
|
145 Syncreads uint64 |
|
146 Asyncreads uint64 |
|
147 Spare [10]uint64 |
|
148 Namemax uint32 |
|
149 Owner uint32 |
|
150 Fsid Fsid |
|
151 Charspare [80]int8 |
|
152 Fstypename [16]byte |
|
153 Mntfromname [88]byte |
|
154 Mntonname [88]byte |
|
155 } |
|
156 |
|
157 type Flock_t struct { |
114 type Flock_t struct { |
158 Start int64 |
115 Start int64 |
159 Len int64 |
116 Len int64 |
160 Pid int32 |
117 Pid int32 |
161 Type int16 |
118 Type int16 |
170 Reclen uint16 |
127 Reclen uint16 |
171 Type uint8 |
128 Type uint8 |
172 Pad0 uint8 |
129 Pad0 uint8 |
173 Namlen uint16 |
130 Namlen uint16 |
174 Pad1 uint16 |
131 Pad1 uint16 |
175 Name [256]int8 |
|
176 } |
|
177 |
|
178 type dirent_freebsd11 struct { |
|
179 Fileno uint32 |
|
180 Reclen uint16 |
|
181 Type uint8 |
|
182 Namlen uint8 |
|
183 Name [256]int8 |
132 Name [256]int8 |
184 } |
133 } |
185 |
134 |
186 type Fsid struct { |
135 type Fsid struct { |
187 Val [2]int32 |
136 Val [2]int32 |
329 SizeofIPv6MTUInfo = 0x20 |
278 SizeofIPv6MTUInfo = 0x20 |
330 SizeofICMPv6Filter = 0x20 |
279 SizeofICMPv6Filter = 0x20 |
331 ) |
280 ) |
332 |
281 |
333 const ( |
282 const ( |
334 PTRACE_ATTACH = 0xa |
283 PTRACE_TRACEME = 0x0 |
335 PTRACE_CONT = 0x7 |
284 PTRACE_CONT = 0x7 |
336 PTRACE_DETACH = 0xb |
285 PTRACE_KILL = 0x8 |
337 PTRACE_GETFPREGS = 0x23 |
|
338 PTRACE_GETLWPLIST = 0xf |
|
339 PTRACE_GETNUMLWPS = 0xe |
|
340 PTRACE_GETREGS = 0x21 |
|
341 PTRACE_IO = 0xc |
|
342 PTRACE_KILL = 0x8 |
|
343 PTRACE_LWPEVENTS = 0x18 |
|
344 PTRACE_LWPINFO = 0xd |
|
345 PTRACE_SETFPREGS = 0x24 |
|
346 PTRACE_SETREGS = 0x22 |
|
347 PTRACE_SINGLESTEP = 0x9 |
|
348 PTRACE_TRACEME = 0x0 |
|
349 ) |
|
350 |
|
351 const ( |
|
352 PIOD_READ_D = 0x1 |
|
353 PIOD_WRITE_D = 0x2 |
|
354 PIOD_READ_I = 0x3 |
|
355 PIOD_WRITE_I = 0x4 |
|
356 ) |
|
357 |
|
358 const ( |
|
359 PL_FLAG_BORN = 0x100 |
|
360 PL_FLAG_EXITED = 0x200 |
|
361 PL_FLAG_SI = 0x20 |
|
362 ) |
|
363 |
|
364 const ( |
|
365 TRAP_BRKPT = 0x1 |
|
366 TRAP_TRACE = 0x2 |
|
367 ) |
286 ) |
368 |
287 |
369 type PtraceLwpInfoStruct struct { |
288 type PtraceLwpInfoStruct struct { |
370 Lwpid int32 |
289 Lwpid int32 |
371 Event int32 |
290 Event int32 |
409 Sr uint32 |
328 Sr uint32 |
410 Cr uint32 |
329 Cr uint32 |
411 _ [8]byte |
330 _ [8]byte |
412 } |
331 } |
413 |
332 |
|
333 type FpExtendedPrecision struct{} |
|
334 |
414 type PtraceIoDesc struct { |
335 type PtraceIoDesc struct { |
415 Op int32 |
336 Op int32 |
416 Offs *byte |
337 Offs *byte |
417 Addr *byte |
338 Addr *byte |
418 Len uint64 |
339 Len uint64 |
423 Filter int16 |
344 Filter int16 |
424 Flags uint16 |
345 Flags uint16 |
425 Fflags uint32 |
346 Fflags uint32 |
426 Data int64 |
347 Data int64 |
427 Udata *byte |
348 Udata *byte |
|
349 Ext [4]uint64 |
428 } |
350 } |
429 |
351 |
430 type FdSet struct { |
352 type FdSet struct { |
431 Bits [16]uint64 |
353 Bits [16]uint64 |
432 } |
354 } |