Use char arrays instead of file descriptors.