make up the return value from filedump function,

and declare the OPEN_FAIL macro