From owner-freebsd-hackers Fri Jan 19 15:16:18 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id PAA23767 for hackers-outgoing; Fri, 19 Jan 1996 15:16:18 -0800 (PST) Received: from time.cdrom.com (time.cdrom.com [192.216.222.226]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id PAA23761 for ; Fri, 19 Jan 1996 15:16:16 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by time.cdrom.com (8.6.12/8.6.9) with SMTP id PAA01934; Fri, 19 Jan 1996 15:15:39 -0800 To: Terry Lambert cc: torek@BSDI.COM, markd@grizzly.com, hackers@FreeBSD.ORG Subject: Re: Change to stdio.h to export `cookie?' In-reply-to: Your message of "Thu, 18 Jan 1996 15:10:03 MST." <199601182210.PAA06336@phaeton.artisoft.com> Date: Fri, 19 Jan 1996 15:15:39 -0800 Message-ID: <1932.822093339@time.cdrom.com> From: "Jordan K. Hubbard" Sender: owner-hackers@FreeBSD.ORG Precedence: bulk > Personally, I'd use: > > struct myfile { > FILE *fp; > caddr_t *userdata; > } > > And wrapper all FILE * manipulation functions instead. That implies that you can easily change all the references to it. In this particular case, I don't feel like munging the insides of TCL, nor would I wish to maintain said hacks even if it were relatively easy.. :-) There are some genuine situations where one would really just like to associate a little extra data with a FILE*, and I think that making some very small provisions for it is not that out of line. Jordan