Implement callback functions for archive_read_open