Lines Matching refs:outh
283 int outh; in make_a_file() local
287 outh = yaffs_open(yaffsName, in make_a_file()
290 if (outh < 0) { in make_a_file()
291 printf("Error opening file: %d. %s\n", outh, yaffs_error_str()); in make_a_file()
303 yaffs_write(outh, buffer, i); in make_a_file()
308 yaffs_close(outh); in make_a_file()
386 int outh; in cmd_yaffs_mwrite_file() local
388 outh = yaffs_open(fn, O_CREAT | O_RDWR | O_TRUNC, S_IREAD | S_IWRITE); in cmd_yaffs_mwrite_file()
389 if (outh < 0) in cmd_yaffs_mwrite_file()
390 printf("Error opening file: %d, %s\n", outh, yaffs_error_str()); in cmd_yaffs_mwrite_file()
392 yaffs_write(outh, addr, size); in cmd_yaffs_mwrite_file()
394 yaffs_close(outh); in cmd_yaffs_mwrite_file()