Mail Archives: djgpp-workers/1997/12/01/19:39:27
Would it make more sense to have a separate pair of calls:
void *_fsext_get_data(int fd);
void *_fsext_set_data(int fd, void *);
Since "fd" is usually a small int (0..255) we can easily make an array
of these pointers, and the extensions that don't use extra data won't
have to change at all, nor will the clients (libc functions).
Another issue to keep in mind is freeing the memory for that data
properly. We need to ensure that the fsext always has an opportunity
to clean up, and that it takes advantage of that opportunity.
- Raw text -