Commit 27d6dc6
committed
libutil: Improve kinfo_getproc(3) example and cross-references
Enhance the kinfo_getproc(3) manual page example:
- Make example work without arguments by defaulting to current process
when no PID is specified
- Make memory output consistent by displaying all values in KB instead
of mixing bytes and KB
- Add compilation instructions showing that -lutil is required
Improve struct documentation:
- Add comment about ki_structsize and KINFO_PROC_SIZE macro for
determining actual structure size
- Direct readers to <sys/user.h> for full structure definition
- Move ellipsis inside comment to make struct syntactically valid C
Add cross-reference to kinfo_getproc(3) in libprocstat(3) manual page
since it provides comprehensive documentation for struct kinfo_proc.1 parent 4e2ca7b commit 27d6dc6
2 files changed
+16
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
577 | 577 | | |
578 | 578 | | |
579 | 579 | | |
| 580 | + | |
580 | 581 | | |
581 | 582 | | |
582 | 583 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
120 | | - | |
| 120 | + | |
| 121 | + | |
121 | 122 | | |
122 | 123 | | |
123 | 124 | | |
| |||
228 | 229 | | |
229 | 230 | | |
230 | 231 | | |
231 | | - | |
| 232 | + | |
| 233 | + | |
232 | 234 | | |
233 | 235 | | |
234 | 236 | | |
| |||
245 | 247 | | |
246 | 248 | | |
247 | 249 | | |
248 | | - | |
249 | | - | |
| 250 | + | |
| 251 | + | |
250 | 252 | | |
251 | | - | |
| 253 | + | |
252 | 254 | | |
253 | 255 | | |
254 | 256 | | |
| |||
257 | 259 | | |
258 | 260 | | |
259 | 261 | | |
260 | | - | |
261 | | - | |
| 262 | + | |
| 263 | + | |
262 | 264 | | |
263 | 265 | | |
264 | 266 | | |
| |||
272 | 274 | | |
273 | 275 | | |
274 | 276 | | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
275 | 282 | | |
276 | 283 | | |
277 | 284 | | |
| |||
0 commit comments