doc: make the library API pages a little more readable
Use of the the '.B' and '.BI' man documentation macros had rendered the three library API pages less readable than they could be. In addition, sometimes the pointer indicator and an identifier were separated by a space. So, this commit will trade those macros for some '.RI' and '.RB' macros plus treat the pointers consistently. [ plus we no longer italicize sort 'stacks' brackets ] Signed-off-by: Jim Warner <james.warner@comcast.net>
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
.\" Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
.\" %%%LICENSE_END
|
||||
.\"
|
||||
.TH PROCPS_MISC 3 "January 2022" "libproc-2"
|
||||
.TH PROCPS_MISC 3 "July 2022" "libproc-2"
|
||||
.\" Please adjust this date whenever revising the manpage.
|
||||
.\"
|
||||
.nh
|
||||
@@ -30,27 +30,27 @@ procps_misc \- API for miscellaneous information in the /proc filesystem
|
||||
Platform Particulars
|
||||
.RS 4
|
||||
.PP
|
||||
.B "long procps_cpu_count (void);"
|
||||
.B "long procps_hertz_get (void);"
|
||||
.B "unsigned int procps_pid_length (void);"
|
||||
.B "int procps_linux_version (void);"
|
||||
.RB "long " procps_cpu_count " (void);
|
||||
.RB "long " procps_hertz_get " (void);
|
||||
.RB "unsigned int " procps_pid_length " (void);
|
||||
.RB "int " procps_linux_version " (void);
|
||||
.RE
|
||||
.PP
|
||||
Runtime Particulars
|
||||
.PP
|
||||
.RS 4
|
||||
.BI "int procps_loadavg (double * " av1 ", double * " av5 ", double * " av15 ");"
|
||||
.BI "int procps_uptime (double * " uptime_secs ", double * " idle_secs ");"
|
||||
.B "char * procps_uptime_sprint (void);"
|
||||
.B "char * procps_uptime_sprint_short (void);"
|
||||
.RI "int \fB procps_loadavg\fR (double *" av1 ", double *" av5 ", double *" av15 ");"
|
||||
.RI "int \fB procps_uptime\fR (double *" uptime_secs ", double *" idle_secs ");"
|
||||
.RB "char *" procps_uptime_sprint " (void);"
|
||||
.RB "char *" procps_uptime_sprint_short " (void);"
|
||||
.RE
|
||||
.PP
|
||||
Namespace Particulars
|
||||
.PP
|
||||
.RS 4
|
||||
.BI "int procps_ns_get_id (const char * " name ");"
|
||||
.BI "const char * procps_ns_get_name (int " id ");"
|
||||
.BI "int procps_ns_read_pid (int " pid ", struct procps_ns * " nsp ");"
|
||||
.RI "int \fB procps_ns_get_id\fR (const char *" name ");"
|
||||
.RI "const char\fB *procps_ns_get_name\fR (int " id ");"
|
||||
.RI "int \fB procps_ns_read_pid\fR (int " pid ", struct procps_ns *" nsp ");"
|
||||
.RE
|
||||
|
||||
Link with \fI\-lproc-2\fP.
|
||||
|
||||
Reference in New Issue
Block a user