Searched defs:arg (Results 26 - 49 of 49) sorted by relevance

12

/system/core/adb/
H A Dservices.c165 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 Dtransport_local.c154 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 Dfdevent.c514 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 Dsysdeps.h66 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 Dsysdeps_win32.c1383 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 Dbacktrace.c74 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 Doutput.c510 xioctl(int fd, unsigned long request, char *arg) argument
514 while ((i = ioctl(fd, request, arg)) == -1 && errno == EINTR);
H A Dexec.c955 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 Dexpand.c92 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 Dls.c454 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 Dmount.c95 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 Ddd.c1030 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 Dnewfs_msdos.c101 #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 Dext4_utils.c430 u64 parse_num(const char *arg) argument
433 u64 num = strtoull(arg, &endptr, 10);
/system/extras/procrank/
H A Dprocrank.c133 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 Dshowmap.c321 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 Dtest_pthread_mutex.c285 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 Dtest_pthread_rwlock.c256 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 Dtest_jpeg.c251 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 Dfastboot.c760 static int64_t parse_num(const char *arg) argument
765 num = strtoull(arg, &endptr, 0);
766 if (endptr == arg) {
/system/netd/
H A DCommandListener.cpp1349 FirewallRule CommandListener::FirewallCmd::parseRule(const char* arg) { argument
1350 if (!strcmp(arg, "allow")) {
/system/core/init/
H A Dinit.c494 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 Dsdcard.c1310 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 Dfuse.h508 __u64 arg; member in struct:fuse_ioctl_in

Completed in 7328 milliseconds

12