libprocstat.3 (249679) | libprocstat.3 (249681) |
---|---|
1.\" Copyright (c) 2011 Sergey Kandaurov <pluknet@FreeBSD.org> 2.\" All rights reserved. 3.\" 4.\" Redistribution and use in source and binary forms, with or without 5.\" modification, are permitted provided that the following conditions 6.\" are met: 7.\" 1. Redistributions of source code must retain the above copyright 8.\" notice, this list of conditions and the following disclaimer. --- 8 unchanged lines hidden (view full) --- 17.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 18.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 19.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 20.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 21.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 22.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 23.\" SUCH DAMAGE. 24.\" | 1.\" Copyright (c) 2011 Sergey Kandaurov <pluknet@FreeBSD.org> 2.\" All rights reserved. 3.\" 4.\" Redistribution and use in source and binary forms, with or without 5.\" modification, are permitted provided that the following conditions 6.\" are met: 7.\" 1. Redistributions of source code must retain the above copyright 8.\" notice, this list of conditions and the following disclaimer. --- 8 unchanged lines hidden (view full) --- 17.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 18.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 19.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 20.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 21.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 22.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 23.\" SUCH DAMAGE. 24.\" |
25.\" $FreeBSD: head/lib/libprocstat/libprocstat.3 249679 2013-04-20 08:07:04Z trociny $ | 25.\" $FreeBSD: head/lib/libprocstat/libprocstat.3 249681 2013-04-20 08:10:47Z trociny $ |
26.\" 27.Dd April 1, 2012 28.Dt LIBPROCSTAT 3 29.Os 30.Sh NAME 31.Nm procstat_open_core , 32.Nm procstat_open_kvm , 33.Nm procstat_open_sysctl , 34.Nm procstat_close , 35.Nm procstat_getargv , | 26.\" 27.Dd April 1, 2012 28.Dt LIBPROCSTAT 3 29.Os 30.Sh NAME 31.Nm procstat_open_core , 32.Nm procstat_open_kvm , 33.Nm procstat_open_sysctl , 34.Nm procstat_close , 35.Nm procstat_getargv , |
36.Nm procstat_getauxv , |
|
36.Nm procstat_getenvv , 37.Nm procstat_getfiles , 38.Nm procstat_getgroups , 39.Nm procstat_getosrel , 40.Nm procstat_getpathname , 41.Nm procstat_getprocs , 42.Nm procstat_getumask , 43.Nm procstat_getvmmap , 44.Nm procstat_freeargv , | 37.Nm procstat_getenvv , 38.Nm procstat_getfiles , 39.Nm procstat_getgroups , 40.Nm procstat_getosrel , 41.Nm procstat_getpathname , 42.Nm procstat_getprocs , 43.Nm procstat_getumask , 44.Nm procstat_getvmmap , 45.Nm procstat_freeargv , |
46.Nm procstat_freeauxv , |
|
45.Nm procstat_freeenvv , 46.Nm procstat_freefiles , 47.Nm procstat_freegroups , 48.Nm procstat_freeprocs , 49.Nm procstat_freevmmap , 50.Nm procstat_get_pipe_info , 51.Nm procstat_get_pts_info , 52.Nm procstat_get_shm_info , --- 9 unchanged lines hidden (view full) --- 62.Ft void 63.Fn procstat_close "struct procstat *procstat" 64.Fc 65.Ft void 66.Fo procstat_freeargv 67.Fa "struct procstat *procstat" 68.Fc 69.Ft void | 47.Nm procstat_freeenvv , 48.Nm procstat_freefiles , 49.Nm procstat_freegroups , 50.Nm procstat_freeprocs , 51.Nm procstat_freevmmap , 52.Nm procstat_get_pipe_info , 53.Nm procstat_get_pts_info , 54.Nm procstat_get_shm_info , --- 9 unchanged lines hidden (view full) --- 64.Ft void 65.Fn procstat_close "struct procstat *procstat" 66.Fc 67.Ft void 68.Fo procstat_freeargv 69.Fa "struct procstat *procstat" 70.Fc 71.Ft void |
72.Fo procstat_freeauxv 73.Fa "struct procstat *procstat" 74.Fa "Elf_Auxinfo *auxv" 75.Fc 76.Ft void |
|
70.Fo procstat_freeenvv 71.Fa "struct procstat *procstat" 72.Fc 73.Ft void 74.Fo procstat_freefiles 75.Fa "struct procstat *procstat" 76.Fa "struct filestat_list *head" 77.Fc --- 46 unchanged lines hidden (view full) --- 124.Fc 125.Ft "char **" 126.Fo procstat_getargv 127.Fa "struct procstat *procstat" 128.Fa "const struct kinfo_proc *kp" 129.Fa "size_t nchr" 130.Fa "char *errbuf" 131.Fc | 77.Fo procstat_freeenvv 78.Fa "struct procstat *procstat" 79.Fc 80.Ft void 81.Fo procstat_freefiles 82.Fa "struct procstat *procstat" 83.Fa "struct filestat_list *head" 84.Fc --- 46 unchanged lines hidden (view full) --- 131.Fc 132.Ft "char **" 133.Fo procstat_getargv 134.Fa "struct procstat *procstat" 135.Fa "const struct kinfo_proc *kp" 136.Fa "size_t nchr" 137.Fa "char *errbuf" 138.Fc |
139.Ft "Elf_Auxinfo *" 140.Fo procstat_getauxv 141.Fa "struct procstat *procstat" 142.Fa "struct kinfo_proc *kp" 143.Fa "unsigned int *count" 144.Fc |
|
132.Ft "char **" 133.Fo procstat_getenvv 134.Fa "struct procstat *procstat" 135.Fa "const struct kinfo_proc *kp" 136.Fa "size_t nchr" 137.Fa "char *errbuf" 138.Fc 139.Ft "struct filestat_list *" --- 176 unchanged lines hidden (view full) --- 316function is similar to 317.Fn procstat_getargv 318but returns the vector of environment strings. 319The caller may free the allocated memory with a subsequent 320.Fn procstat_freeenv 321function call. 322.Pp 323The | 145.Ft "char **" 146.Fo procstat_getenvv 147.Fa "struct procstat *procstat" 148.Fa "const struct kinfo_proc *kp" 149.Fa "size_t nchr" 150.Fa "char *errbuf" 151.Fc 152.Ft "struct filestat_list *" --- 176 unchanged lines hidden (view full) --- 329function is similar to 330.Fn procstat_getargv 331but returns the vector of environment strings. 332The caller may free the allocated memory with a subsequent 333.Fn procstat_freeenv 334function call. 335.Pp 336The |
337.Fn procstat_getauxv 338function gets a pointer to the 339.Vt procstat 340structure, a pointer to 341.Vt kinfo_proc 342structure, and returns the auxiliary vector as a dynamically allocated array of 343.Vt Elf_Auxinfo 344elements. 345The caller is responsible to free the allocated memory with a subsequent 346.Fn procstat_freeauxv 347function call. 348.Pp 349The |
|
324.Fn procstat_getfiles 325function gets a pointer to the 326.Vt procstat 327structure initialized with one of the 328.Fn procstat_open_* 329functions, a pointer to 330.Vt kinfo_proc 331structure from the array obtained from the --- 151 unchanged lines hidden --- | 350.Fn procstat_getfiles 351function gets a pointer to the 352.Vt procstat 353structure initialized with one of the 354.Fn procstat_open_* 355functions, a pointer to 356.Vt kinfo_proc 357structure from the array obtained from the --- 151 unchanged lines hidden --- |