projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
BSD 4 release
[unix-history]
/
usr
/
src
/
cmd
/
px
/
stats.c
diff --git
a/usr/src/cmd/px/stats.c
b/usr/src/cmd/px/stats.c
index
49766f8
..
64de027
100644
(file)
--- a/
usr/src/cmd/px/stats.c
+++ b/
usr/src/cmd/px/stats.c
@@
-1,3
+1,7
@@
+/* Copyright (c) 1979 Regents of the University of California */
+
+static char sccsid[] = "@(#)stats.c 4.1 10/10/80";
+
#include "stdio.h"
#include "h00vars.h"
#include "h01errs.h"
#include "stdio.h"
#include "h00vars.h"
#include "h01errs.h"
@@
-16,25
+20,23
@@
fetchdp(&dp,&linum);
for (i=0; i<20; i++)
disp[i] = display[i];
if (errnum == EINTR)
for (i=0; i<20; i++)
disp[i] = display[i];
if (errnum == EINTR)
- fputs("\n\tInterrupted
at
\"",stderr);
+ fputs("\n\tInterrupted
in
\"",stderr);
else if (errnum == EHALT)
else if (errnum == EHALT)
- fputs("\n\tHalted
at
\"",stderr);
+ fputs("\n\tHalted
in
\"",stderr);
else
else
- fputs("\n\tError
at
\"",stderr);
+ fputs("\n\tError
in
\"",stderr);
if (linum <= 0)
return;
mydp = dp;
for (;;){
ap = *mydp;
if (linum <= 0)
return;
mydp = dp;
for (;;){
ap = *mydp;
- cp = &((ap)->entry)->name[0];
- i = 8;
- do
- putc(*cp++,stderr);
- while (--i && *cp != ' ');
i = linum - (((ap)->entry)->offset & 0177777);
i = linum - (((ap)->entry)->offset & 0177777);
- fprintf(stderr,"\"+%1d near line %1d.\n",i,linum);
+ fprintf(stderr,"%s\"",(ap->entry)->name);
+ if (nodump == 0)
+ fprintf(stderr,"+%1d near line %1d.",i,linum);
+ fputc('\n',stderr);
*mydp = (ap)->disp;
*mydp = (ap)->disp;
- if (mydp <= &display[
addrsze >> 2
]){
+ if (mydp <= &display[
1
]){
for (i=0; i<20; i++)
display[i] = disp[i];
return;
for (i=0; i<20; i++)
display[i] = disp[i];
return;