Limits on 4.2BSD lseek(2)?
Erik E. Fair
fair at styx.UUCP
Fri May 16 03:26:05 AEST 1986
This comes about because the dbm(3) library does not guarantee to
deliver things aligned on the appropriate boundary. What you need
to do is (approximately):
dp = fetch(key);
bcopy(offp, dp->d_data, sizeof(offp));
lseek(fd, *offp, 0);
Declare offp so that it is guaranteed to be aligned, and copy all
pointers you wish to dereference into it before dereff'ing them.
Erik E. Fair styx!fair fair at lll-tis-b.arpa
More information about the Comp.bugs.4bsd.ucb-fixes
mailing list