Searched refs:arg (Results 26 - 50 of 59) sorted by relevance

123

/system/extras/tests/bionic/libc/other/
H A Dtest_zlib.c187 const char* arg = &argv[1][1]; local
188 switch (arg[0]) {
190 if (arg[1] == 0) {
193 arg = argv[2];
197 arg += 1;
199 repeat_count = strtol(arg, NULL, 10);
207 compression_level = arg[0] - '0';
/system/extras/tests/bionic/libc/common/
H A Dtest_clone.c43 clone_child (void *arg) argument
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;
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;
/system/core/libsync/
H A Dsync.c98 __u32 arg = count; local
100 return ioctl(fd, SW_SYNC_IOC_INC, &arg);
/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/core/sh/
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 Dshow.c166 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/adb/
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 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;
/system/core/toolbox/
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 Dsetconsole.c13 static void *activate_thread(void *arg) argument
16 int fd = (int)arg;
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 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/core/libion/
H A Dion.c46 static int ion_ioctl(int fd, int req, void *arg) argument
48 int ret = ioctl(fd, req, arg);
/system/security/keystore/
H A Dkeystore_client.cpp42 uint8_t* arg = va_arg(vl, uint8_t*); local
52 || TEMP_FAILURE_RETRY(send(sock, arg, argLen, MSG_NOSIGNAL))
/system/core/include/sysutils/
H A DSocketClient.h67 // return a new string in quotes with '\\' and '\"' escaped for "my arg" transmissions
68 static char *quoteArg(const char *arg);
/system/core/init/
H A Dinit.h24 void handle_control_message(const char *msg, const char *arg);
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/netd/
H A DCommandListener.h137 static FirewallRule parseRule(const char* arg);
/system/core/libsuspend/
H A Dautosuspend_earlysuspend.c78 static void *earlysuspend_thread_func(void *arg) argument
H A Dautosuspend_wakeup_count.c41 static void *suspend_thread_func(void *arg __attribute__((unused)))
/system/extras/ext4_utils/
H A Dext4_utils.h167 u64 parse_num(const char *arg);

Completed in 45 milliseconds

123