Lines Matching refs:i

79     int i;  in PrintSha1()  local
81 for (i = 0; i < SHA_DIGEST_SIZE; ++i) { in PrintSha1()
82 buffer[i*2] = alphabet[(digest[i] >> 4) & 0xf]; in PrintSha1()
83 buffer[i*2+1] = alphabet[digest[i] & 0xf]; in PrintSha1()
85 buffer[i*2] = '\0'; in PrintSha1()
417 int i; in DeleteFn() local
418 for (i = 0; i < argc; ++i) { in DeleteFn()
419 paths[i] = Evaluate(state, argv[i]); in DeleteFn()
420 if (paths[i] == NULL) { in DeleteFn()
422 for (j = 0; j < i; ++i) { in DeleteFn()
433 for (i = 0; i < argc; ++i) { in DeleteFn()
434 if ((recursive ? dirUnlinkHierarchy(paths[i]) : unlink(paths[i])) == 0) in DeleteFn()
436 free(paths[i]); in DeleteFn()
629 int i; in SymlinkFn() local
630 for (i = 0; i < argc-1; ++i) { in SymlinkFn()
631 if (unlink(srcs[i]) < 0) { in SymlinkFn()
634 name, srcs[i], strerror(errno)); in SymlinkFn()
638 if (make_parents(srcs[i])) { in SymlinkFn()
640 name, srcs[i], target); in SymlinkFn()
643 if (symlink(target, srcs[i]) < 0) { in SymlinkFn()
645 name, srcs[i], target, strerror(errno)); in SymlinkFn()
648 free(srcs[i]); in SymlinkFn()
675 int i; in ParsePermArgs() local
682 for (i = 1; i < argc; i += 2) { in ParsePermArgs()
683 if (strcmp("uid", args[i]) == 0) { in ParsePermArgs()
685 if (sscanf(args[i+1], "%" SCNd64, &uid) == 1) { in ParsePermArgs()
689 uiPrintf(state, "ParsePermArgs: invalid UID \"%s\"\n", args[i + 1]); in ParsePermArgs()
694 if (strcmp("gid", args[i]) == 0) { in ParsePermArgs()
696 if (sscanf(args[i+1], "%" SCNd64, &gid) == 1) { in ParsePermArgs()
700 uiPrintf(state, "ParsePermArgs: invalid GID \"%s\"\n", args[i + 1]); in ParsePermArgs()
705 if (strcmp("mode", args[i]) == 0) { in ParsePermArgs()
707 if (sscanf(args[i+1], "%" SCNi32, &mode) == 1) { in ParsePermArgs()
711 uiPrintf(state, "ParsePermArgs: invalid mode \"%s\"\n", args[i + 1]); in ParsePermArgs()
716 if (strcmp("dmode", args[i]) == 0) { in ParsePermArgs()
718 if (sscanf(args[i+1], "%" SCNi32, &mode) == 1) { in ParsePermArgs()
722 uiPrintf(state, "ParsePermArgs: invalid dmode \"%s\"\n", args[i + 1]); in ParsePermArgs()
727 if (strcmp("fmode", args[i]) == 0) { in ParsePermArgs()
729 if (sscanf(args[i+1], "%" SCNi32, &mode) == 1) { in ParsePermArgs()
733 uiPrintf(state, "ParsePermArgs: invalid fmode \"%s\"\n", args[i + 1]); in ParsePermArgs()
738 if (strcmp("capabilities", args[i]) == 0) { in ParsePermArgs()
740 if (sscanf(args[i+1], "%" SCNi64, &capabilities) == 1) { in ParsePermArgs()
744 uiPrintf(state, "ParsePermArgs: invalid capabilities \"%s\"\n", args[i + 1]); in ParsePermArgs()
749 if (strcmp("selabel", args[i]) == 0) { in ParsePermArgs()
750 if (args[i+1][0] != '\0') { in ParsePermArgs()
751 parsed.selabel = args[i+1]; in ParsePermArgs()
754 uiPrintf(state, "ParsePermArgs: invalid selabel \"%s\"\n", args[i + 1]); in ParsePermArgs()
760 printf("ParsedPermArgs: unknown key \"%s\", ignoring\n", args[i]); in ParsePermArgs()
869 int i; in SetMetadataFn() local
903 for (i = 0; i < argc; ++i) { in SetMetadataFn()
904 free(args[i]); in SetMetadataFn()
1184 int i; in ApplyPatchFn() local
1185 for (i = 0; i < patchcount; ++i) { in ApplyPatchFn()
1186 if (patches[i*2]->type != VAL_STRING) { in ApplyPatchFn()
1187 ErrorAbort(state, "%s(): sha-1 #%d is not string", name, i); in ApplyPatchFn()
1190 if (patches[i*2+1]->type != VAL_BLOB) { in ApplyPatchFn()
1191 ErrorAbort(state, "%s(): patch #%d is not blob", name, i); in ApplyPatchFn()
1195 if (i != patchcount) { in ApplyPatchFn()
1196 for (i = 0; i < patchcount*2; ++i) { in ApplyPatchFn()
1197 FreeValue(patches[i]); in ApplyPatchFn()
1204 for (i = 0; i < patchcount; ++i) { in ApplyPatchFn()
1205 patch_sha_str[i] = patches[i*2]->data; in ApplyPatchFn()
1206 patches[i*2]->data = NULL; in ApplyPatchFn()
1207 FreeValue(patches[i*2]); in ApplyPatchFn()
1208 patches[i] = patches[i*2+1]; in ApplyPatchFn()
1215 for (i = 0; i < patchcount; ++i) { in ApplyPatchFn()
1216 FreeValue(patches[i]); in ApplyPatchFn()
1242 int i; in ApplyPatchCheckFn() local
1243 for (i = 0; i < patchcount; ++i) { in ApplyPatchCheckFn()
1244 free(sha1s[i]); in ApplyPatchCheckFn()
1258 int i; in UIPrintFn() local
1259 for (i = 0; i < argc; ++i) { in UIPrintFn()
1260 size += strlen(args[i]); in UIPrintFn()
1264 for (i = 0; i < argc; ++i) { in UIPrintFn()
1265 strcpy(buffer+size, args[i]); in UIPrintFn()
1266 size += strlen(args[i]); in UIPrintFn()
1267 free(args[i]); in UIPrintFn()
1316 int i; in RunProgramFn() local
1317 for (i = 0; i < argc; ++i) { in RunProgramFn()
1318 free(args[i]); in RunProgramFn()
1358 int i; in Sha1CheckFn() local
1360 for (i = 1; i < argc; ++i) { in Sha1CheckFn()
1361 if (args[i]->type != VAL_STRING) { in Sha1CheckFn()
1363 name, i); in Sha1CheckFn()
1364 } else if (ParseSha1(args[i]->data, arg_digest) != 0) { in Sha1CheckFn()
1367 name, args[i]->data); in Sha1CheckFn()
1371 FreeValue(args[i]); in Sha1CheckFn()
1373 if (i >= argc) { in Sha1CheckFn()
1380 for (j = i+1; j < argc; ++j) { in Sha1CheckFn()
1383 return args[i]; in Sha1CheckFn()
1553 int i; in Tune2FsFn() local
1557 for (i = 0; i < argc; ++i) { in Tune2FsFn()
1558 args2[i + 1] = args[i]; in Tune2FsFn()
1561 for (i = 0; i < argc; ++i) { in Tune2FsFn()
1562 free(args[i]); in Tune2FsFn()