heather@sdcc4.ucsd.edu (Heather Ebey) (06/13/91)
I am trying to compile CAP 6.0 (all 25 patches applied) under HPUX 7.0.
I've had trouble with two symbols (one solved). The one I solved is to
add scandir.o to the makefile. It was in 5.0 but was taken out of 6.0,
but I still need it.
I am currently unsure what to do about line 362 in
applications/aufs/afpdt.c.
floc = tell(dt->dt_afd) - ((off_t)sizeof(afr));/* remember where we are */
On a Sun I found a reference to the obsolete "tell" in the man page
for lseek. Can anyone verify that changing the line to the following is
what was intended?
floc = lseek(dt->dt_afd) - ((off_t)sizeof(afr),0L, L_INCR);
Thank you.
--Heather
--
Heather Ebey == Internet: hebey@ucsd.edu == Bitnet: hebey@ucsd
UC San Diego, Instructional Computing Center, 0110
9500 Gilman Drive, La Jolla, CA. 92093-0110
====== Office: (619) 534-7987 == FAX: (619) 534-7018 ======kre@cs.mu.oz.au (Robert Elz) (06/13/91)
heather@sdcc4.ucsd.edu (Heather Ebey) writes: >Can anyone verify that changing the line to the following is >what was intended? >floc = lseek(dt->dt_afd) - ((off_t)sizeof(afr),0L, L_INCR); It would be, except you misinterpreted the parentheses, try floc = lseek(dt->dt_afd, 0L, L_INCR) - ((off_t)sizeof(afr)); (djh: this should be in patch 26, tell() is very very obsolete). kre