|
Lines 23-31
Link Here
|
| 23 |
.\" SUCH DAMAGE. |
23 |
.\" SUCH DAMAGE. |
| 24 |
.\" |
24 |
.\" |
| 25 |
.\" $FreeBSD$ |
25 |
.\" $FreeBSD$ |
| 26 |
.\" |
26 |
.\" |
| 27 |
.Dd May 18, 2015 |
27 |
.Dd March 18, 2017 |
| 28 |
.Dt LIBPROCSTAT 3 |
28 |
.Dt LIBPROCSTAT 3 |
| 29 |
.Os |
29 |
.Os |
| 30 |
.Sh NAME |
30 |
.Sh NAME |
| 31 |
.Nm procstat_close , |
31 |
.Nm procstat_close , |
|
Lines 62-70
Link Here
|
| 62 |
.Sh LIBRARY |
62 |
.Sh LIBRARY |
| 63 |
.Lb libprocstat |
63 |
.Lb libprocstat |
| 64 |
.Sh SYNOPSIS |
64 |
.Sh SYNOPSIS |
| 65 |
.In sys/param.h |
65 |
.In sys/param.h |
| 66 |
.In sys/queue.h |
66 |
.In sys/user.h |
| 67 |
.In libprocstat.h |
67 |
.In libprocstat.h |
| 68 |
.Ft void |
68 |
.Ft void |
| 69 |
.Fn procstat_close "struct procstat *procstat" |
69 |
.Fn procstat_close "struct procstat *procstat" |
| 70 |
.Ft void |
70 |
.Ft void |
|
Lines 148-156
Link Here
|
| 148 |
.Fo procstat_getargv |
148 |
.Fo procstat_getargv |
| 149 |
.Fa "struct procstat *procstat" |
149 |
.Fa "struct procstat *procstat" |
| 150 |
.Fa "const struct kinfo_proc *kp" |
150 |
.Fa "const struct kinfo_proc *kp" |
| 151 |
.Fa "size_t nchr" |
151 |
.Fa "size_t nchr" |
| 152 |
.Fa "char *errbuf" |
|
|
| 153 |
.Fc |
152 |
.Fc |
| 154 |
.Ft "Elf_Auxinfo *" |
153 |
.Ft "Elf_Auxinfo *" |
| 155 |
.Fo procstat_getauxv |
154 |
.Fo procstat_getauxv |
| 156 |
.Fa "struct procstat *procstat" |
155 |
.Fa "struct procstat *procstat" |
|
Lines 161-169
Link Here
|
| 161 |
.Fo procstat_getenvv |
160 |
.Fo procstat_getenvv |
| 162 |
.Fa "struct procstat *procstat" |
161 |
.Fa "struct procstat *procstat" |
| 163 |
.Fa "const struct kinfo_proc *kp" |
162 |
.Fa "const struct kinfo_proc *kp" |
| 164 |
.Fa "size_t nchr" |
163 |
.Fa "size_t nchr" |
| 165 |
.Fa "char *errbuf" |
|
|
| 166 |
.Fc |
164 |
.Fc |
| 167 |
.Ft "struct filestat_list *" |
165 |
.Ft "struct filestat_list *" |
| 168 |
.Fo procstat_getfiles |
166 |
.Fo procstat_getfiles |
| 169 |
.Fa "struct procstat *procstat" |
167 |
.Fa "struct procstat *procstat" |
|
Lines 351-359
The
Link Here
|
| 351 |
function is similar to |
349 |
function is similar to |
| 352 |
.Fn procstat_getargv |
350 |
.Fn procstat_getargv |
| 353 |
but returns the vector of environment strings. |
351 |
but returns the vector of environment strings. |
| 354 |
The caller may free the allocated memory with a subsequent |
352 |
The caller may free the allocated memory with a subsequent |
| 355 |
.Fn procstat_freeenv |
353 |
.Fn procstat_freeenvv |
| 356 |
function call. |
354 |
function call. |
| 357 |
.Pp |
355 |
.Pp |
| 358 |
The |
356 |
The |
| 359 |
.Fn procstat_getauxv |
357 |
.Fn procstat_getauxv |