Bug in AGEF
merlin at hqda-ai.UUCP
merlin at hqda-ai.UUCP
Wed Mar 4 00:28:20 AEST 1987
Sorry, folks, but I was writing AGEF late one night. It
appears that I changed a defined function name, and didn't
remember to make the change throughout the sources. My apologies,
and thanks to Karl Nyberg (karl at grebyn.COM) for pointing this out.
I should also have pointed out that this program depends on
the Berkeley directory routines. I'm not sure if AT&T has similar
routines on their Unix. I don't have an AT&T Unix available, so I
won't make any guarantees about AGEF's behaviour in that realm.
Here's the patch:
*** agef.c.v0 Mon Mar 2 11:49:32 1987
--- agef.c Tue Mar 3 09:15:27 1987
***************
*** 28,33
reflect the accumulated totals for all files in the directory.
*/
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/dir.h>
--- 28,35 -----
reflect the accumulated totals for all files in the directory.
*/
+ #define PATCHLEVEL 1
+
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/dir.h>
***************
*** 141,147
for (i = 0; i < TOTAL; i++) {
if (age <= ages[i]) {
inodes[i]++;
! blocks[i] += roundup(stb.st_size, 1024);
break;
};
};
--- 143,149 -----
for (i = 0; i < TOTAL; i++) {
if (age <= ages[i]) {
inodes[i]++;
! blocks[i] += ceiling(stb.st_size, 1024);
break;
};
};
***************
*** 146,152
};
};
inodes[TOTAL]++;
! blocks[TOTAL] += roundup(stb.st_size, 1024);
};
}
--- 148,154 -----
};
};
inodes[TOTAL]++;
! blocks[TOTAL] += ceiling(stb.st_size, 1024);
};
}
--
David S. Hayes, The Merlin of Avalon
PhoneNet: (202) 694-6900
ARPA: merlin%hqda-ai.uucp at brl.arpa
UUCP: ...!seismo!sundc!hqda-ai!merlin
More information about the Comp.sources.bugs
mailing list