/system/core/adb/ |
H A D | services.c | 165 void reboot_service(int fd, void *arg) argument 185 ret = android_reboot(ANDROID_RB_RESTART2, 0, (char *) arg); 190 free(arg); 464 void* arg = strdup(name + 7); local 465 if(arg == 0) return -1; 466 ret = create_service_thread(reboot_service, arg); 470 char* arg = strdup(name+7); local 471 if (arg == NULL) return -1; 472 ret = backup_service(BACKUP, arg);
|
H A D | transport_local.c | 154 static void *server_socket_thread(void * arg) argument 159 int port = (int)arg; 232 static void *qemu_socket_thread(void * arg) argument 241 const int port = (int)arg; 258 adb_thread_create(&thr, server_socket_thread, arg);
|
H A D | fdevent.c | 514 fde->func(fde->fd, events, fde->arg); 575 fdevent *fdevent_create(int fd, fd_func func, void *arg) argument 579 fdevent_install(fde, fd, func, arg); 593 void fdevent_install(fdevent *fde, int fd, fd_func func, void *arg) argument 600 fde->arg = arg;
|
H A D | sysdeps.h | 66 typedef void* (*adb_thread_func_t)(void* arg); 68 typedef void (*win_thread_func_t)(void* arg); 70 static __inline__ int adb_thread_create( adb_thread_t *thread, adb_thread_func_t func, void* arg) argument 72 thread->tid = _beginthread( (win_thread_func_t)func, 0, arg ); 186 fdevent *fdevent_create(int fd, fd_func func, void *arg); 188 void fdevent_install(fdevent *fde, int fd, fd_func func, void *arg); 206 void *arg; member in struct:fdevent 420 typedef void* (*adb_thread_func_t)( void* arg ); 422 static __inline__ int adb_thread_create( adb_thread_t *pthread, adb_thread_func_t start, void* arg ) 429 return pthread_create( pthread, &attr, start, arg ); [all...] |
H A D | sysdeps_win32.c | 1383 if (f == NULL) /* invalid arg */ { 1477 _in_waiter_thread(void* arg) argument 1481 WaitForAllParam* const param = (WaitForAllParam*)arg; 1829 fdevent *fdevent_create(int fd, fd_func func, void *arg) argument 1833 fdevent_install(fde, fd, func, arg); 1847 void fdevent_install(fdevent *fde, int fd, fd_func func, void *arg) argument 1853 fde->arg = arg; 1931 fde->func(fde->fd, events, fde->arg);
|
/system/core/libcorkscrew/ |
H A D | backtrace.c | 74 static _Unwind_Reason_Code unwind_backtrace_callback(struct _Unwind_Context* context, void* arg) { argument 75 backtrace_state_t* state = (backtrace_state_t*)arg;
|
/system/core/sh/ |
H A D | output.c | 510 xioctl(int fd, unsigned long request, char *arg) argument 514 while ((i = ioctl(fd, request, arg)) == -1 && errno == EINTR);
|
H A D | exec.c | 955 char *arg; local 972 while ((arg = *argptr++)) { 974 out1str(arg); 977 if (**pp == *arg && equal(*pp, arg)) 989 if ((ap = lookupalias(arg, 1)) != NULL) { 997 if ((cmdp = cmdlookup(arg, 0)) != NULL) { 1002 find_command(arg, &entry, DO_ABS, pathval()); 1007 if (strchr(arg, '/') == NULL) { 1012 name = padvance(&path, arg); [all...] |
H A D | expand.c | 92 struct arglist exparg; /* holds expanded arg list */ 118 expandhere(union node *arg, int fd) argument 121 expandarg(arg, (struct arglist *)NULL, 0); 134 expandarg(union node *arg, struct arglist *arglist, int flag) argument 139 argbackq = arg->narg.backquote; 143 argstr(arg->narg.text, flag);
|
/system/core/toolbox/ |
H A D | ls.c | 454 const char *arg = argv[i]+1; local 455 while (arg[0]) { 456 switch (arg[0]) { 466 fprintf(stderr, "%s: Unknown option '-%c'. Aborting.\n", "ls", arg[0]); 469 arg++;
|
H A D | mount.c | 95 parse_mount_options(char *arg, unsigned long rwflag, struct extra_opts *extra, int* loop, char *loopdev) argument 100 while ((s = strsep(&arg, ",")) != NULL) { 237 static int get_mounts_dev_dir(const char *arg, char **dev, char **dir) argument 263 (strcmp(arg, mount_dev) == 0 || 264 strcmp(arg, mount_dir) == 0)) {
|
H A D | dd.c | 1030 static const struct arg { struct 1057 struct arg *ap, tmp; 1058 char *oper, *arg; local 1063 if ((arg = strchr(oper, '=')) == NULL) { 1068 *arg++ = '\0'; 1069 if (!*arg) { 1075 if (!(ap = (struct arg *)bsearch(&tmp, args, 1076 sizeof(args)/sizeof(struct arg), sizeof(struct arg), 1090 ap->f(arg); 1159 strsuftoll(const char* name, const char* arg, int def, unsigned int max) argument 1169 f_bs(char *arg) argument 1176 f_cbs(char *arg) argument 1183 f_count(char *arg) argument 1192 f_files(char *arg) argument 1201 f_ibs(char *arg) argument 1209 f_if(char *arg) argument 1216 f_obs(char *arg) argument 1224 f_of(char *arg) argument 1231 f_seek(char *arg) argument 1238 f_skip(char *arg) argument 1245 f_progress(char *arg) argument 1255 f_conv(char *arg) argument 1284 f_conv(char *arg) argument [all...] |
H A D | newfs_msdos.c | 101 #define argto1(arg, lo, msg) argtou(arg, lo, 0xff, msg) 102 #define argto2(arg, lo, msg) argtou(arg, lo, 0xffff, msg) 103 #define argto4(arg, lo, msg) argtou(arg, lo, 0xffffffff, msg) 104 #define argtox(arg, lo, msg) argtou(arg, lo, UINT_MAX, msg) 951 argtou(const char *arg, u_int lo, u_int hi, const char *msg) argument 957 x = strtoul(arg, 967 argtooff(const char *arg, const char *msg) argument [all...] |
/system/extras/ext4_utils/ |
H A D | ext4_utils.c | 430 u64 parse_num(const char *arg) argument 433 u64 num = strtoull(arg, &endptr, 10);
|
/system/extras/procrank/ |
H A D | procrank.c | 133 int arg; local 141 for (arg = 1; arg < argc; arg++) { 142 if (!strcmp(argv[arg], "-v")) { compfn = &sort_by_vss; continue; } 143 if (!strcmp(argv[arg], "-r")) { compfn = &sort_by_rss; continue; } 144 if (!strcmp(argv[arg], "-p")) { compfn = &sort_by_pss; continue; } 145 if (!strcmp(argv[arg], "-u")) { compfn = &sort_by_uss; continue; } 146 if (!strcmp(argv[arg], "-w")) { ws = WS_ONLY; continue; } 147 if (!strcmp(argv[arg], " [all...] |
/system/extras/showmap/ |
H A D | showmap.c | 321 char *arg; local 326 arg = argv[0]; 327 if (!strcmp(arg,"-v")) { 331 if (!strcmp(arg,"-t")) { 335 if (!strcmp(arg,"-a")) { 343 pid = strtol(arg, &argend, 10); 344 if (*arg && !*argend) { 351 fprintf(stderr, "unrecognized argument: %s\n", arg);
|
/system/extras/tests/bionic/libc/common/ |
H A D | test_pthread_mutex.c | 285 static void* do_mutex_test_3_t1(void* arg) argument 287 Test3State *s = arg; 298 static void* do_mutex_test_3_t2(void* arg) argument 300 Test3State *s = arg;
|
H A D | test_pthread_rwlock.c | 256 static void* do_rwlock_test_rd3_t1(void* arg) argument 258 Test3State *s = arg; 275 static void* do_rwlock_test_rd3_t2(void* arg) argument 277 Test3State *s = arg;
|
/system/extras/tests/bionic/libc/other/ |
H A D | test_jpeg.c | 251 const char* arg = &argv[1][1]; local 252 switch (arg[0]) { 254 if (arg[1] == 0) { 257 arg = argv[2]; 261 arg += 1; 263 repeat_count = strtol(arg, NULL, 10); 274 if (arg[1] == 0) { 277 arg = argv[2]; 281 arg += 1; 283 dct_method = strtol(arg, NUL [all...] |
/system/core/fastboot/ |
H A D | fastboot.c | 760 static int64_t parse_num(const char *arg) argument 765 num = strtoull(arg, &endptr, 0); 766 if (endptr == arg) {
|
/system/netd/ |
H A D | CommandListener.cpp | 1349 FirewallRule CommandListener::FirewallCmd::parseRule(const char* arg) { argument 1350 if (!strcmp(arg, "allow")) {
|
/system/core/init/ |
H A D | init.c | 494 void handle_control_message(const char *msg, const char *arg) argument 497 msg_start(arg); 499 msg_stop(arg); 501 msg_stop(arg); 502 msg_start(arg);
|
/system/core/sdcard/ |
H A D | sdcard.c | 1310 char* arg = argv[i]; local 1311 if (!strncmp(arg, "-t", 2)) 1312 num_threads = strtoul(arg + 2, 0, 10); 1314 source_path = arg; 1316 dest_path = arg; 1320 uid = strtoul(arg, &endptr, 10); 1328 gid = strtoul(arg, &endptr, 10);
|
H A D | fuse.h | 508 __u64 arg; member in struct:fuse_ioctl_in
|