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_GETFSBASE = 0x47 |
|
339 PTRACE_GETLWPLIST = 0xf |
|
340 PTRACE_GETNUMLWPS = 0xe |
|
341 PTRACE_GETREGS = 0x21 |
|
342 PTRACE_GETXSTATE = 0x45 |
|
343 PTRACE_IO = 0xc |
|
344 PTRACE_KILL = 0x8 |
|
345 PTRACE_LWPEVENTS = 0x18 |
|
346 PTRACE_LWPINFO = 0xd |
|
347 PTRACE_SETFPREGS = 0x24 |
|
348 PTRACE_SETREGS = 0x22 |
|
349 PTRACE_SINGLESTEP = 0x9 |
|
350 PTRACE_TRACEME = 0x0 |
|
351 ) |
|
352 |
|
353 const ( |
|
354 PIOD_READ_D = 0x1 |
|
355 PIOD_WRITE_D = 0x2 |
|
356 PIOD_READ_I = 0x3 |
|
357 PIOD_WRITE_I = 0x4 |
|
358 ) |
|
359 |
|
360 const ( |
|
361 PL_FLAG_BORN = 0x100 |
|
362 PL_FLAG_EXITED = 0x200 |
|
363 PL_FLAG_SI = 0x20 |
|
364 ) |
|
365 |
|
366 const ( |
|
367 TRAP_BRKPT = 0x1 |
|
368 TRAP_TRACE = 0x2 |
|
369 ) |
286 ) |
370 |
287 |
371 type PtraceLwpInfoStruct struct { |
288 type PtraceLwpInfoStruct struct { |
372 Lwpid int32 |
289 Lwpid int32 |
373 Event int32 |
290 Event int32 |
431 Acc [8][16]uint8 |
348 Acc [8][16]uint8 |
432 Xacc [16][16]uint8 |
349 Xacc [16][16]uint8 |
433 Spare [12]uint64 |
350 Spare [12]uint64 |
434 } |
351 } |
435 |
352 |
|
353 type FpExtendedPrecision struct{} |
|
354 |
436 type PtraceIoDesc struct { |
355 type PtraceIoDesc struct { |
437 Op int32 |
356 Op int32 |
438 Offs *byte |
357 Offs *byte |
439 Addr *byte |
358 Addr *byte |
440 Len uint64 |
359 Len uint64 |
445 Filter int16 |
364 Filter int16 |
446 Flags uint16 |
365 Flags uint16 |
447 Fflags uint32 |
366 Fflags uint32 |
448 Data int64 |
367 Data int64 |
449 Udata *byte |
368 Udata *byte |
|
369 Ext [4]uint64 |
450 } |
370 } |
451 |
371 |
452 type FdSet struct { |
372 type FdSet struct { |
453 Bits [16]uint64 |
373 Bits [16]uint64 |
454 } |
374 } |