/system/core/init/ |
H A D | ueventd_parser.c | 27 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 D | ueventd.c | 104 void set_device_permission(int nargs, char **args) argument 119 if (args[0][0] == '#') 122 name = args[0]; 125 INFO("/sys/ rule %s %s\n",args[0],args[1]); 126 attr = args[1]; 127 args++; 132 ERROR("invalid line ueventd.rc line for '%s'\n", args[0]); 150 perm = strtol(args[1], &endptr, 8); 152 ERROR("invalid mode '%s'\n", args[ [all...] |
H A D | init.h | 31 int (*func)(int nargs, char **args); 33 char *args[1]; member in struct:command 113 char *args[1]; member in struct:service 114 }; /* ^-------'args' MUST be at the end of this struct! */
|
H A D | init_parser.c | 43 static void *parse_service(struct parse_state *state, int nargs, char **args); 44 static void parse_line_service(struct parse_state *state, int nargs, char **args); 46 static void *parse_action(struct parse_state *state, int nargs, char **args); 47 static void parse_line_action(struct parse_state *state, int nargs, char **args); 60 int (*func)(int nargs, char **args); 158 void parse_line_no_op(struct parse_state *state, int nargs, char **args) argument 163 int nargs, char **args) 165 printf("[ %s %s ]\n", args[0], 166 nargs > 1 ? args[1] : ""); 169 state->context = parse_service(state, nargs, args); 162 parse_new_section(struct parse_state *state, int kw, int nargs, char **args) argument 197 char *args[INIT_PARSER_MAXARGS]; local 399 queue_builtin_action(int (*func)(int nargs, char **args), char *name) argument 439 parse_service(struct parse_state *state, int nargs, char **args) argument 474 parse_line_service(struct parse_state *state, int nargs, char **args) argument 639 parse_action(struct parse_state *state, int nargs, char **args) argument 658 parse_line_action(struct parse_state* state, int nargs, char **args) argument [all...] |
/system/core/libmincrypt/tools/ |
H A D | DumpPublicKey.java | 109 public static void main(String[] args) { argument 110 if (args.length < 1) { 115 for (int i = 0; i < args.length; i++) { 116 FileInputStream input = new FileInputStream(args[i]); 122 System.out.println(i < args.length - 1 ? "," : "");
|
/system/core/adb/ |
H A D | utils.c | 79 va_list args; local 82 va_start(args, format); 83 nn = vsnprintf( buff, avail, format, args); 84 va_end(args);
|
H A D | backup_service.c | 40 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 D | framebuffer_service.c | 71 const char *args[2] = {command, NULL}; local 72 execvp(command, (char**)args);
|
H A D | file_sync_client.c | 813 sync_ls_build_list_cb_args *args = (sync_ls_build_list_cb_args *)cookie; local 817 copyinfo **dirlist = args->dirlist; 825 ci = mkcopyinfo(args->rpath, args->lpath, name, 1); 829 copyinfo **filelist = args->filelist; 831 ci = mkcopyinfo(args->rpath, args->lpath, name, 0); 846 sync_ls_build_list_cb_args args; local 848 args.filelist = filelist; 849 args [all...] |
H A D | sysdeps.h | 155 va_list args; local 156 va_start( args, options ); 157 mode = va_arg( args, int ); 158 va_end( args ); 314 va_list args; local 315 va_start( args, options ); 316 mode = va_arg( args, int ); 317 va_end( args );
|
/system/core/run-as/ |
H A D | run-as.c | 61 * 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 D | test_mutex.c | 37 va_list args; local 38 va_start(args, format); 39 vfprintf(stderr, format, args); 40 va_end(args);
|
/system/extras/bugmailer/src/com/android/commands/sendbug/ |
H A D | SendBug.java | 41 public static void main(String[] args) { argument 42 if (args.length == 1) { 43 new SendBug().run(args[0]); 44 } else if (args.length == 2) { 45 new SendBug().run(args[0], args[1]);
|
/system/vold/ |
H A D | Fat.cpp | 58 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...] |
/system/core/netcfg/ |
H A D | netcfg.c | 116 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/core/nexus/ |
H A D | Controller.cpp | 61 int Controller::loadKernelModule(char *modpath, const char *args) { argument 71 int rc = init_module(module, size, args);
|
/system/netd/ |
H A D | TetherController.cpp | 138 char **args = (char **)malloc(sizeof(char *) * num_processed_args); local 139 args[num_processed_args - 1] = NULL; 140 args[0] = (char *)"/system/bin/dnsmasq"; 141 args[1] = (char *)"--no-daemon"; 142 args[2] = (char *)"--no-resolv"; 143 args[3] = (char *)"--no-poll"; 149 asprintf(&(args[nextArg++]),"--dhcp-range=%s,%s,1h", start, end); 152 if (execv(args[0], args)) { 156 free(args); [all...] |
/system/bluetooth/tools/ |
H A D | pipetest.c | 105 static void thread_poll(void *args) { argument 106 int fd = (int)args; 115 static void thread_pollin(void *args) { argument 116 int fd = (int)args; 125 static void thread_pollin_rand_delay(void *args) { argument 126 int fd = (int)args; 137 static void thread_read(void *args) { argument 138 int fd = (int)args; 144 static void thread_close(void *args) { argument 145 int fd = (int)args; [all...] |
H A D | sock_shutdown_test.c | 218 static void thread_accept(struct thread_args *args) { argument 220 sleep(args->delay); 221 _accept(args->fd, args->type); 228 struct thread_args args = {-1, type, 0}; local 237 args.fd = fd; 238 pthread_create(&thread, NULL, (void *)thread_accept, (void *)&args);
|
H A D | asocket_test.c | 317 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...] |
H A D | socktest.c | 331 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...] |
/system/extras/tests/bionic/libc/common/ |
H A D | test_pthread_mutex.c | 49 va_list args; local 51 va_start(args, format); 52 vfprintf(stderr, format, args); 53 va_end(args); 63 va_list args; local 65 va_start(args, format); 66 vfprintf(stderr, format, args); 67 va_end(args);
|
H A D | test_pthread_rwlock.c | 48 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);
|
/system/extras/tests/lib/testUtil/ |
H A D | testUtil.c | 148 va_list args; local 150 va_start(args, fmt); 151 vsnprintf(line, sizeof(line), fmt, args); 157 vfprintf(stream, fmt, args);
|
/system/core/sh/ |
H A D | nodes.h | 44 union node *args; member in struct:ncmd 73 union node *args; member in struct:nfor
|