Searched refs:arg (Results 1 - 25 of 59) 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
H A Dandroid_reboot.c104 int android_reboot(int cmd, int flags, char *arg) argument
125 LINUX_REBOOT_CMD_RESTART2, arg);
/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
H A Dtest_pthread_getcpuclockid.c39 thread_func( void* arg )
56 ts.tv_nsec = 300000000 + ((int)arg)*50000000;
H A Dtest_sem_post.c45 thread_func(void* arg) argument
47 sem_t *psem = (sem_t *)arg;
/system/core/include/cutils/
H A Dandroid_reboot.h31 int android_reboot(int cmd, int flags, char *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/toolbox/
H A Dtouch.c26 const char *arg = argv[i]+1; local
27 while (arg[0]) {
28 switch (arg[0]) {
46 arg++;
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...]
/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.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/tests/memtest/
H A Dthumb.cpp8 extern "C" _Unwind_Reason_Code trace_function(_Unwind_Context *context, void *arg) argument
/system/netd/
H A DNetdConstants.cpp48 const char* arg; local
50 arg = va_arg(args, const char *);
51 argsList.push_back(arg);
52 } while (arg);
H A DSoftapController.h33 int addParam(int pos, const char *cmd, const char *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;
117 while (arg < end) {
118 switch (*arg) {
123 *(current++) = *(arg++);

Completed in 192 milliseconds

123