From aabef59faa2af0e25e45a799aafb14b8f84fd379 Mon Sep 17 00:00:00 2001 From: Ben Gras Date: Mon, 14 Nov 2005 15:48:43 +0000 Subject: [PATCH] getloadvg(3) manpage --- man/man3/getloadavg.3 | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 man/man3/getloadavg.3 diff --git a/man/man3/getloadavg.3 b/man/man3/getloadavg.3 new file mode 100644 index 000000000..f7b2ccc7c --- /dev/null +++ b/man/man3/getloadavg.3 @@ -0,0 +1,35 @@ +.\" @(#)getloadavg.3 +.\" +.TH GETLOADAVG 3 "Nov 14, 2005" +.AT 3 +.SH NAME +getloadavg \- system load average values +.SH SYNOPSIS +.nf +.ft B +#include + +int getloadavg(double *\fIaverages\fP, int \fInelem\fP) +.ft R +.fi +.SH DESCRIPTION +.B Getloadavg +returns the system load average values as elements of +.IR averages +up to +a maximum of +.IR nelem +. The system load average is the average number of +runnable processes over a certain period. Currently the averages are +delivered over the last 1, 5 and 15 minutes of system usage. So +currently the system maximum is 3. +.SH RETURNS +The returned value of +.B getloadavg +is zero or more if the call was successful, or a negative value if the +call was unsuccessful. If the call was successful, the number of +elements entered into +.IR averages +is returned. +.SH SEE ALSO +.BR uptime (1). -- 2.44.0