Searched refs:args (Results 1 - 25 of 51) sorted by relevance

123

/system/core/init/
H A Dueventd_parser.h23 void set_device_permission(int nargs, char **args);
H A Dkeywords.h3 int do_chroot(int nargs, char **args);
4 int do_chdir(int nargs, char **args);
5 int do_class_start(int nargs, char **args);
6 int do_class_stop(int nargs, char **args);
7 int do_class_reset(int nargs, char **args);
8 int do_domainname(int nargs, char **args);
9 int do_exec(int nargs, char **args);
10 int do_export(int nargs, char **args);
11 int do_hostname(int nargs, char **args);
12 int do_ifup(int nargs, char **args);
[all...]
H A Dbuiltins.c203 int do_chdir(int nargs, char **args) argument
205 chdir(args[1]);
209 int do_chroot(int nargs, char **args) argument
211 chroot(args[1]);
215 int do_class_start(int nargs, char **args) argument
221 service_for_each_class(args[1], service_start_if_not_disabled);
225 int do_class_stop(int nargs, char **args) argument
227 service_for_each_class(args[1], service_stop);
231 int do_class_reset(int nargs, char **args) argument
233 service_for_each_class(args[
237 do_domainname(int nargs, char **args) argument
242 do_exec(int nargs, char **args) argument
247 do_export(int nargs, char **args) argument
253 do_hostname(int nargs, char **args) argument
258 do_ifup(int nargs, char **args) argument
264 do_insmod_inner(int nargs, char **args, int opt_len) argument
281 do_insmod(int nargs, char **args) argument
294 do_mkdir(int nargs, char **args) argument
363 do_mount(int nargs, char **args) argument
462 do_mount_all(int nargs, char **args) argument
517 do_setcon(int nargs, char **args) argument
528 do_setenforce(int nargs, char **args) argument
539 do_setkey(int nargs, char **args) argument
548 do_setprop(int nargs, char **args) argument
564 do_setrlimit(int nargs, char **args) argument
574 do_start(int nargs, char **args) argument
584 do_stop(int nargs, char **args) argument
594 do_restart(int nargs, char **args) argument
605 do_trigger(int nargs, char **args) argument
611 do_symlink(int nargs, char **args) argument
616 do_rm(int nargs, char **args) argument
621 do_rmdir(int nargs, char **args) argument
626 do_sysclktz(int nargs, char **args) argument
640 do_write(int nargs, char **args) argument
655 do_copy(int nargs, char **args) argument
717 do_chown(int nargs, char **args) argument
744 do_chmod(int nargs, char **args) argument
752 do_restorecon(int nargs, char **args) argument
762 do_setsebool(int nargs, char **args) argument
796 do_loglevel(int nargs, char **args) argument
804 do_load_persist_props(int nargs, char **args) argument
812 do_wait(int nargs, char **args) argument
[all...]
H A Dueventd_parser.c27 static void parse_line_device(struct parse_state *state, int nargs, char **args);
32 char *args[UEVENTD_PARSER_MAXARGS]; local
48 state.parse_line(&state, nargs, args);
54 args[nargs++] = state.text;
72 static void parse_line_device(struct parse_state* state, int nargs, char **args) argument
74 set_device_permission(nargs, args);
H A Dueventd.c111 void set_device_permission(int nargs, char **args) argument
126 if (args[0][0] == '#')
129 name = args[0];
132 INFO("/sys/ rule %s %s\n",args[0],args[1]);
133 attr = args[1];
134 args++;
139 ERROR("invalid line ueventd.rc line for '%s'\n", args[0]);
157 perm = strtol(args[1], &endptr, 8);
159 ERROR("invalid mode '%s'\n", args[
[all...]
H A Dinit_parser.c48 static void *parse_service(struct parse_state *state, int nargs, char **args);
49 static void parse_line_service(struct parse_state *state, int nargs, char **args);
51 static void *parse_action(struct parse_state *state, int nargs, char **args);
52 static void parse_line_action(struct parse_state *state, int nargs, char **args);
65 int (*func)(int nargs, char **args);
169 void parse_line_no_op(struct parse_state *state, int nargs, char **args) argument
291 void parse_import(struct parse_state *state, int nargs, char **args) argument
303 ret = expand_props(conf_file, args[1], sizeof(conf_file));
317 int nargs, char **args)
319 printf("[ %s %s ]\n", args[
316 parse_new_section(struct parse_state *state, int kw, int nargs, char **args) argument
348 char *args[INIT_PARSER_MAXARGS]; local
566 queue_builtin_action(int (*func)(int nargs, char **args), char *name) argument
606 parse_service(struct parse_state *state, int nargs, char **args) argument
641 parse_line_service(struct parse_state *state, int nargs, char **args) argument
816 parse_action(struct parse_state *state, int nargs, char **args) argument
835 parse_line_action(struct parse_state* state, int nargs, char **args) argument
[all...]
H A Dinit_parser.h31 void queue_builtin_action(int (*func)(int nargs, char **args), char *name);
H A Dparser.h31 void (*parse_line)(struct parse_state *state, int nargs, char **args);
H A Dinit.c194 if (stat(svc->args[0], &s) != 0) {
195 ERROR("cannot find '%s', disabling '%s'\n", svc->args[0], svc->name);
201 ERROR("service '%s' must be one-shot to use dynamic args, disabling\n",
202 svc->args[0]);
211 INFO("computing context for service '%s'\n", svc->args[0]);
218 rc = getfilecon(svc->args[0], &fcon);
306 for (n = 0; svc->args[n]; n++) {
307 INFO("args[%d] = '%s'\n", n, svc->args[n]);
346 if (execve(svc->args[
461 char *args = NULL; local
557 wait_for_coldboot_done_action(int nargs, char **args) argument
567 keychord_init_action(int nargs, char **args) argument
573 console_init_action(int nargs, char **args) argument
719 property_service_init_action(int nargs, char **args) argument
730 signal_init_action(int nargs, char **args) argument
736 check_startup_action(int nargs, char **args) argument
751 queue_property_triggers_action(int nargs, char **args) argument
760 bootchart_init_action(int nargs, char **args) argument
[all...]
H A Dinit.h31 int (*func)(int nargs, char **args);
33 char *args[1]; member in struct:command
117 char *args[1]; member in struct:service
118 }; /* ^-------'args' MUST be at the end of this struct! */
/system/vold/
H A DFat.cpp58 const char *args[5]; local
59 args[0] = FSCK_MSDOS_PATH;
60 args[1] = "-p";
61 args[2] = "-f";
62 args[3] = fsPath;
63 args[4] = NULL;
65 rc = logwrap(4, args, 1);
156 const char *args[11]; local
159 args[0] = MKDOSFS_PATH;
160 args[
[all...]
H A DExt4.cpp72 const char *args[4]; local
75 args[0] = MKEXT4FS_PATH;
76 args[1] = "-J";
77 args[2] = fsPath;
78 args[3] = NULL;
79 rc = logwrap(3, args, 1);
/system/netd/
H A DNetdConstants.cpp35 std::string args = ""; local
37 args += *argp;
38 args += ' ';
41 ALOGE("exec() res=%d for %s", res, args.c_str());
44 static int execIptables(IptablesTarget target, bool silent, va_list args) { argument
50 arg = va_arg(args, const char *);
86 va_list args; local
87 va_start(args, target);
88 int res = execIptables(target, false, args);
89 va_end(args);
94 va_list args; local
[all...]
H A DTetherController.cpp139 char **args = (char **)malloc(sizeof(char *) * num_processed_args); local
140 args[num_processed_args - 1] = NULL;
141 args[0] = (char *)"/system/bin/dnsmasq";
142 args[1] = (char *)"--keep-in-foreground";
143 args[2] = (char *)"--no-resolv";
144 args[3] = (char *)"--no-poll";
146 args[4] = (char *)"--dhcp-option-force=43,ANDROID_METERED";
147 args[5] = (char *)"--pid-file";
148 args[6] = (char *)"";
154 asprintf(&(args[nextAr
218 char *args[10]; local
[all...]
/system/core/libsparse/
H A Dsparse_defs.h46 #define error(fmt, args...) do { fprintf(stderr, "error: %s: " fmt "\n", __func__, ## args); } while (0)
47 #define error_errno(s, args...) error(s ": %s", ##args, strerror(errno))
/system/bluetooth/tools/
H A Dsocktest.c331 static void thread_delay_close(struct thread_args *args) { argument
333 sleep(args->delay);
334 _close(args->fd, args->type);
338 static void thread_poll(void *args) { argument
339 int fd = (int)args;
348 static void thread_read(void *args) { argument
349 int fd = (int)args;
355 static void thread_pollin(void *args) { argument
356 int fd = (int)args;
372 thread_accept(struct thread_args *args) argument
379 thread_connect(struct thread_args *args) argument
386 thread_delay_close_write(struct thread_args *args) argument
395 thread_accept_write(struct thread_args *args) argument
404 thread_delay_connect(struct thread_args *args) argument
435 struct thread_args args = {-1, type, 1}; local
460 struct thread_args args = {-1, type, 0}; local
488 struct thread_args args = {-1, type, 0}; local
513 struct thread_args args = {-1, type, 0}; local
543 struct thread_args args = {-1, type, 0}; local
571 struct thread_args args = {-1, type, 1}; local
[all...]
H A Dasocket_test.c317 static void thread_delay_close(struct thread_args *args) { argument
319 sleep(args->delay);
320 _close(args->fd, args->type);
324 static void thread_poll(void *args) { argument
325 int fd = (int)args;
334 static void thread_read(void *args) { argument
335 int fd = (int)args;
341 static void thread_pollin(void *args) { argument
342 int fd = (int)args;
358 thread_accept(struct thread_args *args) argument
365 thread_connect(struct thread_args *args) argument
372 thread_delay_close_write(struct thread_args *args) argument
381 thread_accept_write(struct thread_args *args) argument
390 thread_delay_connect(struct thread_args *args) argument
421 struct thread_args args = {-1, type, 1}; local
446 struct thread_args args = {-1, type, 0}; local
474 struct thread_args args = {-1, type, 0}; local
499 struct thread_args args = {-1, type, 1}; local
[all...]
/system/core/adb/
H A Dbackup_service.c40 static void* backup_child_waiter(void* args) { argument
42 backup_harvest_params* params = (backup_harvest_params*) args;
51 int backup_service(BackupOperation op, char* args) { argument
66 D("backup_service(%s, %s)\n", operation, args);
98 // fixed args: [0] is 'bu', [1] is the port number, [2] is the 'operation' string
100 for (p = (char*)args; p && *p; ) {
114 for (p = (char*)args; p && *p; ) {
H A Dutils.c79 va_list args; local
82 va_start(args, format);
83 nn = vsnprintf( buff, avail, format, args);
84 va_end(args);
/system/core/netcfg/
H A Dnetcfg.c116 static int call_func(void *_func, unsigned nargs, char **args) argument
121 return func(args[0]);
125 return func(args[0], args[1]);
129 return func(args[0], args[1], args[2]);
/system/extras/ext4_utils/
H A Dext4_utils.h58 #define warn(fmt, args...) do { fprintf(stderr, "warning: %s: " fmt "\n", __func__, ## args); } while (0)
59 #define error(fmt, args...) do { fprintf(stderr, "error: %s: " fmt "\n", __func__, ## args); if (!force) longjmp(setjmp_env, EXIT_FAILURE); } while (0)
60 #define error_errno(s, args...) error(s ": %s", ##args, strerror(errno))
61 #define critical_error(fmt, args...) do { fprintf(stderr, "critical error: %s: " fmt "\n", __func__, ## args); longjmp(setjmp_env, EXIT_FAILURE); } while (0)
62 #define critical_error_errno(s, args...) critical_error(s ": %s", ##args, strerro
[all...]
/system/core/run-as/
H A Drun-as.c61 * run-as <package-name> <command> <args>
83 const char* str = "Usage: " PROGNAME " <package-name> <command> [<args>]\n\n";
92 va_list args; local
95 va_start(args, format);
96 vfprintf(stderr, format, args);
97 va_end(args);
/system/extras/tests/bionic/libc/bionic/
H A Dtest_mutex.c37 va_list args; local
38 va_start(args, format);
39 vfprintf(stderr, format, args);
40 va_end(args);
/system/core/toolbox/
H A Dsetsebool.c11 static int do_setsebool(int nargs, char **args) { argument
20 char *name = args[i];
/system/extras/tests/bionic/libc/common/
H A Dtest_pthread_rwlock.c48 va_list args; local
50 va_start(args, format);
51 vfprintf(stderr, format, args);
52 va_end(args);
62 va_list args; local
64 va_start(args, format);
65 vfprintf(stderr, format, args);
66 va_end(args);

Completed in 557 milliseconds

123