Compose flag in open()