Limits on 4.2BSD lseek(2)?
John McMamee
jpm at quad1.UUCP
Fri May 16 03:14:38 AEST 1986
> Here is a snatch of the code (from ./misc/article.c in the distribution):
>
> ...
> content = dofetch(*argv);
> if (content.dptr == 0) {
> printf("%s: No such key\n", *argv);
> continue;
> }
> if (lseek(fd, *(long *) content.dptr, 0) < 0)
> continue;
This looks like a problem I've had before. The dbm library does not
align the data to a word boundary, thus you can't always access it
directly. My solution has been to copy the data returned by dbm into
my own structure or buffer and then use that.
--
John P. McNamee Quadratron Systems Inc.
UUCP: {sdcrdcf|ttdica|scgvaxd|mc0|bellcore|logico|ihnp4}!psivax!quad1!jpm
ARPA: jpm at BNL.ARPA
More information about the Comp.bugs.4bsd.ucb-fixes
mailing list