Home
last modified time | relevance | path

Searched refs:ap (Results 1 – 25 of 35) 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.c149 char **ap; in trapcmd() local
162 ap = argv + 1; in trapcmd()
166 if (strcmp(*ap, "--") == 0) in trapcmd()
167 if (*++ap == NULL) in trapcmd()
170 if (signame_to_signum(*ap) == -1) { in trapcmd()
171 if ((*ap)[0] == '-') { in trapcmd()
172 if ((*ap)[1] == '\0') in trapcmd()
173 ap++; in trapcmd()
174 else if ((*ap)[1] == 'l' && (*ap)[2] == '\0') { in trapcmd()
179 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.c75 struct alias *ap; /* if push was associated with an alias */ member
340 pushstring(char *s, int len, void *ap) in pushstring() argument
355 sp->ap = (struct alias *)ap; in pushstring()
356 if (ap) in pushstring()
357 ((struct alias *)ap)->flag |= ALIASINUSE; in pushstring()
373 if (sp->ap) in popstring()
374 sp->ap->flag &= ~ALIASINUSE; in popstring()
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 …]
Darith.y143 char **ap; local
153 ap = argv + 2;
157 if ((p = *ap++) == NULL)
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/liblog/
Dlogd_write.c168 int __android_log_vprint(int prio, const char *tag, const char *fmt, va_list ap) in __android_log_vprint() argument
172 vsnprintf(buf, LOG_BUF_SIZE, fmt, ap); in __android_log_vprint()
179 va_list ap; in __android_log_print() local
182 va_start(ap, fmt); in __android_log_print()
183 vsnprintf(buf, LOG_BUF_SIZE, fmt, ap); in __android_log_print()
184 va_end(ap); in __android_log_print()
192 va_list ap; in __android_log_assert() local
195 va_start(ap, fmt); in __android_log_assert()
196 vsnprintf(buf, LOG_BUF_SIZE, fmt, ap); in __android_log_assert()
197 va_end(ap); in __android_log_assert()
/system/core/fastboot/
Dengine.c40 va_list ap; in mkmsg() local
42 va_start(ap, fmt); in mkmsg()
43 vsprintf(buf, fmt, ap); in mkmsg()
44 va_end(ap); in mkmsg()
87 va_list ap; in queue_action() local
92 va_start(ap, fmt); in queue_action()
93 vsprintf(a->cmd, fmt, ap); in queue_action()
94 va_end(ap); in queue_action()
Dfastboot.c64 va_list ap; in die() local
65 va_start(ap, fmt); in die()
67 vfprintf(stderr, fmt, ap); in die()
69 va_end(ap); in die()
/system/core/init/
Dutil.c61 va_list ap; in log_write() local
66 va_start(ap, fmt); in log_write()
67 vsnprintf(buf, LOG_BUF_MAX, fmt, ap); in log_write()
69 va_end(ap); in log_write()
/system/core/cpio/
Dmkbootfs.c27 va_list ap; in die() local
29 va_start(ap, why); in die()
31 vfprintf(stderr, why, ap); in die()
33 va_end(ap); in die()
/system/core/libcutils/
Dtzstrftime.c735 const char ** ap; member
756 for (ap = (const char **) &localebuf;
757 ap < (const char **) (&localebuf + 1);
758 ++ap)
759 *ap = p += strlen(p) + 1;
804 for (ap = (const char **) &localebuf;
805 ap < (const char **) (&localebuf + 1);
806 ++ap) {
809 *ap = p;
/system/core/toolbox/
Dnewfs_msdos.c239 va_list ap; in err() local
240 va_start(ap, fmt); in err()
243 vfprintf(stderr, fmt2, ap); in err()
245 va_end(ap); in err()
249 va_list ap; in errx() local
250 va_start(ap, fmt); in errx()
253 vfprintf(stderr, fmt2, ap); in errx()
255 va_end(ap); in errx()
259 va_list ap; in warnx() local
260 va_start(ap, fmt); in warnx()
[all …]
/system/core/include/android/
Dlog.h110 const char *fmt, va_list ap);
/system/core/adb/
Dadb.c46 va_list ap; in fatal() local
47 va_start(ap, fmt); in fatal()
49 vfprintf(stderr, fmt, ap); in fatal()
51 va_end(ap); in fatal()
57 va_list ap; in fatal_errno() local
58 va_start(ap, fmt); in fatal_errno()
60 vfprintf(stderr, fmt, ap); in fatal_errno()
62 va_end(ap); in fatal_errno()
Dfdevent.c37 va_list ap; in fatal() local
38 va_start(ap, fmt); in fatal()
40 vfprintf(stderr, fmt, ap); in fatal()
41 va_end(ap); in fatal()
/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