How to create Libc.FILE from a string

To elaborate a bit on why this can’t be done, the trouble is that FILE is an opaque structure that each libc is free to implement however it wants. Julia’s IO handles, on the other hand, are wrappers around libuv file handles and do not correspond to libc FILE handles. They do contain raw int file descriptors somewhere, but getting those out in a generic way is not straightforward either. The fifo approach seems like a good one.

1 Like