Windows: read and write take void* buffers, open takes a const char*