mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-19 03:33:43 +03:00
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.
This commit is contained in:
1 parent
f21950385b
commit
bd1806f708
1 file changed
+2
-4
+2
-4
@@ -445,9 +445,7 @@
|
||||
# include <sys/dg_sys_info.h>
|
||||
# endif
|
||||
|
||||
# include <fcntl.h>
|
||||
|
||||
# include "unistd-safer.h"
|
||||
# include "fcntl--.h"
|
||||
|
||||
/* Avoid static vars inside a function since in HPUX they dump as pure. */
|
||||
|
||||
@@ -907,7 +905,7 @@ getloadavg (double loadavg[], int nelem)
|
||||
if (!getloadavg_initialized)
|
||||
{
|
||||
# ifndef SUNOS_5
|
||||
channel = fd_safer (open ("/dev/kmem", O_RDONLY));
|
||||
channel = open ("/dev/kmem", O_RDONLY);
|
||||
if (channel >= 0)
|
||||
{
|
||||
/* Set the channel to close on exec, so it does not
|
||||
|
||||
Reference in new issue
Block a user