/system/core/sh/ |
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);
|
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 | show.c | 166 sharg(union node *arg, FILE *fp) argument 172 if (arg->type != NARG) { 173 printf("<node type %d>\n", arg->type); 176 bqlist = arg->narg.backquote; 177 for (p = arg->narg.text ; *p ; p++) {
|
/system/core/toolbox/ |
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 | kill.c | 116 char* arg = argv[0] + 1; local 117 if (arg_len == 2 && *arg == 'l') { 122 sig = strtol(arg, &endptr, 10); 124 sig = name_to_signal(arg); 126 fprintf(stderr, "invalid signal name: %s\n", arg);
|
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 | 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...] |
H A D | setconsole.c | 13 static void *activate_thread(void *arg) argument 16 int fd = (int)arg;
|
H A D | touch.c | 26 const char *arg = argv[i]+1; local 27 while (arg[0]) { 28 switch (arg[0]) { 46 arg++;
|
/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);
|
H A D | ext4_utils.h | 167 u64 parse_num(const char *arg);
|
/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/bionic/ |
H A D | test_pthread_cond.c | 13 thread1_func(void* arg) argument 15 printf("Thread 1 (arg=%d tid=%d) entered.\n", (unsigned)arg, gettid()); 25 thread2_func(void* arg) argument 27 printf("Thread 2 (arg=%d tid=%d) entered.\n", (unsigned)arg, gettid()); 38 thread3_func(void* arg) argument 40 printf("Thread 3 (arg=%d tid=%d) entered.\n", (unsigned)arg, gettid()); 55 thread4_func(void* arg) argument [all...] |
H A D | test_pthread_create.c | 6 thread1_func(void* arg) argument 8 printf("Thread 1 (arg=%d tid=%d) entered.\n", (unsigned)arg, gettid()); 13 thread2_func(void* arg) argument 15 printf("thread 2 (arg=%d tid=%d) entered.\n", (unsigned)arg, gettid());
|
/system/extras/tests/bionic/libc/common/ |
H A D | test_clock.c | 26 void *cpu_hog(void *arg) argument
|
H A D | test_clone.c | 43 clone_child (void *arg) argument
|
H A D | test_pthread_cleanup_push.c | 42 cleanup1( void* arg ) 44 if ((unsigned)arg != MAGIC1) 51 cleanup2( void* arg ) 53 if ((unsigned)arg != MAGIC2) { 60 cleanup3( void* arg ) 62 if ((unsigned)arg != MAGIC3) 70 thread1_func( void* arg ) 76 if (arg != NULL)
|
H A D | test_pthread_getcpuclockid.c | 39 thread_func( void* arg ) 56 ts.tv_nsec = 300000000 + ((int)arg)*50000000;
|
H A D | test_pthread_join.c | 33 thread1_func(void* arg) argument 41 thread2_func(void* arg) argument 43 pthread_t t1 = (pthread_t)arg; 53 thread3_func(void* arg) argument 55 pthread_t t1 = (pthread_t)arg;
|
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_once.c | 52 thread_function(void* arg) argument 57 printf ("thread %ld: global == %d\n", (long int) arg, global_count);
|
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;
|
H A D | test_sem_post.c | 45 thread_func(void* arg) argument 47 sem_t *psem = (sem_t *)arg;
|