* getloadavg.c: Include fcntl--.h rather than fcntl.h.
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 22 Sep 2005 23:15:09 +0000 (23:15 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 22 Sep 2005 23:15:09 +0000 (23:15 +0000)
commit45ba6df2ab0c651fd039e7530c30f628e622f29b
treed46402fe7432370d5f6e1712ea8fd992cc61ac22
parent5cc13c0f36d18dd428c7cceebd30ff8de6e2ff1e
* getloadavg.c: Include fcntl--.h rather than fcntl.h.
Do not include unistd-safer.h.
(getloadavg): Don't call fd_safer; no longer needed
now that we include fcntl--.h.
* getloadavg.c:
Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
and don't include <sys/file.h>).
* getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
[__linux__]: Allocate a big enough buffer for /proc/loadavg.
[!LDAV_DONE]: Avoid unused variable warning.
lib/getloadavg.c