Index: uspace/lib/posix/stdlib.c
===================================================================
--- uspace/lib/posix/stdlib.c	(revision 4419c347a4231f39281a505ad4149f3d49261123)
+++ uspace/lib/posix/stdlib.c	(revision 0d33863d705067aed57e3fc251c1ecc113725b7f)
@@ -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;
 }
 
