summaryrefslogtreecommitdiff
path: root/lib/getloadavg.c
AgeCommit message (Collapse)Author
2005-06-02Don't use "path" or "filename" to mean "file name"Paul Eggert
in comments or local variable names.
2005-05-14Update FSF postal mail address.Jim Meyering
2005-04-11Include unistd-safer.h.Paul Eggert
(getloadavg): Use fd_safer.
2005-03-09Include intprops.h instead of limits.h.Paul Eggert
(INT_STRLEN_BOUND): Remove.
2004-08-02Include <stdbool.h>.Paul Eggert
(getloadavg_initialized): Use bool for booleans.
2004-07-12Include <errno.h>, <stdio.h>, <stdlib.h> evenPaul Eggert
if HAVE_GETLOADAVG is defined, so that the test program can work. (errno): Remove declaration; not needed in C89 or later. Include "c-strtod.h". Do not include locale.h or define setlocale; no longer needed. Include <limits.h>. (INT_STRLEN_BOUND): New macro. (getloadavg): Use it to compute buffer size. Don't assume that buffer will be properly terminated by 'read'. Use c_strtod instead of setlocale. (main) [defined TEST]: Return int, not void.
2004-06-30Use `file system', not filesystem in a comment.Jim Meyering
2004-04-04Sync from gnulib.Jim Meyering
2004-03-30Merge changes from emacs (via gnulib).Jim Meyering
2004-03-04(getloadavg): Use `true', not `1'.Jim Meyering
2004-03-03Include "cloexec.h".Jim Meyering
(getloadavg): Use set_cloexec_flag instead of manual fcntl call.
2003-09-10(getloadavg, main): Define via prototypes.Jim Meyering
2003-08-18Sync with gnulib.Jim Meyering
2003-04-15Remove (or replace-with-TAB(s) to retain alignment)Jim Meyering
each sequence of spaces before a TAB character.
2000-06-19[HAVE_NLIST_H] (NLIST_STRUCT): Define.Jim Meyering
2000-06-19revert last changeJim Meyering
2000-06-18s/NLIST_STRUCT/HAVE_NLIST_H/. Remove bigJim Meyering
multi-platform `#ifndef NLIST_STRUCT' block.
1999-01-31Include locale.h.Jim Meyering
[!HAVE_SETLOCALE]: Define-away setlocale. (getloadavg): Ensure the sscanf of /proc/getloadavg data uses the `C' numeric locale. Restore afterwards.
1997-07-15correct cpp-indentationJim Meyering
1997-07-15Merge with FSF.Jim Meyering
1997-01-18Add comment re HAVE_PSTAT_GETDYNAMIC.Jim Meyering
1997-01-15Fix up indentation a little.Jim Meyering
1997-01-15Indent cpp-directives to reflect nesting.Jim Meyering
1996-12-07[__SVR4]: Define SVR4.Jim Meyering
Remove duplicate `|| defined(SVR4)' disjunct guarding the #define KERNEL_FILE "/unix" definiton.
1996-10-22[__linux__]: Don't bother with a.out/nlist/kernelJim Meyering
defines or includes -- Linux systems simply read /proc/loadavg.
1996-10-10[__sun]: Define sun. Reported by Kaveh Ghazi.Jim Meyering
1996-10-08[__hpux]: Define hpux. From Eric Backus.Jim Meyering
1996-09-19Replace with FSF version.Jim Meyering
1996-04-14Test cpp-defined __sun as well as sun, becauseJim Meyering
in strict ANSI mode, only __sun is defined. From Kaveh Ghazi.
1996-04-10.Jim Meyering