summaryrefslogtreecommitdiff
path: root/loadtest.c
diff options
context:
space:
mode:
Diffstat (limited to 'loadtest.c')
-rw-r--r--loadtest.c31
1 files changed, 31 insertions, 0 deletions
diff --git a/loadtest.c b/loadtest.c
new file mode 100644
index 0000000..19b80f6
--- /dev/null
+++ b/loadtest.c
@@ -0,0 +1,31 @@
+extern volatile void exit (int);
+extern double load_average (void);
+
+double max_load_average = -1;
+unsigned int job_slots_used = 0;
+
+
+int
+main ()
+{
+ printf ("load_average () = %.2f\n", load_average ());
+ exit (0);
+}
+
+void
+error (char *fmt, ...)
+{
+ exit (1);
+}
+
+void
+perror_with_name (char *a, char *b)
+{
+ exit (1);
+}
+
+void
+wait_for_children (int i)
+{
+ return;
+}