Lines Matching refs:result
94 char* result = NULL; in MountFn() local
157 result = strdup(""); in MountFn()
163 result = strdup(""); in MountFn()
166 result = mount_point; in MountFn()
173 result = strdup(""); in MountFn()
175 result = mount_point; in MountFn()
183 if (result != mount_point) free(mount_point); in MountFn()
185 return StringValue(result); in MountFn()
191 char* result = NULL; in IsMountedFn() local
207 result = strdup(""); in IsMountedFn()
209 result = mount_point; in IsMountedFn()
213 if (result != mount_point) free(mount_point); in IsMountedFn()
214 return StringValue(result); in IsMountedFn()
219 char* result = NULL; in UnmountFn() local
236 result = strdup(""); in UnmountFn()
243 result = mount_point; in UnmountFn()
247 if (result != mount_point) free(mount_point); in UnmountFn()
248 return StringValue(result); in UnmountFn()
275 char* result = NULL; in FormatFn() local
314 result = strdup(""); in FormatFn()
320 result = strdup(""); in FormatFn()
326 result = strdup(""); in FormatFn()
331 result = strdup(""); in FormatFn()
334 result = location; in FormatFn()
341 result = strdup(""); in FormatFn()
344 result = location; in FormatFn()
349 result = strdup(""); in FormatFn()
359 result = strdup(""); in FormatFn()
362 result = location; in FormatFn()
372 if (result != location) free(location); in FormatFn()
373 return StringValue(result); in FormatFn()
377 char* result = NULL; in RenameFn() local
401 result = dst_name; in RenameFn()
406 result = dst_name; in RenameFn()
411 if (result != dst_name) free(dst_name); in RenameFn()
412 return StringValue(result); in RenameFn()
598 int result = mkdir(name, 0700); in make_parents() local
599 if (result == 0) printf("created [%s]\n", name); in make_parents()
601 if (result == 0 || errno == EEXIST) { in make_parents()
873 Value* result = NULL; in SetMetadataFn() local
886 … result = ErrorAbort(state, "%s: Error on lstat of \"%s\": %s", name, args[0], strerror(errno)); in SetMetadataFn()
908 if (result != NULL) { in SetMetadataFn()
909 return result; in SetMetadataFn()
941 char* result = NULL; in FileGetPropFn() local
1017 result = strdup(val_start); in FileGetPropFn()
1022 if (result == NULL) result = strdup(""); in FileGetPropFn()
1028 return StringValue(result); in FileGetPropFn()
1042 char* result = NULL; in WriteRawImageFn() local
1069 result = strdup(""); in WriteRawImageFn()
1077 result = strdup(""); in WriteRawImageFn()
1090 result = strdup(""); in WriteRawImageFn()
1123 result = success ? partition : strdup(""); in WriteRawImageFn()
1126 if (result != partition) FreeValue(partition_value); in WriteRawImageFn()
1128 return StringValue(result); in WriteRawImageFn()
1211 int result = applypatch(source_filename, target_filename, in ApplyPatchFn() local
1221 return StringValue(strdup(result == 0 ? "t" : "")); in ApplyPatchFn()
1240 int result = applypatch_check(filename, patchcount, sha1s); in ApplyPatchCheckFn() local
1248 return StringValue(strdup(result == 0 ? "t" : "")); in ApplyPatchCheckFn()
1560 int result = tune2fs_main(argc + 1, args2); in Tune2FsFn() local
1568 if (result != 0) { in Tune2FsFn()
1569 return ErrorAbort(state, "%s() returned error code %d", name, result); in Tune2FsFn()