Mail Archives: djgpp-workers/2002/12/19/18:39:44
we have lseek and llseek, which are identical except the fs_ext call to
lseek or llseek, and if they return long or long long. It seems the
sane thing to do would be to make a common piece of code (for example,
have lseek call llseek..). Both are called in each image.
We also have filelen and lfilelen which are very similar, and are both
called in each image. Each of these 2 modules does a seek 3 times.
And we have _isexec which does a seek 3 times ...
So in all we have 11 places in libc which do seeks.
I'm thinking of a _seek() primative which wraps the core interrupt
call (sets registers, call dpmi_int, errno handling, return).
Thoughts?
- Raw text -