O_RDONLY enhancement