www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1997/12/01/19:39:27

Date: Mon, 1 Dec 1997 19:39:23 -0500 (EST)
Message-Id: <199712020039.TAA26761@delorie.com>
From: DJ Delorie <dj AT delorie DOT com>
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

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019