usr/src/lib/libc/port/gen/getloadavg.c
changeset 6812 febeba71273d
parent 0 68f95e015346
--- a/usr/src/lib/libc/port/gen/getloadavg.c	Fri Jun 06 11:40:14 2008 -0700
+++ b/usr/src/lib/libc/port/gen/getloadavg.c	Fri Jun 06 14:02:15 2008 -0700
@@ -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)