comparison src/getloadavg.c @ 231:557eaa0339bf r20-5b14

Import from CVS: tag r20-5b14
author cvs
date Mon, 13 Aug 2007 10:13:48 +0200
parents 41ff10fd062f
children c5d627a313b1
comparison
equal deleted inserted replaced
230:39ed1d2bdd9d 231:557eaa0339bf
17 You should have received a copy of the GNU General Public License 17 You should have received a copy of the GNU General Public License
18 along with XEmacs; see the file COPYING. If not, write to 18 along with XEmacs; see the file COPYING. If not, write to
19 the Free Software Foundation, Inc., 59 Temple Place - Suite 330, 19 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
20 Boston, MA 02111-1307, USA. */ 20 Boston, MA 02111-1307, USA. */
21 21
22 #ifndef __CYGWIN32__
22 23
23 /* Compile-time symbols that this file uses: 24 /* Compile-time symbols that this file uses:
24 25
25 FIXUP_KERNEL_SYMBOL_ADDR() Adjust address in returned struct nlist. 26 FIXUP_KERNEL_SYMBOL_ADDR() Adjust address in returned struct nlist.
26 KERNEL_FILE Pathname of the kernel to nlist. 27 KERNEL_FILE Pathname of the kernel to nlist.
984 } 985 }
985 986
986 exit (0); 987 exit (0);
987 } 988 }
988 #endif /* TEST */ 989 #endif /* TEST */
990
991 #else
992
993 /* Emulate getloadavg. */
994 int
995 getloadavg (double loadavg[], int nelem)
996 {
997 int i;
998
999 /* A faithful emulation is going to have to be saved for a rainy day. */
1000 for (i = 0; i < nelem; i++)
1001 {
1002 loadavg[i] = 0.0;
1003 }
1004 return i;
1005 }
1006
1007 #endif /*__GNUWIN32__*/
1008