Lines Matching refs:out

238 static int finalizeAndWrite(struct NanoAppInfo *inf, FILE *out, uint32_t layoutFlags, uint64_t appI…  in finalizeAndWrite()  argument
270 good = fwrite(&outHeader, sizeof(outHeader), 1, out) == 1 && good; in finalizeAndWrite()
273 good = fwrite(&app, sizeof(app), 1, out) == 1 && good; in finalizeAndWrite()
276 good = fwrite(&bin[1], inf->codeAndDataSize, 1, out) == 1 && good; in finalizeAndWrite()
280 good = fwrite(inf->packedNanoReloc, inf->packedNanoRelocSize, 1, out) == 1 && good; in finalizeAndWrite()
403 static int handleApp(uint8_t **pbuf, uint32_t bufUsed, FILE *out, uint32_t layoutFlags, uint64_t ap… in handleApp() argument
421 goto out; in handleApp()
426 goto out; in handleApp()
434 goto out; in handleApp()
439 goto out; in handleApp()
460 goto out; in handleApp()
464 goto out; in handleApp()
476 goto out; in handleApp()
488 goto out; in handleApp()
520 goto out; in handleApp()
525 goto out; in handleApp()
537 goto out; in handleApp()
548 goto out; in handleApp()
566 ret = finalizeAndWrite(&app, out, layoutFlags, appId); in handleApp()
567 out: in handleApp()
573 static int handleKey(uint8_t **pbuf, uint32_t bufUsed, FILE *out, uint32_t layoutFlags, uint64_t ap… in handleKey() argument
593 good = good && fwrite(&outHeader, sizeof(outHeader), 1, out) == 1; in handleKey()
594 good = good && fwrite(&ki, sizeof(ki), 1, out) == 1; in handleKey()
595 good = good && fwrite(buf, bufUsed, 1, out) == 1; in handleKey()
600 static int handleOs(uint8_t **pbuf, uint32_t bufUsed, FILE *out, uint32_t layoutFlags, bool bare) in handleOs() argument
625 good = fwrite(&outHeader, sizeof(outHeader), 1, out) == 1; in handleOs()
627 good = fwrite(&os, sizeof(os), 1, out) == 1; in handleOs()
628 good = good && fwrite(buf, bufUsed, 1, out) == 1; in handleOs()
650 FILE *out = NULL; in main() local
725 out = stdout; in main()
728 out = fopen(posArg[1], "w"); in main()
731 if (!out) in main()
739 ret = handleApp(&buf, bufUsed, out, layoutFlags, appId, appVer, verbose); in main()
742 ret = handleKey(&buf, bufUsed, out, layoutFlags, appId, keyId); in main()
745 ret = handleOs(&buf, bufUsed, out, layoutFlags, bareData); in main()
750 fclose(out); in main()