Home
last modified time | relevance | path

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

12

/bionic/libc/bionic/
Dexec.cpp50 static int __execl(const char* name, const char* argv0, va_list ap) { in __execl() argument
53 va_copy(count_ap, ap); in __execl()
64 while ((argv[n] = va_arg(ap, char*)) != nullptr) { in __execl()
69 char** argp = (variant == ExecLE) ? va_arg(ap, char**) : environ; in __execl()
71 va_end(ap); in __execl()
77 va_list ap; in execl() local
78 va_start(ap, arg); in execl()
79 int result = __execl<ExecL>(name, arg, ap); in execl()
80 va_end(ap); in execl()
85 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()
Dmremap.cpp51 va_list ap; in mremap() local
52 va_start(ap, flags); in mremap()
53 new_address = va_arg(ap, void*); in mremap()
54 va_end(ap); in mremap()
Dfcntl.cpp62 va_list ap; in fcntl() local
64 va_start(ap, cmd); in fcntl()
65 void* arg = va_arg(ap, void*); in fcntl()
66 va_end(ap); in fcntl()
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.cpp56 va_list ap; in DL_WARN_documented_change() local
57 va_start(ap, fmt); in DL_WARN_documented_change()
58 android::base::StringAppendV(&result, fmt, ap); in DL_WARN_documented_change()
59 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/stdio/
Dvfwscanf.c131 int __vfwscanf(FILE* __restrict fp, const wchar_t* __restrict fmt, __va_list ap) { in __vfwscanf() argument
319 *va_arg(ap, signed char*) = nread; in __vfwscanf()
321 *va_arg(ap, short*) = nread; in __vfwscanf()
323 *va_arg(ap, long*) = nread; in __vfwscanf()
325 *va_arg(ap, ssize_t*) = nread; in __vfwscanf()
327 *va_arg(ap, ptrdiff_t*) = nread; in __vfwscanf()
329 *va_arg(ap, long long*) = nread; in __vfwscanf()
331 *va_arg(ap, intmax_t*) = nread; in __vfwscanf()
333 *va_arg(ap, int*) = nread; in __vfwscanf()
367 if (!(flags & SUPPRESS)) p = va_arg(ap, wchar_t*); in __vfwscanf()
[all …]
Dvfscanf.cpp86 int __svfscanf(FILE* fp, const char* fmt0, va_list ap) { in __svfscanf() argument
265 *va_arg(ap, signed char*) = nread; in __svfscanf()
267 *va_arg(ap, short*) = nread; in __svfscanf()
269 *va_arg(ap, long*) = nread; in __svfscanf()
271 *va_arg(ap, ssize_t*) = nread; in __svfscanf()
273 *va_arg(ap, ptrdiff_t*) = nread; in __svfscanf()
275 *va_arg(ap, long long*) = nread; in __svfscanf()
277 *va_arg(ap, intmax_t*) = nread; in __svfscanf()
279 *va_arg(ap, int*) = nread; in __svfscanf()
342 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
554 (*argtable)[n].intarg = va_arg(ap, int); in __find_arguments()
557 (*argtable)[n].pshortarg = va_arg(ap, short*); in __find_arguments()
560 (*argtable)[n].uintarg = va_arg(ap, unsigned int); in __find_arguments()
563 (*argtable)[n].pintarg = va_arg(ap, int*); in __find_arguments()
566 (*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); \
739 PRINTF_IMPL(vasprintf(s, fmt, ap)); in asprintf()
747 PRINTF_IMPL(vdprintf(fd, fmt, ap)); in dprintf()
752 PRINTF_IMPL(vfprintf(fp, fmt, ap)); in fprintf()
844 PRINTF_IMPL(vfscanf(fp, fmt, ap)); in fscanf()
849 PRINTF_IMPL(vfwprintf(fp, fmt, ap)); in fwprintf()
854 PRINTF_IMPL(vfwscanf(fp, fmt, ap)); in fwscanf()
896 PRINTF_IMPL(vfprintf(stdout, fmt, ap)); in printf()
[all …]
/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/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()
/bionic/libc/dns/net/
Dgethnamaddr.c191 va_list ap; in debugprintf() local
193 va_start (ap, res); in debugprintf()
194 vprintf(msg, ap); in debugprintf()
195 va_end (ap); in debugprintf()
225 char *bp, **ap, **hap, *ep; in getanswer() local
287 hent->h_aliases = ap = aliases; in getanswer()
289 *ap = NULL; in getanswer()
325 addalias(ap, bp, aliases, maxaliases); in getanswer()
393 addalias(ap, bp, aliases, maxaliases); in getanswer()
473 *ap = NULL; in getanswer()
[all …]
Dsethostent.c102 _hf_gethtbyname(void *rv, void *cb_data, va_list ap) in _hf_gethtbyname() argument
111 name = va_arg(ap, char *); in _hf_gethtbyname()
112 /* NOSTRICT skip string len */(void)va_arg(ap, int); in _hf_gethtbyname()
113 af = va_arg(ap, int); in _hf_gethtbyname()
254 _hf_gethtbyaddr(void *rv, void *cb_data, va_list ap) in _hf_gethtbyaddr() argument
263 addr = va_arg(ap, unsigned char *); in _hf_gethtbyaddr()
264 info->hp->h_length = va_arg(ap, int); in _hf_gethtbyaddr()
265 info->hp->h_addrtype = va_arg(ap, int); in _hf_gethtbyaddr()
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()
/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()
/bionic/libc/include/bits/fortify/
Dstdio.h42 int vsnprintf(char* const __pass_object_size dest, size_t size, const char* format, va_list ap) in vsnprintf() argument
44 return __builtin___vsnprintf_chk(dest, size, 0, __bos(dest), format, ap); in vsnprintf()
48 int vsprintf(char* const __pass_object_size dest, const char* format, va_list ap) __overloadable { in vsprintf() argument
49 return __builtin___vsprintf_chk(dest, 0, __bos(dest), format, ap); in vsprintf()

12