Deleted Added
full compact
libprocstat.3 (249674) libprocstat.3 (249676)
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 249674 2013-04-20 07:59:44Z trociny $
25.\" $FreeBSD: head/lib/libprocstat/libprocstat.3 249676 2013-04-20 08:02:43Z 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_getfiles ,
36.Nm procstat_getgroups ,
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_getfiles ,
36.Nm procstat_getgroups ,
37.Nm procstat_getpathname ,
37.Nm procstat_getprocs ,
38.Nm procstat_getumask ,
39.Nm procstat_getvmmap ,
40.Nm procstat_freefiles ,
41.Nm procstat_freegroups ,
42.Nm procstat_freeprocs ,
43.Nm procstat_freevmmap ,
44.Nm procstat_get_pipe_info ,

--- 78 unchanged lines hidden (view full) ---

123.Ft "struct kinfo_proc *"
124.Fo procstat_getprocs
125.Fa "struct procstat *procstat"
126.Fa "int what"
127.Fa "int arg"
128.Fa "unsigned int *count"
129.Fc
130.Ft "int"
38.Nm procstat_getprocs ,
39.Nm procstat_getumask ,
40.Nm procstat_getvmmap ,
41.Nm procstat_freefiles ,
42.Nm procstat_freegroups ,
43.Nm procstat_freeprocs ,
44.Nm procstat_freevmmap ,
45.Nm procstat_get_pipe_info ,

--- 78 unchanged lines hidden (view full) ---

124.Ft "struct kinfo_proc *"
125.Fo procstat_getprocs
126.Fa "struct procstat *procstat"
127.Fa "int what"
128.Fa "int arg"
129.Fa "unsigned int *count"
130.Fc
131.Ft "int"
132.Fo procstat_getpathname
133.Fa "struct procstat *procstat"
134.Fa "struct kinfo_proc *kp"
135.Fa "char *pathname"
136.Fa "size_t maxlen"
137.Fc
138.Ft "int"
131.Fo procstat_getrlimit
132.Fa "struct procstat *procstat"
133.Fa "struct kinfo_proc *kp"
134.Fa "int which"
135.Fa "struct rlimit* rlimit"
136.Fc
137.Ft "int"
138.Fo procstat_getumask

--- 124 unchanged lines hidden (view full) ---

263structure, and returns the process groups as a dynamically allocated array of
264.Vt gid_t
265elements.
266The caller is responsible to free the allocated memory with a subsequent
267.Fn procstat_freegroups
268function call.
269.Pp
270The
139.Fo procstat_getrlimit
140.Fa "struct procstat *procstat"
141.Fa "struct kinfo_proc *kp"
142.Fa "int which"
143.Fa "struct rlimit* rlimit"
144.Fc
145.Ft "int"
146.Fo procstat_getumask

--- 124 unchanged lines hidden (view full) ---

271structure, and returns the process groups as a dynamically allocated array of
272.Vt gid_t
273elements.
274The caller is responsible to free the allocated memory with a subsequent
275.Fn procstat_freegroups
276function call.
277.Pp
278The
279.Fn procstat_getpathname
280function gets a pointer to the
281.Vt procstat
282structure, a pointer to
283.Vt kinfo_proc
284structure, and copies the path of the process executable to
285.Fa pathname
286buffer, limiting to
287.Fa maxlen
288characters.
289.Pp
290The
271.Fn procstat_getrlimit
272function gets a pointer to the
273.Vt procstat
274structure, a pointer to
275.Vt kinfo_proc
276structure, resource index
277.Fa which ,
278and returns the actual resource limit in the 4th reference parameter.

--- 100 unchanged lines hidden ---
291.Fn procstat_getrlimit
292function gets a pointer to the
293.Vt procstat
294structure, a pointer to
295.Vt kinfo_proc
296structure, resource index
297.Fa which ,
298and returns the actual resource limit in the 4th reference parameter.

--- 100 unchanged lines hidden ---