Date: Mon, 1 Dec 1997 19:39:23 -0500 (EST) Message-Id: <199712020039.TAA26761@delorie.com> From: DJ Delorie To: randym AT acm DOT org CC: djgpp-workers AT delorie DOT com In-reply-to: <3.0.1.32.19971201075639.007f8270@yacker.xiotech.com> (message from Randy Maas on Mon, 01 Dec 1997 07:56:39 -0600) Subject: Re: patch for fsext.h Precedence: bulk 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.