Home
last modified time | relevance | path

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

/external/e2fsprogs/lib/ss/
Dhelp.c39 void ss_help(int argc, char const * const *argv, int sci_idx, pointer info_ptr) in ss_help() argument
48 request_name = ss_current_request(sci_idx, &code); in ss_help()
50 ss_perror(sci_idx, code, ""); in ss_help()
54 ss_list_requests(argc, argv, sci_idx, info_ptr); in ss_help()
61 ss_perror(sci_idx, 0, in ss_help()
67 ss_perror(sci_idx, 0, buffer); in ss_help()
71 info = ss_info(sci_idx); in ss_help()
73 ss_perror(sci_idx, SS_ET_NO_INFO_DIR, (char *)NULL); in ss_help()
77 ss_perror(sci_idx, SS_ET_NO_INFO_DIR, (char *)NULL); in ss_help()
84 ss_perror(sci_idx, 0, in ss_help()
[all …]
Dexecute_cmd.c27 char *argv[], int sci_idx));
28 static int really_execute_command PROTOTYPE((int sci_idx, int argc,
86 char *argv[], int sci_idx) in check_request_table() argument
98 info = ss_info(sci_idx); in check_request_table()
106 sci_idx,info->info_ptr); in check_request_table()
135 static int really_execute_command(int sci_idx, int argc, char **argv[]) in really_execute_command() argument
140 info = ss_info(sci_idx); in really_execute_command()
143 if (check_request_table (*rqtbl, argc, *argv, sci_idx) == 0) in really_execute_command()
165 int ss_execute_command(int sci_idx, register char *argv[]) in ss_execute_command() argument
176 i = really_execute_command(sci_idx, argc, &argp); in ss_execute_command()
[all …]
Dtest_ss.c35 static int source_file(const char *cmd_file, int sci_idx) in source_file() argument
75 retval = ss_execute_line(sci_idx, buf); in source_file()
77 ss_perror(sci_idx, retval, buf); in source_file()
89 int sci_idx; in main() local
107 sci_idx = ss_create_invocation(subsystem_name, version, in main()
110 ss_perror(sci_idx, code, "creating invocation"); in main()
114 (void) ss_add_request_table (sci_idx, &ss_std_requests, 1, &code); in main()
116 ss_perror (sci_idx, code, "adding standard requests"); in main()
124 code = ss_execute_line(sci_idx, request); in main()
126 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.c29 register int sci_idx; in ss_create_invocation() local
43 for (sci_idx = 1; table[sci_idx] != (ss_data *)NULL; sci_idx++) in ss_create_invocation()
46 ((unsigned)sci_idx+2)*size); in ss_create_invocation()
52 table[sci_idx+1] = (ss_data *) NULL; in ss_create_invocation()
53 table[sci_idx] = new_table; in ss_create_invocation()
85 ss_get_readline(sci_idx); in ss_create_invocation()
87 return(sci_idx); in ss_create_invocation()
91 ss_delete_invocation(int sci_idx) in ss_delete_invocation() argument
96 t = ss_info(sci_idx); in ss_delete_invocation()
100 ss_delete_info_dir(sci_idx, t->info_dirs[0], &ignored_code); in ss_delete_invocation()
Drequests.c21 int sci_idx, void *infop)
28 int sci_idx, void *infop __SS_ATTR((unused))) in ss_self_identify() argument
30 register ss_data *info = ss_info(sci_idx); in ss_self_identify()
40 int sci_idx, in ss_subsystem_name() argument
43 printf("%s\n", ss_info(sci_idx)->subsystem_name); in ss_subsystem_name()
51 int sci_idx, in ss_subsystem_version() argument
54 printf("%s\n", ss_info(sci_idx)->subsystem_version); in ss_subsystem_version()
63 int sci_idx, void *infop __SS_ATTR((unused))) in ss_unimplemented() argument
65 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.c23 char *ss_name(int sci_idx) in ss_name() argument
28 infop = ss_info(sci_idx); in ss_name()
60 void ss_error (int sci_idx, long code, const char * fmt, ...) in ss_error() argument
66 whoami = ss_name (sci_idx); in ss_error()
72 void ss_perror(int sci_idx, long code, char const *msg) /* for compatibility */ in ss_perror() argument
74 ss_error (sci_idx, code, "%s", msg); in ss_perror()
Dlisten.c49 int ss_listen (int sci_idx) in ss_listen() argument
61 current_info = info = ss_info(sci_idx); in ss_listen()
104 code = ss_execute_line (sci_idx, line); in ss_listen()
115 ss_error (sci_idx, 0, in ss_listen()
130 void ss_abort_subsystem(int sci_idx, int code) in ss_abort_subsystem() argument
132 ss_info(sci_idx)->abort = 1; in ss_abort_subsystem()
133 ss_info(sci_idx)->exit_status = code; in ss_abort_subsystem()
139 int sci_idx, pointer infop __SS_ATTR((unused))) in ss_quit() argument
141 ss_abort_subsystem(sci_idx, 0); in ss_quit()
Dprompt.c23 void ss_set_prompt(int sci_idx, char *new_prompt) in ss_set_prompt() argument
25 ss_info(sci_idx)->prompt = new_prompt; in ss_set_prompt()
28 char *ss_get_prompt(int sci_idx) in ss_get_prompt() argument
30 return(ss_info(sci_idx)->prompt); in ss_get_prompt()
Drequest_tbl.c23 void ss_add_request_table(int sci_idx, ssrt *rqtbl_ptr, int position, int *code_ptr) in ss_add_request_table() argument
29 info = ss_info(sci_idx); in ss_add_request_table()
52 void ss_delete_request_table(int sci_idx, ssrt *rqtbl_ptr, int *code_ptr) in ss_delete_request_table() argument
58 info = ss_info(sci_idx); in ss_delete_request_table()
Dlist_rqs.c23 int sci_idx, void *infop __SS_ATTR((unused))) in ss_list_requests() argument
52 ss_info (sci_idx) -> subsystem_name); in ss_list_requests()
54 for (table = ss_info(sci_idx)->rqt_tables; *table; table++) { in ss_list_requests()
Dget_readline.c43 void ss_get_readline(int sci_idx) in ss_get_readline() argument
46 ss_data *info = ss_info(sci_idx); in ss_get_readline()
97 void ss_get_readline(int sci_idx __SS_ATTR((unused))) in ss_get_readline()
Dparse.c46 char **ss_parse(int sci_idx, register char *line_ptr, int *argc_ptr) in ss_parse() argument
54 ss_error(sci_idx, errno, "Can't allocate storage"); in ss_parse()
126 ss_error (sci_idx, 0, in ss_parse()
/external/e2fsprogs/tests/progs/
Dtest_icount.c247 static int source_file(const char *cmd_file, int sci_idx) in source_file() argument
287 retval = ss_execute_line(sci_idx, buf); in source_file()
289 ss_perror(sci_idx, retval, buf); in source_file()
301 int sci_idx; in main() local
337 sci_idx = ss_create_invocation("test_icount", "0.0", (char *) NULL, in main()
340 ss_perror(sci_idx, retval, "creating invocation"); in main()
344 (void) ss_add_request_table (sci_idx, &ss_std_requests, 1, &retval); in main()
346 ss_perror(sci_idx, retval, "adding standard requests"); in main()
351 retval = ss_execute_line(sci_idx, request); in main()
353 ss_perror(sci_idx, retval, request); in main()
[all …]
Dtest_rel.c663 static int source_file(const char *cmd_file, int sci_idx) in source_file() argument
703 retval = ss_execute_line(sci_idx, buf); in source_file()
705 ss_perror(sci_idx, retval, buf); in source_file()
715 int sci_idx; in main() local
737 sci_idx = ss_create_invocation("test_rel", "0.0", (char *) NULL, in main()
740 ss_perror(sci_idx, retval, "creating invocation"); in main()
744 (void) ss_add_request_table (sci_idx, &ss_std_requests, 1, &retval); in main()
746 ss_perror(sci_idx, retval, "adding standard requests"); in main()
751 retval = ss_execute_line(sci_idx, request); in main()
753 ss_perror(sci_idx, retval, request); in main()
[all …]
/external/e2fsprogs/lib/ext2fs/
Dtst_bitmaps.c38 static int source_file(const char *cmd_file, int sci_idx) in source_file() argument
77 retval = ss_execute_line(sci_idx, buf); in source_file()
79 ss_perror(sci_idx, retval, buf); in source_file()
641 int sci_idx; in main() local
682 sci_idx = ss_create_invocation(subsystem_name, version, in main()
685 ss_perror(sci_idx, code, "creating invocation"); in main()
689 (void) ss_add_request_table (sci_idx, &ss_std_requests, 1, &code); in main()
691 ss_perror(sci_idx, code, "adding standard requests"); in main()
701 code = ss_execute_line(sci_idx, request); in main()
703 ss_perror(sci_idx, code, request); in main()
[all …]
/external/e2fsprogs/debugfs/
Dextent_inode.c98 orig_prompt = ss_get_prompt(sci_idx); in do_extent_open()
111 ss_add_request_table(sci_idx, &extent_cmds, 1, &ret); in do_extent_open()
112 ss_set_prompt(sci_idx, extent_prompt); in do_extent_open()
132 ss_delete_request_table(sci_idx, &extent_cmds, &ret); in do_extent_close()
133 ss_set_prompt(sci_idx, orig_prompt); in do_extent_close()
Ddebugfs.c53 int sci_idx; variable
2517 sci_idx = ss_create_invocation(debug_prog_name, "0.0", (char *) NULL, in main()
2520 ss_perror(sci_idx, retval, "creating invocation"); in main()
2523 ss_get_readline(sci_idx); in main()
2525 (void) ss_add_request_table (sci_idx, &ss_std_requests, 1, &retval); in main()
2527 ss_perror(sci_idx, retval, "adding standard requests"); in main()
2531 ss_add_request_table (sci_idx, extra_cmds, 1, &retval); in main()
2533 ss_perror(sci_idx, retval, "adding extra requests"); in main()
2538 retval = ss_execute_line(sci_idx, request); in main()
2540 ss_perror(sci_idx, retval, request); in main()
[all …]
Ddebugfs.h28 extern int sci_idx;