Mercurial > emacs
comparison src/getloadavg.c @ 17064:0f4ca446767c
[__GNU__] (NeXT, host_self):
New macros, to make hurd systems use the NeXT code for getting load averages.
author | Miles Bader <miles@gnu.org> |
---|---|
date | Sun, 23 Feb 1997 03:38:49 +0000 |
parents | 16ef2bd09de7 |
children | 0cc83e8612f0 |
comparison
equal
deleted
inserted
replaced
17063:647b28ba4d1b | 17064:0f4ca446767c |
---|---|
1 /* Get the system load averages. | 1 /* Get the system load averages. |
2 Copyright (C) 1985, 86, 87, 88, 89, 91, 92, 93, 1994, 1995 | 2 Copyright (C) 1985, 86, 87, 88, 89, 91, 92, 93, 1994, 1995, 1997 |
3 Free Software Foundation, Inc. | 3 Free Software Foundation, Inc. |
4 | 4 |
5 This program is free software; you can redistribute it and/or modify | 5 This program is free software; you can redistribute it and/or modify |
6 it under the terms of the GNU General Public License as published by | 6 it under the terms of the GNU General Public License as published by |
7 the Free Software Foundation; either version 2, or (at your option) | 7 the Free Software Foundation; either version 2, or (at your option) |
433 # ifndef LDAV_CVT | 433 # ifndef LDAV_CVT |
434 # define LDAV_CVT(n) ((double) (n)) | 434 # define LDAV_CVT(n) ((double) (n)) |
435 # endif /* !LDAV_CVT */ | 435 # endif /* !LDAV_CVT */ |
436 | 436 |
437 # endif /* LOAD_AVE_TYPE */ | 437 # endif /* LOAD_AVE_TYPE */ |
438 | |
439 # ifdef __GNU__ | |
440 /* GNU hurd systems act sort of like NeXT ones, for load average purposes. */ | |
441 # define NeXT | |
442 # define host_self mach_host_self | |
443 # endif | |
438 | 444 |
439 # ifdef NeXT | 445 # ifdef NeXT |
440 # ifdef HAVE_MACH_MACH_H | 446 # ifdef HAVE_MACH_MACH_H |
441 # include <mach/mach.h> | 447 # include <mach/mach.h> |
442 # else | 448 # else |