Home
last modified time | relevance | path

Searched refs:sci_idx (Results 1 – 20 of 20) sorted by relevance

/external/e2fsprogs/lib/ss/
Dhelp.c38 void ss_help(int argc, char const * const *argv, int sci_idx, pointer info_ptr) in ss_help() argument
47 request_name = ss_current_request(sci_idx, &code); in ss_help()
49 ss_perror(sci_idx, code, ""); in ss_help()
53 ss_list_requests(argc, argv, sci_idx, info_ptr); in ss_help()
60 ss_perror(sci_idx, 0, in ss_help()
66 ss_perror(sci_idx, 0, buffer); in ss_help()
70 info = ss_info(sci_idx); in ss_help()
72 ss_perror(sci_idx, SS_ET_NO_INFO_DIR, (char *)NULL); in ss_help()
76 ss_perror(sci_idx, SS_ET_NO_INFO_DIR, (char *)NULL); in ss_help()
83 ss_perror(sci_idx, 0, in ss_help()
[all …]
Dexecute_cmd.c26 char *argv[], int sci_idx));
27 static int really_execute_command PROTOTYPE((int sci_idx, int argc,
85 char *argv[], int sci_idx) in check_request_table() argument
97 info = ss_info(sci_idx); in check_request_table()
105 sci_idx,info->info_ptr); in check_request_table()
134 static int really_execute_command(int sci_idx, int argc, char **argv[]) in really_execute_command() argument
139 info = ss_info(sci_idx); in really_execute_command()
142 if (check_request_table (*rqtbl, argc, *argv, sci_idx) == 0) in really_execute_command()
164 int ss_execute_command(int sci_idx, register char *argv[]) in ss_execute_command() argument
175 i = really_execute_command(sci_idx, argc, &argp); in ss_execute_command()
[all …]
Dtest_ss.c34 static int source_file(const char *cmd_file, int sci_idx) in source_file() argument
74 retval = ss_execute_line(sci_idx, buf); in source_file()
76 ss_perror(sci_idx, retval, buf); in source_file()
88 int sci_idx; in main() local
106 sci_idx = ss_create_invocation(subsystem_name, version, in main()
109 ss_perror(sci_idx, code, "creating invocation"); in main()
113 (void) ss_add_request_table (sci_idx, &ss_std_requests, 1, &code); in main()
115 ss_perror (sci_idx, code, "adding standard requests"); in main()
123 code = ss_execute_line(sci_idx, request); in main()
125 ss_perror(sci_idx, code, request); in main()
[all …]
Dss.h69 char *ss_name(int sci_idx);
81 void ss_abort_subsystem(int sci_idx, int code);
82 void ss_quit(int argc, const char * const *argv, int sci_idx, void *infop);
83 void ss_self_identify(int argc, const char * const *argv, int sci_idx, void *infop);
85 int sci_idx, void *infop);
87 int sci_idx, void *infop);
89 int sci_idx, void *infop);
90 void ss_set_prompt(int sci_idx, char *new_prompt);
91 char *ss_get_prompt(int sci_idx);
92 void ss_get_readline(int sci_idx);
Dinvocation.c28 register int sci_idx; in ss_create_invocation() local
42 for (sci_idx = 1; table[sci_idx] != (ss_data *)NULL; sci_idx++) in ss_create_invocation()
45 ((unsigned)sci_idx+2)*size); in ss_create_invocation()
50 table[sci_idx+1] = (ss_data *) NULL; in ss_create_invocation()
51 table[sci_idx] = new_table; in ss_create_invocation()
83 ss_get_readline(sci_idx); in ss_create_invocation()
85 return(sci_idx); in ss_create_invocation()
89 ss_delete_invocation(int sci_idx) in ss_delete_invocation() argument
94 t = ss_info(sci_idx); in ss_delete_invocation()
98 ss_delete_info_dir(sci_idx, t->info_dirs[0], &ignored_code); in ss_delete_invocation()
Drequests.c20 int sci_idx, void *infop)
27 int sci_idx, void *infop __SS_ATTR((unused))) in ss_self_identify() argument
29 register ss_data *info = ss_info(sci_idx); in ss_self_identify()
39 int sci_idx, in ss_subsystem_name() argument
42 printf("%s\n", ss_info(sci_idx)->subsystem_name); in ss_subsystem_name()
50 int sci_idx, in ss_subsystem_version() argument
53 printf("%s\n", ss_info(sci_idx)->subsystem_version); in ss_subsystem_version()
62 int sci_idx, void *infop __SS_ATTR((unused))) in ss_unimplemented() argument
64 ss_perror(sci_idx, SS_ET_UNIMPLEMENTED, ""); in ss_unimplemented()
Dss_internal.h80 #define ss_info(sci_idx) (_ss_table[sci_idx]) argument
81 #define ss_current_request(sci_idx,code_ptr) \ argument
82 (*code_ptr=0,ss_info(sci_idx)->current_request)
83 void ss_add_info_dir (int sci_idx, char *info_dir, int *code_ptr);
84 void ss_delete_info_dir (int sci_idx, char *info_dir, int *code_ptr);
85 int ss_execute_line(int sci_idx, char *line_ptr);
86 char **ss_parse(int sci_idx, char *line_ptr, int *argc_ptr);
90 int ss_execute_command(int sci_idx, char *argv[]);
Derror.c22 char *ss_name(int sci_idx) in ss_name() argument
27 infop = ss_info(sci_idx); in ss_name()
59 void ss_error (int sci_idx, long code, const char * fmt, ...) in ss_error() argument
65 whoami = ss_name (sci_idx); in ss_error()
71 void ss_perror(int sci_idx, long code, char const *msg) /* for compatibility */ in ss_perror() argument
73 ss_error (sci_idx, code, "%s", msg); in ss_perror()
Dlisten.c48 int ss_listen (int sci_idx) in ss_listen() argument
60 current_info = info = ss_info(sci_idx); in ss_listen()
103 code = ss_execute_line (sci_idx, line); in ss_listen()
114 ss_error (sci_idx, 0, in ss_listen()
129 void ss_abort_subsystem(int sci_idx, int code) in ss_abort_subsystem() argument
131 ss_info(sci_idx)->abort = 1; in ss_abort_subsystem()
132 ss_info(sci_idx)->exit_status = code; in ss_abort_subsystem()
138 int sci_idx, pointer infop __SS_ATTR((unused))) in ss_quit() argument
140 ss_abort_subsystem(sci_idx, 0); in ss_quit()
Dprompt.c22 void ss_set_prompt(int sci_idx, char *new_prompt) in ss_set_prompt() argument
24 ss_info(sci_idx)->prompt = new_prompt; in ss_set_prompt()
27 char *ss_get_prompt(int sci_idx) in ss_get_prompt() argument
29 return(ss_info(sci_idx)->prompt); in ss_get_prompt()
Drequest_tbl.c22 void ss_add_request_table(int sci_idx, ssrt *rqtbl_ptr, int position, int *code_ptr) in ss_add_request_table() argument
28 info = ss_info(sci_idx); in ss_add_request_table()
51 void ss_delete_request_table(int sci_idx, ssrt *rqtbl_ptr, int *code_ptr) in ss_delete_request_table() argument
57 info = ss_info(sci_idx); in ss_delete_request_table()
Dlist_rqs.c26 int sci_idx, void *infop __SS_ATTR((unused))) in ss_list_requests() argument
56 ss_info (sci_idx) -> subsystem_name); in ss_list_requests()
58 for (table = ss_info(sci_idx)->rqt_tables; *table; table++) { in ss_list_requests()
Dparse.c45 char **ss_parse(int sci_idx, register char *line_ptr, int *argc_ptr) in ss_parse() argument
53 ss_error(sci_idx, errno, "Can't allocate storage"); in ss_parse()
117 ss_error (sci_idx, 0, in ss_parse()
Dget_readline.c41 void ss_get_readline(int sci_idx) in ss_get_readline() argument
45 ss_data *info = ss_info(sci_idx); in ss_get_readline()
/external/e2fsprogs/tests/progs/
Dtest_icount.c246 static int source_file(const char *cmd_file, int sci_idx) in source_file() argument
286 retval = ss_execute_line(sci_idx, buf); in source_file()
288 ss_perror(sci_idx, retval, buf); in source_file()
300 int sci_idx; in main() local
336 sci_idx = ss_create_invocation("test_icount", "0.0", (char *) NULL, in main()
339 ss_perror(sci_idx, retval, "creating invocation"); in main()
343 (void) ss_add_request_table (sci_idx, &ss_std_requests, 1, &retval); in main()
345 ss_perror(sci_idx, retval, "adding standard requests"); in main()
350 retval = ss_execute_line(sci_idx, request); in main()
352 ss_perror(sci_idx, retval, request); in main()
[all …]
Dtest_rel.c662 static int source_file(const char *cmd_file, int sci_idx) in source_file() argument
702 retval = ss_execute_line(sci_idx, buf); in source_file()
704 ss_perror(sci_idx, retval, buf); in source_file()
714 int sci_idx; in main() local
736 sci_idx = ss_create_invocation("test_rel", "0.0", (char *) NULL, in main()
739 ss_perror(sci_idx, retval, "creating invocation"); in main()
743 (void) ss_add_request_table (sci_idx, &ss_std_requests, 1, &retval); in main()
745 ss_perror(sci_idx, retval, "adding standard requests"); in main()
750 retval = ss_execute_line(sci_idx, request); in main()
752 ss_perror(sci_idx, retval, request); in main()
[all …]
/external/e2fsprogs/lib/ext2fs/
Dtst_bitmaps.c37 static int source_file(const char *cmd_file, int sci_idx) in source_file() argument
76 retval = ss_execute_line(sci_idx, buf); in source_file()
78 ss_perror(sci_idx, retval, buf); in source_file()
579 int sci_idx; in main() local
620 sci_idx = ss_create_invocation(subsystem_name, version, in main()
623 ss_perror(sci_idx, code, "creating invocation"); in main()
627 (void) ss_add_request_table (sci_idx, &ss_std_requests, 1, &code); in main()
629 ss_perror(sci_idx, code, "adding standard requests"); in main()
639 code = ss_execute_line(sci_idx, request); in main()
641 ss_perror(sci_idx, code, request); in main()
[all …]
/external/e2fsprogs/debugfs/
Dextent_inode.c97 orig_prompt = ss_get_prompt(sci_idx); in do_extent_open()
105 ss_add_request_table(sci_idx, &extent_cmds, 1, &ret); in do_extent_open()
106 ss_set_prompt(sci_idx, extent_prompt); in do_extent_open()
126 ss_delete_request_table(sci_idx, &extent_cmds, &ret); in do_extent_close()
127 ss_set_prompt(sci_idx, orig_prompt); in do_extent_close()
Ddebugfs.c55 int sci_idx; variable
2481 sci_idx = ss_create_invocation(debug_prog_name, "0.0", (char *) NULL, in main()
2484 ss_perror(sci_idx, retval, "creating invocation"); in main()
2487 ss_get_readline(sci_idx); in main()
2489 (void) ss_add_request_table (sci_idx, &ss_std_requests, 1, &retval); in main()
2491 ss_perror(sci_idx, retval, "adding standard requests"); in main()
2495 ss_add_request_table (sci_idx, extra_cmds, 1, &retval); in main()
2497 ss_perror(sci_idx, retval, "adding extra requests"); in main()
2502 retval = ss_execute_line(sci_idx, request); in main()
2504 ss_perror(sci_idx, retval, request); in main()
[all …]
Ddebugfs.h25 extern int sci_idx;