Home
last modified time | relevance | path

Searched refs:ap (Results 1 – 25 of 33) sorted by relevance

12

/system/core/sh/
Dalias.c67 struct alias *ap, **app; in setalias() local
70 for (ap = *app; ap; ap = ap->next) { in setalias()
71 if (equal(name, ap->name)) { in setalias()
73 ckfree(ap->val); in setalias()
74 ap->val = savestr(val); in setalias()
81 ap = ckmalloc(sizeof (struct alias)); in setalias()
82 ap->name = savestr(name); in setalias()
101 ap->val = savestr(val); in setalias()
105 ap->val = ckmalloc(len + 2); in setalias()
106 memcpy(ap->val, val, len); in setalias()
[all …]
Derror.c125 exvwarning(int sv_errno, const char *msg, va_list ap) in exvwarning() argument
138 doformat(&errout, msg, ap); in exvwarning()
154 exverror(int cond, const char *msg, va_list ap) in exverror() argument
162 TRACEV((msg, ap)); in exverror()
168 exvwarning(-1, msg, ap); in exverror()
179 va_list ap; in error() local
181 va_start(ap, msg); in error()
182 exverror(EXERROR, msg, ap); in error()
184 va_end(ap); in error()
191 va_list ap; in exerror() local
[all …]
Doutput.c213 va_list ap; in outfmt() local
215 va_start(ap, fmt); in outfmt()
216 doformat(file, fmt, ap); in outfmt()
217 va_end(ap); in outfmt()
224 va_list ap; in out1fmt() local
226 va_start(ap, fmt); in out1fmt()
227 doformat(out1, fmt, ap); in out1fmt()
228 va_end(ap); in out1fmt()
234 va_list ap; in dprintf() local
236 va_start(ap, fmt); in dprintf()
[all …]
Dtrap.c135 char **ap; in trapcmd() local
148 ap = argv + 1; in trapcmd()
152 if (strcmp(*ap, "--") == 0) in trapcmd()
153 if (*++ap == NULL) in trapcmd()
156 if (signame_to_signum(*ap) == -1) { in trapcmd()
157 if ((*ap)[0] == '-') { in trapcmd()
158 if ((*ap)[1] == '\0') in trapcmd()
159 ap++; in trapcmd()
160 else if ((*ap)[1] == 'l' && (*ap)[2] == '\0') { in trapcmd()
165 error("bad option %s\n", *ap); in trapcmd()
[all …]
Dmiscbltin.c91 char **ap; in readcmd() local
117 if (*(ap = argptr) == NULL) in readcmd()
178 if (ap[1] == NULL) { in readcmd()
186 setvar(*ap, stackblock(), 0); in readcmd()
187 ap++; in readcmd()
203 setvar(*ap, stackblock(), 0); in readcmd()
206 while (*++ap != NULL) in readcmd()
207 setvar(*ap, nullstr, 0); in readcmd()
216 char *ap; in umaskcmd() local
230 if ((ap = *argptr) == NULL) { in umaskcmd()
[all …]
Doptions.c275 char **ap; in setparam() local
279 ap = newparam = ckmalloc((nparam + 1) * sizeof *ap); in setparam()
281 *ap++ = savestr(*argv++); in setparam()
283 *ap = NULL; in setparam()
299 char **ap; in freeparam() local
302 for (ap = param->p ; *ap ; ap++) in freeparam()
303 ckfree(*ap); in freeparam()
Dinput.c79 struct alias *ap; /* if push was associated with an alias */ member
386 pushstring(char *s, int len, void *ap) in pushstring() argument
401 sp->ap = (struct alias *)ap; in pushstring()
402 if (ap) in pushstring()
403 ((struct alias *)ap)->flag |= ALIASINUSE; in pushstring()
419 if (sp->ap) in popstring()
420 sp->ap->flag &= ~ALIASINUSE; in popstring()
Darith.y143 char **ap; local
153 ap = argv + 2;
157 if ((p = *ap++) == NULL)
Dexec.c221 char **ap; in execinterp() local
229 ap = newargs; in execinterp()
237 if (ap == &newargs[NEWARGS]) in execinterp()
245 *ap++ = grabstackstr(outp); in execinterp()
247 if (ap == newargs + 1) { /* if no args, maybe no exec is needed */ in execinterp()
262 i = (char *)ap - (char *)newargs; /* size in bytes */ in execinterp()
267 ap = newargs, ap2 = new; in execinterp()
269 *ap2++ = *ap++; in execinterp()
270 ap = argv; in execinterp()
271 while (*ap2++ = *ap++); in execinterp()
[all …]
Dshow.c359 trargs(char **ap) in trargs() argument
364 while (*ap) { in trargs()
365 trstring(*ap++); in trargs()
366 if (*ap) in trargs()
Dparser.c291 union node *ap, **app; in command() local
366 app = ≈ in command()
376 n1->nfor.args = ap; in command()
428 *app = ap = (union node *)stalloc(sizeof (struct narg)); in command()
429 ap->type = NARG; in command()
430 ap->narg.text = wordtext; in command()
431 ap->narg.backquote = backquotelist; in command()
434 app = &ap->narg.next; in command()
437 ap->narg.next = NULL; in command()
721 struct alias *ap; in readtoken() local
[all …]
Dexpand.c799 char *ap; in varisset() local
806 ap = arg0; in varisset()
808 ap = shellparam.p[num - 1]; in varisset()
810 if (nulok && (ap == NULL || *ap == '\0')) in varisset()
829 char **ap; in varvalue() local
870 for (ap = shellparam.p ; (p = *ap++) != NULL ; ) { in varvalue()
872 if (*ap) in varvalue()
883 for (ap = shellparam.p ; (p = *ap++) != NULL ; ) { in varvalue()
885 if (*ap && sep) in varvalue()
Dvar.c709 char **ap; in unsetcmd() local
724 for (ap = argptr; *ap ; ap++) { in unsetcmd()
726 ret |= unsetfunc(*ap); in unsetcmd()
728 ret |= unsetvar(*ap, flg_var == 'e'); in unsetcmd()
/system/core/sh/bltin/
Decho.c61 char **ap; in echocmd() local
68 ap = argv; in echocmd()
70 ap++; in echocmd()
72 if ((p = *ap) != NULL) { in echocmd()
75 ap++; in echocmd()
78 ap++; in echocmd()
82 while ((p = *ap++) != NULL) { in echocmd()
110 if (*ap) in echocmd()
/system/core/libnl_2/
Ddbg.c6 va_list ap; in libnl_printf() local
9 va_start(ap, format); in libnl_printf()
10 __android_log_vprint(level, "libnl_2", format, ap); in libnl_printf()
11 va_end(ap); in libnl_printf()
/system/core/liblog/
Dlogd_write.c190 int __android_log_vprint(int prio, const char *tag, const char *fmt, va_list ap) in __android_log_vprint() argument
194 vsnprintf(buf, LOG_BUF_SIZE, fmt, ap); in __android_log_vprint()
201 va_list ap; in __android_log_print() local
204 va_start(ap, fmt); in __android_log_print()
205 vsnprintf(buf, LOG_BUF_SIZE, fmt, ap); in __android_log_print()
206 va_end(ap); in __android_log_print()
213 va_list ap; in __android_log_buf_print() local
216 va_start(ap, fmt); in __android_log_buf_print()
217 vsnprintf(buf, LOG_BUF_SIZE, fmt, ap); in __android_log_buf_print()
218 va_end(ap); in __android_log_buf_print()
[all …]
/system/core/libcutils/
Dklog.c50 va_list ap; in klog_write() local
55 va_start(ap, fmt); in klog_write()
56 vsnprintf(buf, LOG_BUF_MAX, fmt, ap); in klog_write()
58 va_end(ap); in klog_write()
Dtzstrftime.c736 const char ** ap; member
757 for (ap = (const char **) &localebuf;
758 ap < (const char **) (&localebuf + 1);
759 ++ap)
760 *ap = p += strlen(p) + 1;
805 for (ap = (const char **) &localebuf;
806 ap < (const char **) (&localebuf + 1);
807 ++ap) {
810 *ap = p;
/system/core/debuggerd/
Dutility.c37 va_list ap; in _LOG() local
38 va_start(ap, fmt); in _LOG()
42 vsnprintf(buf, sizeof(buf), fmt, ap); in _LOG()
48 __android_log_vprint(ANDROID_LOG_INFO, "DEBUG", fmt, ap); in _LOG()
50 va_end(ap); in _LOG()
/system/core/init/
Dparser.c53 va_list ap; in parse_error() local
61 va_start(ap, fmt); in parse_error()
62 vsnprintf(buf + off, 128 - off, fmt, ap); in parse_error()
63 va_end(ap); in parse_error()
/system/extras/ext4_utils/
Dimg2simg.c55 va_list ap; in error_exit() local
56 va_start(ap, fmt); in error_exit()
57 vfprintf(stderr, fmt, ap); in error_exit()
59 va_end(ap); in error_exit()
99 va_list ap; in usage() local
100 va_start(ap, error_fmt); in usage()
101 vfprintf(stderr, error_fmt, ap); in usage()
102 va_end(ap); in usage()
/system/core/fastboot/
Dengine.c64 va_list ap; in mkmsg() local
66 va_start(ap, fmt); in mkmsg()
67 vsprintf(buf, fmt, ap); in mkmsg()
68 va_end(ap); in mkmsg()
148 va_list ap; in queue_action() local
154 va_start(ap, fmt); in queue_action()
155 cmdsize = vsnprintf(a->cmd, sizeof(a->cmd), fmt, ap); in queue_action()
156 va_end(ap); in queue_action()
/system/core/include/android/
Dlog.h110 const char *fmt, va_list ap);
/system/core/cpio/
Dmkbootfs.c28 va_list ap; in die() local
30 va_start(ap, why); in die()
32 vfprintf(stderr, why, ap); in die()
34 va_end(ap); in die()
/system/core/libnetutils/
Ddhcpclient.c67 va_list ap; in printerr() local
69 va_start(ap, fmt); in printerr()
70 vsnprintf(errmsg, sizeof(errmsg), fmt, ap); in printerr()
71 va_end(ap); in printerr()

12