Re: implementing fmemopen, open_memstream

2021-02-22 Thread Bruno Haible
Hi Bruce, > 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. > > Also, I worked for SCO and when it committed seppuku with bad lawyering >

Re: implementing fmemopen, open_memstream

2021-02-21 Thread Bruce Korb
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

Re: implementing fmemopen, open_memstream

2021-02-21 Thread Bruno Haible
Hi Bruce, > I mentioned this a couple of decades ago. There was no solution, so I > rolled my own. > ... > I wanted something that could act like a dropin replacement for > fopen-ing a regular file. There are some quirks (if memory serves), but > it is based on either fopencookie or funopen: W