/** * Deletes the main image version number from the boot vector. * * @return 0 on success; nonzero on failure. */ int boot_vect_delete_main(void) { int rc; rc = nffs_unlink(BOOT_PATH_MAIN); return rc; }
/** * Deletes the test image version number from the boot vector. * * @return 0 on success; nonzero on failure. */ int boot_vect_delete_test(void) { int rc; rc = nffs_unlink(BOOT_PATH_TEST); return rc; }
int tr_io_delete(const char *path) { int rc; rc = nffs_unlink(path); if (rc != 0 && rc != NFFS_ENOENT) { return -1; } return 0; }
/** * Erases the boot status from the flash file system. The boot status * contains the current state of an in-progress image copy operation. By * erasing the boot status, it is implied that there is no copy operation in * progress. */ void boot_clear_status(void) { nffs_unlink(BOOT_PATH_STATUS); }