Home
last modified time | relevance | path

Searched refs:arg_start (Results 1 – 6 of 6) sorted by relevance

/system/libufdt/utils/src/
Dmkdtimg_create.c26 static int calculate_args_entry_count(int argc, char *argv[], int arg_start) { in calculate_args_entry_count() argument
30 for (i = arg_start; i < argc; i++) { in calculate_args_entry_count()
56 static int output_img_with_args(FILE *img_fp, int argc, char *argv[], int arg_start) { in output_img_with_args() argument
57 int entry_count = calculate_args_entry_count(argc, argv, arg_start); in output_img_with_args()
62 for (i = arg_start; i < argc; i++) { in output_img_with_args()
118 int handle_command_create(int argc, char *argv[], int arg_start) { in handle_command_create() argument
122 if (argc - arg_start < 1) { in handle_command_create()
127 const char *img_filename = argv[arg_start]; in handle_command_create()
137 ret = output_img_with_args(img_fp, argc, argv, arg_start + 1); in handle_command_create()
Dmkdtimg.c24 extern int handle_command_help(int argc, char *argv[], int arg_start);
26 extern int handle_command_dump(int argc, char *argv[], int arg_start);
28 extern int handle_command_create(int argc, char *argv[], int arg_start);
30 extern int handle_command_cfg_create(int argc, char *argv[], int arg_start);
36 int (*handler)(int argc, char *argv[], int arg_start);
92 int handle_command_help(int argc, char *argv[], int arg_start) { in handle_command_help() argument
95 if (argc - arg_start < 1) { in handle_command_help()
100 if (strcmp(argv[arg_start], "all") == 0) { in handle_command_help()
105 const struct command_info *info = search_command(argv[arg_start]); in handle_command_help()
Dmkdtimg_cfg_create.c169 int handle_command_cfg_create(int argc, char *argv[], int arg_start) { in handle_command_cfg_create() argument
170 if (argc - arg_start < 2) { in handle_command_cfg_create()
177 params.img_filename = argv[arg_start]; in handle_command_cfg_create()
178 params.cfg_filename = argv[arg_start + 1]; in handle_command_cfg_create()
180 optind = arg_start + 2; in handle_command_cfg_create()
Dmkdtimg_dump.c248 int handle_command_dump(int argc, char *argv[], int arg_start) { in handle_command_dump() argument
249 if (argc - arg_start < 1) { in handle_command_dump()
256 params.img_filename = argv[arg_start]; in handle_command_dump()
258 optind = arg_start + 1; in handle_command_dump()
/system/core/fs_mgr/libsnapshot/
Dsnapuserd_daemon.cpp34 int arg_start = gflags::ParseCommandLineFlags(&argc, &argv, true); in StartServer() local
40 for (int i = arg_start; i < argc; i++) { in StartServer()
Dmake_cow_from_ab_ota.cpp681 int arg_start = gflags::ParseCommandLineFlags(&argc, &argv, false); in main() local
685 if (argc - arg_start != 2) { in main()
690 android::snapshot::PayloadConverter pc(argv[arg_start], argv[arg_start + 1]); in main()