Searched refs:arg (Results 1 - 25 of 66) sorted by relevance

123

/system/extras/tests/bionic/libc/bionic/
H A Dtest_pthread_create.c6 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());
H A Dtest_pthread_cond.c13 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...]
/system/core/libcutils/
H A Ddlmalloc_stubs.c26 void* arg)
25 dlmalloc_inspect_all(void(*handler)(void*, void *, size_t, void*), void* arg) argument
/system/extras/tests/bionic/libc/common/
H A Dtest_pthread_cleanup_push.c42 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 Dtest_pthread_join.c33 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 Dtest_pthread_once.c52 thread_function(void* arg) argument
57 printf ("thread %ld: global == %d\n", (long int) arg, global_count);
H A Dtest_clock.c26 void *cpu_hog(void *arg) argument
/system/core/debuggerd/
H A Dcrasher.c24 static int do_action(const char* arg);
100 static int do_action_on_thread(const char* arg) argument
103 pthread_create(&t, NULL, thread_callback, (void*) arg);
129 static int do_action(const char* arg) argument
133 if (!strncmp(arg, "thread-", strlen("thread-"))) {
134 return do_action_on_thread(arg + strlen("thread-"));
135 } else if (!strcmp(arg,"smash-stack")) {
137 } else if (!strcmp(arg,"stack-overflow")) {
139 } else if (!strcmp(arg,"nostack")) {
141 } else if (!strcmp(arg,"ctes
[all...]
/system/core/include/cutils/
H A Dandroid_reboot.h30 int android_reboot(int cmd, int flags, char *arg);
/system/core/fastbootd/
H A Dcommands.c40 static void cmd_boot(struct protocol_handle *phandle, const char *arg) argument
79 static void cmd_erase(struct protocol_handle *phandle, const char *arg) argument
91 ptn = ptable_find(ptable, arg);
105 static void cmd_flash(struct protocol_handle *phandle, const char *arg) argument
118 ptn = ptable_find(ptable, arg);
146 static void cmd_continue(struct protocol_handle *phandle, const char *arg) argument
156 static void cmd_getvar(struct protocol_handle *phandle, const char *arg) argument
159 D(DEBUG, "cmd_getvar %s\n", arg);
161 value = fastboot_getvar(arg);
166 static void cmd_download(struct protocol_handle *phandle, const char *arg) argument
[all...]
H A Dprotocol.h47 void (*handle)(struct protocol_handle *handle, const char *arg));
H A Dtransport.c85 static void *transport_data_thread(void *arg) argument
87 struct transport_handle *thandle = arg;
112 static void *transport_connect_thread(void *arg) argument
114 struct transport *transport = arg;
/system/core/adb/
H A Dfdevent.h39 fdevent *fdevent_create(int fd, fd_func func, void *arg);
48 void fdevent_install(fdevent *fde, int fd, fd_func func, void *arg);
79 void *arg; member in struct:fdevent
/system/extras/tests/bionic/libc/other/
H A Dtest_thread_max.c34 thread_func( void* arg )
36 fprintf(stderr, "thread %ld\n", (long)arg );
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/libnl_2/
H A Dhandlers.c58 nl_recvmsg_msg_cb_t func, void *arg)
61 cb->cb_args[type] = arg;
69 nl_recvmsg_err_cb_t func, void *arg)
72 cb->cb_err_arg = arg;
57 nl_cb_set(struct nl_cb *cb, enum nl_cb_type type, enum nl_cb_kind kind, \ nl_recvmsg_msg_cb_t func, void *arg) argument
68 nl_cb_err(struct nl_cb *cb, enum nl_cb_kind kind, \ nl_recvmsg_err_cb_t func, void *arg) argument
/system/core/mkbootimg/
H A Dmkbootimg.c124 char *arg = argv[0]; local
131 if(!strcmp(arg, "--output") || !strcmp(arg, "-o")) {
133 } else if(!strcmp(arg, "--kernel")) {
135 } else if(!strcmp(arg, "--ramdisk")) {
137 } else if(!strcmp(arg, "--second")) {
139 } else if(!strcmp(arg, "--cmdline")) {
141 } else if(!strcmp(arg, "--base")) {
143 } else if(!strcmp(arg, "--kernel_offset")) {
145 } else if(!strcmp(arg, "
[all...]
/system/extras/procrank/
H A Dprocrank.c139 int arg; local
147 for (arg = 1; arg < argc; arg++) {
148 if (!strcmp(argv[arg], "-v")) { compfn = &sort_by_vss; continue; }
149 if (!strcmp(argv[arg], "-r")) { compfn = &sort_by_rss; continue; }
150 if (!strcmp(argv[arg], "-p")) { compfn = &sort_by_pss; continue; }
151 if (!strcmp(argv[arg], "-u")) { compfn = &sort_by_uss; continue; }
152 if (!strcmp(argv[arg], "-s")) { compfn = &sort_by_swap; continue; }
153 if (!strcmp(argv[arg], "
[all...]
/system/extras/tests/memtest/
H A Dthumb.cpp8 extern "C" _Unwind_Reason_Code trace_function(_Unwind_Context *context, void *arg) argument
/system/core/toolbox/
H A Dkill.c116 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 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 Dtouch.c53 const char *arg = argv[i]+1; local
54 while (arg[0]) {
55 switch (arg[0]) {
73 arg++;
/system/core/fastboot/
H A Dusbtest.c154 char *arg = *argv++; local
155 if(!strncmp(arg,"count=",6)) {
156 arg_count = atoi(arg + 6);
157 } else if(!strncmp(arg,"size=",5)) {
158 arg_size = atoi(arg + 5);
160 fprintf(stderr,"unknown argument: %s\n", arg);
/system/core/libsysutils/src/
H A DSocketClient.cpp110 char *SocketClient::quoteArg(const char *arg) { argument
111 int len = strlen(arg);
114 const char *end = arg + len;
123 while (arg < end) {
124 switch (*arg) {
129 *(current++) = *(arg++);
/system/netd/
H A DNetdConstants.cpp69 const char* arg; local
71 arg = va_arg(args, const char *);
72 argsList.push_back(arg);
73 } while (arg);

Completed in 242 milliseconds

123