You may not really know the openMode in this case, where creating from a pre-existing handle.
If fcntl(file, F_GETFL) is portable, then I think it would be better in this context.