if (output < 0){
error_code = yaffs_get_error();
if (abs(error_code) == EINVAL){ /* yaffs uses the error EINVAL instead of big_file */
if (output < 0){
error_code = yaffs_get_error();
if (abs(error_code) == EINVAL){ /* yaffs uses the error EINVAL instead of big_file */