Mail Archives: djgpp-workers/2003/01/25/09:18:29
According to Richard Dawe:
> > > int function(__FSEXT_Fnumber func_number, int *rv, va_list args);
> >
> > Perhaps we should change FSEXT to return an ssize_t.
>
> If we're going to change it, I would prefer a long long, since then it will
> cope with return values from anything (llseek, etc.). But that's not binarily
> compatible, so what you suggest is better. Unless we're not worried about
> binary compatibility with FSEXTs?
If we don't change it to long long, then a footnote or something
explaining how to handle that int successfully in the llseek FSEXT
handler (basically map [INT_MIN, INT_MAX] to [-1, 2^32-2] or back)
should be written.
Right,
MartinS
- Raw text -