Hi,

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