Index: uspace/lib/posix/stdlib.c
===================================================================
--- uspace/lib/posix/stdlib.c	(revision 11544f431436ab8a1d0816ded447ddee663a5ded)
+++ uspace/lib/posix/stdlib.c	(revision f2b3d3ea3dc1fbb7a2312b326613bcc88a3bfaf5)
@@ -49,4 +49,5 @@
 #include "libc/str.h"
 #include "libc/vfs/vfs.h"
+#include "libc/stats.h"
 
 /**
@@ -473,6 +474,4 @@
  * Get system load average statistics.
  *
- * Not supported. Always returns -1.
- *
  * @param loadavg Array where the load averages shall be placed.
  * @param nelem Maximum number of elements to be placed into the array.
@@ -481,5 +480,23 @@
 int bsd_getloadavg(double loadavg[], int nelem)
 {
-	return -1;
+	assert(nelem > 0);
+	
+	size_t count;
+	load_t *loads = stats_get_load(&count);
+	
+	if (loads == NULL) {
+		return -1;
+	}
+	
+	if (((size_t) nelem) < count) {
+		count = nelem;
+	}
+	
+	for (size_t i = 0; i < count; ++i) {
+		loadavg[i] = (double) loads[i];
+	}
+	
+	free(loads);
+	return count;
 }
 
