summaryrefslogtreecommitdiff
path: root/usr/src/lib/libc/port/gen/getloadavg.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/lib/libc/port/gen/getloadavg.c')
-rw-r--r--usr/src/lib/libc/port/gen/getloadavg.c17
1 files changed, 8 insertions, 9 deletions
diff --git a/usr/src/lib/libc/port/gen/getloadavg.c b/usr/src/lib/libc/port/gen/getloadavg.c
index cdba031256..a230e34c1e 100644
--- a/usr/src/lib/libc/port/gen/getloadavg.c
+++ b/usr/src/lib/libc/port/gen/getloadavg.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,22 +18,20 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak getloadavg = _getloadavg
+#pragma weak _getloadavg = getloadavg
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
#include <sys/param.h>
-#include <sys/syscall.h>
#include <sys/loadavg.h>
-#include <stdio.h>
-#include <stdlib.h>
/*
* getloadavg -- get the time averaged run queues from the system
@@ -42,6 +39,8 @@
int
getloadavg(double loadavg[], int nelem)
{
+ extern int __getloadavg(int *buf, int nelem);
+
int i, buf[LOADAVG_NSTATS];
if (nelem > LOADAVG_NSTATS)