Home
last modified time | relevance | path

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

12

/bionic/libc/bionic/
Dexec.cpp52 static int __execl(const char* name, const char* argv0, va_list ap) { in __execl() argument
55 va_copy(count_ap, ap); in __execl()
66 while ((argv[n] = va_arg(ap, char*)) != nullptr) { in __execl()
71 char** argp = (variant == ExecLE) ? va_arg(ap, char**) : environ; in __execl()
73 va_end(ap); in __execl()
79 va_list ap; in execl() local
80 va_start(ap, arg); in execl()
81 int result = __execl<ExecL>(name, arg, ap); in execl()
82 va_end(ap); in execl()
87 va_list ap; in execle() local
[all …]
Derror.cpp68 va_list ap; in error() local
69 va_start(ap, fmt); in error()
70 vfprintf(stderr, fmt, ap); in error()
71 va_end(ap); in error()
90 va_list ap; in error_at_line() local
91 va_start(ap, fmt); in error_at_line()
92 vfprintf(stderr, fmt, ap); in error_at_line()
93 va_end(ap); in error_at_line()
Dioctl.cpp35 va_list ap; in ioctl() local
36 va_start(ap, request); in ioctl()
37 void* arg = va_arg(ap, void*); in ioctl()
38 va_end(ap); in ioctl()
Dsys_sem.cpp40 va_list ap; in semctl() local
41 va_start(ap, cmd); in semctl()
42 semun arg = va_arg(ap, semun); in semctl()
43 va_end(ap); in semctl()
Dndk_cruft.cpp204 va_list ap; in fdprintf() local
205 va_start(ap, fmt); in fdprintf()
206 int rc = vdprintf(fd, fmt, ap); in fdprintf()
207 va_end(ap); in fdprintf()
212 int vfdprintf(int fd, const char* fmt, va_list ap) { in vfdprintf() argument
213 return vdprintf(fd, fmt, ap); in vfdprintf()
/bionic/linker/
Dlinker_debug.cpp33 void linker_log_va_list(int prio __unused, const char* fmt, va_list ap) { in linker_log_va_list() argument
35 async_safe_format_log_va_list(5 - prio, "linker", fmt, ap); in linker_log_va_list()
37 async_safe_format_fd_va_list(STDOUT_FILENO, fmt, ap); in linker_log_va_list()
43 va_list ap; in linker_log() local
44 va_start(ap, fmt); in linker_log()
45 linker_log_va_list(prio, fmt, ap); in linker_log()
46 va_end(ap); in linker_log()
Dlinker_globals.cpp58 va_list ap; in DL_WARN_documented_change() local
59 va_start(ap, fmt); in DL_WARN_documented_change()
60 android::base::StringAppendV(&result, fmt, ap); in DL_WARN_documented_change()
61 va_end(ap); in DL_WARN_documented_change()
Dlinker_logger.cpp112 va_list ap; in Log() local
113 va_start(ap, format); in Log()
114 async_safe_format_log_va_list(ANDROID_LOG_DEBUG, "linker", format, ap); in Log()
115 va_end(ap); in Log()
/bionic/libc/malloc_debug/tests/
Dlog_fake.cpp50 va_list ap; in async_safe_format_log() local
51 va_start(ap, format); in async_safe_format_log()
52 android::base::StringAppendV(&g_fake_log_print, format, ap); in async_safe_format_log()
53 va_end(ap); in async_safe_format_log()
79 va_list ap; in __android_log_print() local
80 va_start(ap, fmt); in __android_log_print()
81 android::base::StringAppendV(&g_fake_log_print, fmt, ap); in __android_log_print()
82 va_end(ap); in __android_log_print()
/bionic/libc/stdio/
Dvfwscanf.cpp80 int __vfwscanf(FILE* __restrict fp, const wchar_t* __restrict fmt, __va_list ap) { in __vfwscanf() argument
288 *va_arg(ap, signed char*) = nread; in __vfwscanf()
290 *va_arg(ap, short*) = nread; in __vfwscanf()
292 *va_arg(ap, long*) = nread; in __vfwscanf()
294 *va_arg(ap, ssize_t*) = nread; in __vfwscanf()
296 *va_arg(ap, ptrdiff_t*) = nread; in __vfwscanf()
298 *va_arg(ap, long long*) = nread; in __vfwscanf()
300 *va_arg(ap, intmax_t*) = nread; in __vfwscanf()
302 *va_arg(ap, int*) = nread; in __vfwscanf()
336 if (!(flags & SUPPRESS)) p = va_arg(ap, wchar_t*); in __vfwscanf()
[all …]
Dvfscanf.cpp41 int __svfscanf(FILE* fp, const char* fmt0, va_list ap) { in __svfscanf() argument
240 *va_arg(ap, signed char*) = nread; in __svfscanf()
242 *va_arg(ap, short*) = nread; in __svfscanf()
244 *va_arg(ap, long*) = nread; in __svfscanf()
246 *va_arg(ap, ssize_t*) = nread; in __svfscanf()
248 *va_arg(ap, ptrdiff_t*) = nread; in __svfscanf()
250 *va_arg(ap, long long*) = nread; in __svfscanf()
252 *va_arg(ap, intmax_t*) = nread; in __svfscanf()
254 *va_arg(ap, int*) = nread; in __svfscanf()
317 wcp = va_arg(ap, wchar_t*); in __svfscanf()
[all …]
Dprintf_common.h88 static int __sbprintf(FILE* fp, const CHAR_TYPE* fmt, va_list ap) { in __sbprintf() argument
106 int ret = FUNCTION_NAME(&fake, fmt, ap); in __sbprintf()
112 static int __find_arguments(const CHAR_TYPE* fmt0, va_list ap, union arg** argtable, size_t* argtab…
303 ((argtable != NULL) ? *((type*)(&argtable[nextarg++])) : (nextarg++, va_arg(ap, type)))
313 static int __find_arguments(const CHAR_TYPE* fmt0, va_list ap, union arg** argtable, in __find_arguments() argument
579 (*argtable)[n].intarg = va_arg(ap, int); in __find_arguments()
582 (*argtable)[n].pshortarg = va_arg(ap, short*); in __find_arguments()
585 (*argtable)[n].uintarg = va_arg(ap, unsigned int); in __find_arguments()
588 (*argtable)[n].pintarg = va_arg(ap, int*); in __find_arguments()
591 (*argtable)[n].longarg = va_arg(ap, long); in __find_arguments()
[all …]
Dstdio.cpp66 va_list ap; \
67 va_start(ap, fmt); \
69 va_end(ap); \
737 PRINTF_IMPL(vasprintf(s, fmt, ap)); in asprintf()
745 PRINTF_IMPL(vdprintf(fd, fmt, ap)); in dprintf()
750 PRINTF_IMPL(vfprintf(fp, fmt, ap)); in fprintf()
839 PRINTF_IMPL(vfscanf(fp, fmt, ap)); in fscanf()
844 PRINTF_IMPL(vfwprintf(fp, fmt, ap)); in fwprintf()
849 PRINTF_IMPL(vfwscanf(fp, fmt, ap)); in fwscanf()
891 PRINTF_IMPL(vfprintf(stdout, fmt, ap)); in printf()
[all …]
/bionic/libc/upstream-openbsd/lib/libc/gen/
Dwarn.c37 va_list ap; in warn() local
39 va_start(ap, fmt); in warn()
40 vwarn(fmt, ap); in warn()
41 va_end(ap); in warn()
Dwarnx.c37 va_list ap; in warnx() local
39 va_start(ap, fmt); in warnx()
40 vwarnx(fmt, ap); in warnx()
41 va_end(ap); in warnx()
Derr.c37 va_list ap; in err() local
39 va_start(ap, fmt); in err()
40 verr(eval, fmt, ap); in err()
41 va_end(ap); in err()
Derrx.c37 va_list ap; in errx() local
39 va_start(ap, fmt); in errx()
40 verrx(eval, fmt, ap); in errx()
41 va_end(ap); in errx()
Dvwarnx.c37 vwarnx(const char *fmt, va_list ap) in vwarnx() argument
41 (void)vfprintf(stderr, fmt, ap); in vwarnx()
Dverrx.c37 verrx(int eval, const char *fmt, va_list ap) in verrx() argument
41 (void)vfprintf(stderr, fmt, ap); in verrx()
Dvwarn.c39 vwarn(const char *fmt, va_list ap) in vwarn() argument
46 (void)vfprintf(stderr, fmt, ap); in vwarn()
Dverr.c39 verr(int eval, const char *fmt, va_list ap) in verr() argument
46 (void)vfprintf(stderr, fmt, ap); in verr()
/bionic/libc/dns/net/
Dgethnamaddr.c190 va_list ap; in debugprintf() local
192 va_start (ap, res); in debugprintf()
193 vprintf(msg, ap); in debugprintf()
194 va_end (ap); in debugprintf()
224 char *bp, **ap, **hap, *ep; in getanswer() local
286 hent->h_aliases = ap = aliases; in getanswer()
288 *ap = NULL; in getanswer()
324 addalias(ap, bp, aliases, maxaliases); in getanswer()
392 addalias(ap, bp, aliases, maxaliases); in getanswer()
472 *ap = NULL; in getanswer()
[all …]
Dnsdispatch.c103 va_list ap; in nsdispatch() local
130 va_start(ap, defaults); in nsdispatch()
131 result = (*cb)(retval, cb_data, ap); in nsdispatch()
132 va_end(ap); in nsdispatch()
Dsethostent.c99 _hf_gethtbyname(void *rv, void *cb_data, va_list ap) in _hf_gethtbyname() argument
108 name = va_arg(ap, char *); in _hf_gethtbyname()
109 /* NOSTRICT skip string len */(void)va_arg(ap, int); in _hf_gethtbyname()
110 af = va_arg(ap, int); in _hf_gethtbyname()
253 _hf_gethtbyaddr(void *rv, void *cb_data, va_list ap) in _hf_gethtbyaddr() argument
262 addr = va_arg(ap, unsigned char *); in _hf_gethtbyaddr()
263 info->hp->h_length = va_arg(ap, int); in _hf_gethtbyaddr()
264 info->hp->h_addrtype = va_arg(ap, int); in _hf_gethtbyaddr()
/bionic/libc/system_properties/
Dcontexts_split.cpp154 va_list ap; in read_spec_entries() local
172 va_start(ap, num_args); in read_spec_entries()
176 spec_entry = va_arg(ap, char**); in read_spec_entries()
179 va_end(ap); in read_spec_entries()
185 va_end(ap); in read_spec_entries()
190 va_end(ap); in read_spec_entries()

12