projects
/
unix-history
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f0e1083
)
print out kvm error message, not errno message
author
Keith Bostic
<bostic@ucbvax.Berkeley.EDU>
Tue, 2 Jul 1991 06:41:15 +0000
(22:41 -0800)
committer
Keith Bostic
<bostic@ucbvax.Berkeley.EDU>
Tue, 2 Jul 1991 06:41:15 +0000
(22:41 -0800)
SCCS-vsn: bin/ps/nlist.c 5.3
usr/src/bin/ps/nlist.c
patch
|
blob
|
blame
|
history
diff --git
a/usr/src/bin/ps/nlist.c
b/usr/src/bin/ps/nlist.c
index
8bdc6cc
..
e235b32
100644
(file)
--- a/
usr/src/bin/ps/nlist.c
+++ b/
usr/src/bin/ps/nlist.c
@@
-6,7
+6,7
@@
*/
#ifndef lint
*/
#ifndef lint
-static char sccsid[] = "@(#)nlist.c 5.
2
(Berkeley) %G%";
+static char sccsid[] = "@(#)nlist.c 5.
3
(Berkeley) %G%";
#endif /* not lint */
#include <sys/types.h>
#endif /* not lint */
#include <sys/types.h>
@@
-41,7
+41,7
@@
donlist()
rval = 0;
nlistread = 1;
if (kvm_nlist(psnl)) {
rval = 0;
nlistread = 1;
if (kvm_nlist(psnl)) {
- (void)fprintf(stderr, "ps: kvm_nlist: %s\n",
strerror(errno
));
+ (void)fprintf(stderr, "ps: kvm_nlist: %s\n",
kvm_geterr(
));
eval = 1;
return(1);
}
eval = 1;
return(1);
}