Do you know why there's a first open() call, and then a second one which seems to be the one that is useful?