Home
last modified time | relevance | path

Searched refs:ptemp (Results 1 – 1 of 1) sorted by relevance

/bootable/recovery/applypatch/
Dimgdiff.c625 char ptemp[] = "/tmp/imgdiff-patch-XXXXXX"; in MakePatch() local
626 mkstemp(ptemp); in MakePatch()
628 int r = bsdiff(src->data, src->len, &(src->I), tgt->data, tgt->len, ptemp); in MakePatch()
635 if (stat(ptemp, &st) != 0) { in MakePatch()
637 ptemp, strerror(errno)); in MakePatch()
644 unlink(ptemp); in MakePatch()
653 FILE* f = fopen(ptemp, "rb"); in MakePatch()
655 printf("failed to open patch %s: %s\n", ptemp, strerror(errno)); in MakePatch()
659 printf("failed to read patch %s: %s\n", ptemp, strerror(errno)); in MakePatch()
664 unlink(ptemp); in MakePatch()