Lines Matching refs:name

93 Value* MountFn(const char* name, State* state, int argc, Expr* argv[]) {  in MountFn()  argument
96 return ErrorAbort(state, "%s() expects 4-5 args, got %d", name, argc); in MountFn()
119 ErrorAbort(state, "fs_type argument to %s() can't be empty", name); in MountFn()
124 name); in MountFn()
128 ErrorAbort(state, "location argument to %s() can't be empty", name); in MountFn()
132 ErrorAbort(state, "mount_point argument to %s() can't be empty", name); in MountFn()
156 name, location); in MountFn()
172 name, location, mount_point, strerror(errno)); in MountFn()
190 Value* IsMountedFn(const char* name, State* state, int argc, Expr* argv[]) { in IsMountedFn() argument
193 return ErrorAbort(state, "%s() expects 1 arg, got %d", name, argc); in IsMountedFn()
218 Value* UnmountFn(const char* name, State* state, int argc, Expr* argv[]) { in UnmountFn() argument
221 return ErrorAbort(state, "%s() expects 1 arg, got %d", name, argc); in UnmountFn()
274 Value* FormatFn(const char* name, State* state, int argc, Expr* argv[]) { in FormatFn() argument
277 return ErrorAbort(state, "%s() expects 5 args, got %d", name, argc); in FormatFn()
290 ErrorAbort(state, "fs_type argument to %s() can't be empty", name); in FormatFn()
295 name); in FormatFn()
299 ErrorAbort(state, "location argument to %s() can't be empty", name); in FormatFn()
304 ErrorAbort(state, "mount_point argument to %s() can't be empty", name); in FormatFn()
313 name, location); in FormatFn()
319 printf("%s: can't write \"%s\"", name, location); in FormatFn()
325 printf("%s: failed to erase \"%s\"", name, location); in FormatFn()
330 printf("%s: failed to close \"%s\"", name, location); in FormatFn()
340 name, status, location); in FormatFn()
358 name, status, location); in FormatFn()
366 name, fs_type, partition_type); in FormatFn()
376 Value* RenameFn(const char* name, State* state, int argc, Expr* argv[]) { in RenameFn() argument
379 return ErrorAbort(state, "%s() expects 2 args, got %d", name, argc); in RenameFn()
389 ErrorAbort(state, "src_name argument to %s() can't be empty", name); in RenameFn()
393 ErrorAbort(state, "dst_name argument to %s() can't be empty", name); in RenameFn()
415 Value* DeleteFn(const char* name, State* state, int argc, Expr* argv[]) { in DeleteFn() argument
430 bool recursive = (strcmp(name, "delete_recursive") == 0); in DeleteFn()
446 Value* ShowProgressFn(const char* name, State* state, int argc, Expr* argv[]) { in ShowProgressFn() argument
448 return ErrorAbort(state, "%s() expects 2 args, got %d", name, argc); in ShowProgressFn()
466 Value* SetProgressFn(const char* name, State* state, int argc, Expr* argv[]) { in SetProgressFn() argument
468 return ErrorAbort(state, "%s() expects 1 arg, got %d", name, argc); in SetProgressFn()
484 Value* PackageExtractDirFn(const char* name, State* state, in PackageExtractDirFn() argument
487 return ErrorAbort(state, "%s() expects 2 args, got %d", name, argc); in PackageExtractDirFn()
512 Value* PackageExtractFileFn(const char* name, State* state, in PackageExtractFileFn() argument
516 name, argc); in PackageExtractFileFn()
533 printf("%s: no %s in package\n", name, zip_path); in PackageExtractFileFn()
540 name, dest_path, strerror(errno)); in PackageExtractFileFn()
565 printf("%s: no %s in package\n", name, zip_path); in PackageExtractFileFn()
573 name, (long)v->size, zip_path); in PackageExtractFileFn()
592 static int make_parents(char* name) { in make_parents() argument
594 for (p = name + (strlen(name)-1); p > name; --p) { in make_parents()
597 if (make_parents(name) < 0) return -1; in make_parents()
598 int result = mkdir(name, 0700); in make_parents()
599 if (result == 0) printf("created [%s]\n", name); in make_parents()
605 printf("failed to mkdir %s: %s\n", name, strerror(errno)); in make_parents()
614 Value* SymlinkFn(const char* name, State* state, int argc, Expr* argv[]) { in SymlinkFn() argument
616 return ErrorAbort(state, "%s() expects 1+ args, got %d", name, argc); in SymlinkFn()
634 name, srcs[i], strerror(errno)); in SymlinkFn()
640 name, srcs[i], target); in SymlinkFn()
645 name, srcs[i], target, strerror(errno)); in SymlinkFn()
652 return ErrorAbort(state, "%s: some symlinks failed", name); in SymlinkFn()
868 static Value* SetMetadataFn(const char* name, State* state, int argc, Expr* argv[]) { in SetMetadataFn() argument
875 bool recursive = (strcmp(name, "set_metadata_recursive") == 0); in SetMetadataFn()
879 name, argc); in SetMetadataFn()
886 … result = ErrorAbort(state, "%s: Error on lstat of \"%s\": %s", name, args[0], strerror(errno)); in SetMetadataFn()
913 return ErrorAbort(state, "%s: some changes failed", name); in SetMetadataFn()
919 Value* GetPropFn(const char* name, State* state, int argc, Expr* argv[]) { in GetPropFn() argument
921 return ErrorAbort(state, "%s() expects 1 arg, got %d", name, argc); in GetPropFn()
940 Value* FileGetPropFn(const char* name, State* state, int argc, Expr* argv[]) { in FileGetPropFn() argument
952 name, filename, strerror(errno)); in FileGetPropFn()
960 filename, name, MAX_FILE_GETPROP_SIZE); in FileGetPropFn()
966 ErrorAbort(state, "%s: failed to alloc %lld bytes", name, (long long)st.st_size+1); in FileGetPropFn()
973 name, filename, strerror(errno)); in FileGetPropFn()
979 name, (long long)st.st_size+1, filename); in FileGetPropFn()
1041 Value* WriteRawImageFn(const char* name, State* state, int argc, Expr* argv[]) { in WriteRawImageFn() argument
1052 ErrorAbort(state, "partition argument to %s must be string", name); in WriteRawImageFn()
1057 ErrorAbort(state, "partition argument to %s can't be empty", name); in WriteRawImageFn()
1061 ErrorAbort(state, "file argument to %s can't be empty", name); in WriteRawImageFn()
1068 printf("%s: no mtd partition named \"%s\"\n", name, partition); in WriteRawImageFn()
1076 name, partition); in WriteRawImageFn()
1089 name, filename, strerror(errno)); in WriteRawImageFn()
1114 printf("%s: error erasing blocks of %s\n", name, partition); in WriteRawImageFn()
1117 printf("%s: error closing write of %s\n", name, partition); in WriteRawImageFn()
1132 Value* ApplyPatchSpaceFn(const char* name, State* state, in ApplyPatchSpaceFn() argument
1143 name, bytes_str); in ApplyPatchSpaceFn()
1153 Value* ApplyPatchFn(const char* name, State* state, int argc, Expr* argv[]) { in ApplyPatchFn() argument
1157 name, argc); in ApplyPatchFn()
1173 name, target_size_str); in ApplyPatchFn()
1187 ErrorAbort(state, "%s(): sha-1 #%d is not string", name, i); in ApplyPatchFn()
1191 ErrorAbort(state, "%s(): patch #%d is not blob", name, i); in ApplyPatchFn()
1225 Value* ApplyPatchCheckFn(const char* name, State* state, in ApplyPatchCheckFn() argument
1229 name, argc); in ApplyPatchCheckFn()
1251 Value* UIPrintFn(const char* name, State* state, int argc, Expr* argv[]) { in UIPrintFn() argument
1275 Value* WipeCacheFn(const char* name, State* state, int argc, Expr* argv[]) { in WipeCacheFn() argument
1277 return ErrorAbort(state, "%s() expects no args, got %d", name, argc); in WipeCacheFn()
1283 Value* RunProgramFn(const char* name, State* state, int argc, Expr* argv[]) { in RunProgramFn() argument
1285 return ErrorAbort(state, "%s() expects at least 1 arg", name); in RunProgramFn()
1337 Value* Sha1CheckFn(const char* name, State* state, int argc, Expr* argv[]) { in Sha1CheckFn() argument
1339 return ErrorAbort(state, "%s() expects at least 1 arg", name); in Sha1CheckFn()
1363 name, i); in Sha1CheckFn()
1367 name, args[i]->data); in Sha1CheckFn()
1388 Value* ReadFileFn(const char* name, State* state, int argc, Expr* argv[]) { in ReadFileFn() argument
1390 return ErrorAbort(state, "%s() expects 1 arg, got %d", name, argc); in ReadFileFn()
1423 Value* RebootNowFn(const char* name, State* state, int argc, Expr* argv[]) { in RebootNowFn() argument
1425 return ErrorAbort(state, "%s() expects 2 args, got %d", name, argc); in RebootNowFn()
1451 ErrorAbort(state, "%s() failed to reboot", name); in RebootNowFn()
1465 Value* SetStageFn(const char* name, State* state, int argc, Expr* argv[]) { in SetStageFn() argument
1467 return ErrorAbort(state, "%s() expects 2 args, got %d", name, argc); in SetStageFn()
1495 Value* GetStageFn(const char* name, State* state, int argc, Expr* argv[]) { in GetStageFn() argument
1497 return ErrorAbort(state, "%s() expects 1 arg, got %d", name, argc); in GetStageFn()
1513 Value* WipeBlockDeviceFn(const char* name, State* state, int argc, Expr* argv[]) { in WipeBlockDeviceFn() argument
1515 return ErrorAbort(state, "%s() expects 2 args, got %d", name, argc); in WipeBlockDeviceFn()
1534 Value* EnableRebootFn(const char* name, State* state, int argc, Expr* argv[]) { in EnableRebootFn() argument
1536 return ErrorAbort(state, "%s() expects no args, got %d", name, argc); in EnableRebootFn()
1543 Value* Tune2FsFn(const char* name, State* state, int argc, Expr* argv[]) { in Tune2FsFn() argument
1545 return ErrorAbort(state, "%s() expects args, got %d", name, argc); in Tune2FsFn()
1550 return ErrorAbort(state, "%s() could not read args", name); in Tune2FsFn()
1556 args2[0] = strdup(name); in Tune2FsFn()
1569 return ErrorAbort(state, "%s() returned error code %d", name, result); in Tune2FsFn()