1999-10-04 Roland McGrath <roland@baalperazim.frob.com>
authorRoland McGrath <roland@gnu.org>
Mon, 4 Oct 1999 06:24:10 +0000 (06:24 +0000)
committerRoland McGrath <roland@gnu.org>
Mon, 4 Oct 1999 06:24:10 +0000 (06:24 +0000)
* stdlib/stdlib.h [__USE_BSD]: Declare getloadavg.

stdlib/stdlib.h

index bec12090f360dfa8367b8ebe352d5fe82eaeb274..70a975edf91d088c7b9dff74923d200f9f58a2ec 100644 (file)
@@ -774,6 +774,13 @@ extern int ptsname_r __P ((int __fd, char *__buf, size_t __buflen));
 extern int getpt __P ((void));
 #endif
 
+#ifdef __USE_BSD
+/* Put the 1 minute, 5 minute and 15 minute load averages into the first
+   NELEM elements of LOADAVG.  Return the number written (never more than
+   three, but may be less than NELEM), or -1 if an error occurred.  */
+extern int getloadavg __P ((double __loadavg[], int __nelem));
+#endif
+
 #endif /* don't just need malloc and calloc */
 #undef __need_malloc_and_calloc