a 64 bit history tweek and friends
Mark Hittinger
msh at FreeBSD.ORG
Wed Jan 5 19:41:30 UTC 2000
Hey here is a slight tweek that I had to make a few weeks ago to be able to
run history files larger than 2gig. There is an fseek in innd/his.c that
does an fseek to 0L. There are actually some other spots in INN where we
do seeks to 0L and thats probably wrong. I changed the fseek in innd/his.c
to an fseeko() also.
--- his.c Wed Jan 5 13:24:23 2000
! if (fseek(HISwritefp, 0L, SEEK_END) == -1) {
! if (fseeko(HISwritefp, (OFFSET_T)0, SEEK_END) == -1) {
--- icd.c Wed Jan 5 11:08:49 2000
! if (lseek(ICDactfd, 0L, SEEK_SET) == -1) {
! if (lseek(ICDactfd, (OFFSET_T)0, SEEK_SET) == -1) {
--- innlistener.c Wed Jan 5 12:42:30 2000
! offset = lseek (mainFd, 0L, SEEK_CUR) ;
! offset = lseek (mainFd, (OFFSET_T)0, SEEK_CUR) ;
! if ( lseek (mainFd, 0L, SEEK_SET) != 0 )
! if ( lseek (mainFd, (OFFSET_T)0, SEEK_SET) != 0 )
Later
Mark Hittinger
Mindspring/Netcom/Dallas
bugs at freebsd.netcom.com
msh at freebsd.org
More information about the inn-workers
mailing list