summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorallanjude <allanjude@FreeBSD.org>2015-05-21 03:32:44 +0000
committerallanjude <allanjude@FreeBSD.org>2015-05-21 03:32:44 +0000
commit2ad178c529bedbff2f435e1d5cd8de18fac3ad3a (patch)
treeb933961514546c02fe5f12ff8f8f4b0450333532 /lib
parent3718535142e843d657a99d48492b752672dc1854 (diff)
downloadFreeBSD-src-2ad178c529bedbff2f435e1d5cd8de18fac3ad3a.zip
FreeBSD-src-2ad178c529bedbff2f435e1d5cd8de18fac3ad3a.tar.gz
Create links to the libprocstat man pages for all of the libprocstat functions so they can be looked up by name
Add a cross refrence to libprocstat in the procstat.1 man page Differential Revision: https://reviews.freebsd.org/D2578 Suggested by: jmg Reviewed by: brueffer Approved by: wblock (mentor) MFC after: 1 week Sponsored by: ScaleEngine Inc.
Diffstat (limited to 'lib')
-rw-r--r--lib/libprocstat/Makefile30
-rw-r--r--lib/libprocstat/libprocstat.353
2 files changed, 57 insertions, 26 deletions
diff --git a/lib/libprocstat/Makefile b/lib/libprocstat/Makefile
index ff9146b..fc71dbc 100644
--- a/lib/libprocstat/Makefile
+++ b/lib/libprocstat/Makefile
@@ -22,6 +22,36 @@ SHLIB_MAJOR= 1
LIBADD= elf kvm util
MAN= libprocstat.3
+MLINKS+=libprocstat.3 procstat_close.3 \
+ libprocstat.3 procstat_freeargv.3 \
+ libprocstat.3 procstat_freeauxv.3 \
+ libprocstat.3 procstat_freeenvv.3 \
+ libprocstat.3 procstat_freefiles.3 \
+ libprocstat.3 procstat_freegroups.3 \
+ libprocstat.3 procstat_freekstack.3 \
+ libprocstat.3 procstat_freeprocs.3 \
+ libprocstat.3 procstat_freevmmap.3 \
+ libprocstat.3 procstat_get_pipe_info.3 \
+ libprocstat.3 procstat_get_pts_info.3 \
+ libprocstat.3 procstat_get_sem_info.3 \
+ libprocstat.3 procstat_get_shm_info.3 \
+ libprocstat.3 procstat_get_socket_info.3 \
+ libprocstat.3 procstat_get_vnode_info.3 \
+ libprocstat.3 procstat_getargv.3 \
+ libprocstat.3 procstat_getauxv.3 \
+ libprocstat.3 procstat_getenvv.3 \
+ libprocstat.3 procstat_getfiles.3 \
+ libprocstat.3 procstat_getgroups.3 \
+ libprocstat.3 procstat_getkstack.3 \
+ libprocstat.3 procstat_getosrel.3 \
+ libprocstat.3 procstat_getpathname.3 \
+ libprocstat.3 procstat_getprocs.3 \
+ libprocstat.3 procstat_getrlimit.3 \
+ libprocstat.3 procstat_getumask.3 \
+ libprocstat.3 procstat_getvmmap.3 \
+ libprocstat.3 procstat_open_core.3 \
+ libprocstat.3 procstat_open_kvm.3 \
+ libprocstat.3 procstat_open_sysctl.3
# XXX This is a hack.
.if ${MK_CDDL} != "no"
diff --git a/lib/libprocstat/libprocstat.3 b/lib/libprocstat/libprocstat.3
index 1c1f811..e8be41c 100644
--- a/lib/libprocstat/libprocstat.3
+++ b/lib/libprocstat/libprocstat.3
@@ -24,25 +24,11 @@
.\"
.\" $FreeBSD$
.\"
-.Dd May 3, 2013
+.Dd May 18, 2015
.Dt LIBPROCSTAT 3
.Os
.Sh NAME
-.Nm procstat_open_core ,
-.Nm procstat_open_kvm ,
-.Nm procstat_open_sysctl ,
.Nm procstat_close ,
-.Nm procstat_getargv ,
-.Nm procstat_getauxv ,
-.Nm procstat_getenvv ,
-.Nm procstat_getfiles ,
-.Nm procstat_getgroups ,
-.Nm procstat_getkstack ,
-.Nm procstat_getosrel ,
-.Nm procstat_getpathname ,
-.Nm procstat_getprocs ,
-.Nm procstat_getumask ,
-.Nm procstat_getvmmap ,
.Nm procstat_freeargv ,
.Nm procstat_freeauxv ,
.Nm procstat_freeenvv ,
@@ -56,7 +42,22 @@
.Nm procstat_get_sem_info ,
.Nm procstat_get_shm_info ,
.Nm procstat_get_socket_info ,
-.Nm procstat_get_vnode_info
+.Nm procstat_get_vnode_info ,
+.Nm procstat_getargv ,
+.Nm procstat_getauxv ,
+.Nm procstat_getenvv ,
+.Nm procstat_getfiles ,
+.Nm procstat_getgroups ,
+.Nm procstat_getkstack ,
+.Nm procstat_getosrel ,
+.Nm procstat_getpathname ,
+.Nm procstat_getprocs ,
+.Nm procstat_getrlimit ,
+.Nm procstat_getumask ,
+.Nm procstat_getvmmap ,
+.Nm procstat_open_core ,
+.Nm procstat_open_kvm ,
+.Nm procstat_open_sysctl
.Nd library interface for file and process information retrieval
.Sh LIBRARY
.Lb libprocstat
@@ -175,17 +176,24 @@
.Fa "struct kinfo_proc *kp"
.Fa "unsigned int *count"
.Fc
+.Ft "struct kinfo_kstack *"
+.Fo procstat_getkstack
+.Fa "struct procstat *procstat"
+.Fa "struct kinfo_proc *kp"
+.Fa "unsigned int *count"
+.Fc
.Ft int
.Fo procstat_getosrel
.Fa "struct procstat *procstat"
.Fa "struct kinfo_proc *kp"
.Fa "int *osrelp"
.Fc
-.Ft "struct kinfo_kstack *"
-.Fo procstat_getkstack
+.Ft "int"
+.Fo procstat_getpathname
.Fa "struct procstat *procstat"
.Fa "struct kinfo_proc *kp"
-.Fa "unsigned int *count"
+.Fa "char *pathname"
+.Fa "size_t maxlen"
.Fc
.Ft "struct kinfo_proc *"
.Fo procstat_getprocs
@@ -195,13 +203,6 @@
.Fa "unsigned int *count"
.Fc
.Ft "int"
-.Fo procstat_getpathname
-.Fa "struct procstat *procstat"
-.Fa "struct kinfo_proc *kp"
-.Fa "char *pathname"
-.Fa "size_t maxlen"
-.Fc
-.Ft "int"
.Fo procstat_getrlimit
.Fa "struct procstat *procstat"
.Fa "struct kinfo_proc *kp"
OpenPOWER on IntegriCloud