Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
73a46a9c
Commit
73a46a9c
authored
Oct 10, 1996
by
Jim Meyering
Browse files
[__hpux]: Define hpux. From Eric Backus.
[__sun]: Define sun. Reported by Kaveh Ghazi.
parent
e3171469
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
src/getloadavg.c
src/getloadavg.c
+9
-1
No files found.
src/getloadavg.c
View file @
73a46a9c
...
...
@@ -133,6 +133,14 @@ extern int errno;
#define hpux
#endif
#if defined (__hpux) && !defined (hpux)
#define hpux
#endif
#if defined (__sun) && !defined (sun)
#define sun
#endif
#if defined(hp300) && !defined(hpux)
#define MORE_BSD
#endif
...
...
@@ -529,7 +537,7 @@ getloadavg (loadavg, nelem)
ksp
=
kstat_lookup
(
kc
,
"unix"
,
0
,
"system_misc"
);
if
(
ksp
==
0
)
return
-
1
;
if
(
kstat_read
(
kc
,
ksp
,
0
)
==
-
1
)
return
-
1
;
kn
=
kstat_data_lookup
(
ksp
,
"avenrun_1min"
);
if
(
kn
==
0
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment