[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: implementing fmemopen, open_memstream

From: Bruce Korb
Subject: Re: implementing fmemopen, open_memstream
Date: Sun, 21 Feb 2021 17:00:08 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.0


On 2/21/21 3:07 PM, Bruno Haible wrote:
What do you do on
   AIX, HP-UX, Solaris, OpenServer, UnixWare, native Windows ?
Their stdio implementation does not contain function pointers in structs.

One option is to wrap all of the file pointer functions in stdio and have the wrapper look for when it needs to call the wrapped function vs. calling registered functions. That's a bit of work, but it could be gotten to work. Otherwise, it means you can't do a drop-in fopen replacement that works on strings. Having a consistent implementation that works on the first two sets of platforms is about as good as one can do in that case.

Also, I worked for SCO and when it committed seppuku with bad lawyering it pretty much put OpenServer and UnixWare on life support, if that. Who would still be writing stuff for those platforms? :)

Cheers - Bruce

reply via email to

[Prev in Thread] Current Thread [Next in Thread]