• Home
  • Raw
  • Download

Lines Matching refs:args

532     char** args = ReadVarArgs(state, argc, argv);  in SetPermFn()  local
533 if (args == NULL) return NULL; in SetPermFn()
539 int uid = strtoul(args[0], &end, 0); in SetPermFn()
540 if (*end != '\0' || args[0][0] == 0) { in SetPermFn()
541 ErrorAbort(state, "%s: \"%s\" not a valid uid", name, args[0]); in SetPermFn()
545 int gid = strtoul(args[1], &end, 0); in SetPermFn()
546 if (*end != '\0' || args[1][0] == 0) { in SetPermFn()
547 ErrorAbort(state, "%s: \"%s\" not a valid gid", name, args[1]); in SetPermFn()
552 int dir_mode = strtoul(args[2], &end, 0); in SetPermFn()
553 if (*end != '\0' || args[2][0] == 0) { in SetPermFn()
554 ErrorAbort(state, "%s: \"%s\" not a valid dirmode", name, args[2]); in SetPermFn()
558 int file_mode = strtoul(args[3], &end, 0); in SetPermFn()
559 if (*end != '\0' || args[3][0] == 0) { in SetPermFn()
561 name, args[3]); in SetPermFn()
566 dirSetHierarchyPermissions(args[i], uid, gid, dir_mode, file_mode); in SetPermFn()
569 int mode = strtoul(args[2], &end, 0); in SetPermFn()
570 if (*end != '\0' || args[2][0] == 0) { in SetPermFn()
571 ErrorAbort(state, "%s: \"%s\" not a valid mode", name, args[2]); in SetPermFn()
576 if (chown(args[i], uid, gid) < 0) { in SetPermFn()
578 name, args[i], uid, gid, strerror(errno)); in SetPermFn()
581 if (chmod(args[i], mode) < 0) { in SetPermFn()
583 name, args[i], mode, strerror(errno)); in SetPermFn()
592 free(args[i]); in SetPermFn()
594 free(args); in SetPermFn()
939 char** args = ReadVarArgs(state, argc, argv); in UIPrintFn() local
940 if (args == NULL) { in UIPrintFn()
947 size += strlen(args[i]); in UIPrintFn()
952 strcpy(buffer+size, args[i]); in UIPrintFn()
953 size += strlen(args[i]); in UIPrintFn()
954 free(args[i]); in UIPrintFn()
956 free(args); in UIPrintFn()
982 char** args = ReadVarArgs(state, argc, argv); in RunProgramFn() local
983 if (args == NULL) { in RunProgramFn()
988 memcpy(args2, args, sizeof(char*) * argc); in RunProgramFn()
1013 free(args[i]); in RunProgramFn()
1015 free(args); in RunProgramFn()
1050 Value** args = ReadValueVarArgs(state, argc, argv); in Sha1CheckFn() local
1051 if (args == NULL) { in Sha1CheckFn()
1055 if (args[0]->size < 0) { in Sha1CheckFn()
1060 SHA(args[0]->data, args[0]->size, digest); in Sha1CheckFn()
1061 FreeValue(args[0]); in Sha1CheckFn()
1070 if (args[i]->type != VAL_STRING) { in Sha1CheckFn()
1073 } else if (ParseSha1(args[i]->data, arg_digest) != 0) { in Sha1CheckFn()
1076 name, args[i]->data); in Sha1CheckFn()
1080 FreeValue(args[i]); in Sha1CheckFn()
1090 FreeValue(args[j]); in Sha1CheckFn()
1092 return args[i]; in Sha1CheckFn()