The open function returns 2 (ENOFILE) if the file does not exist.