/bionic/linker/ |
D | linker_globals.h | 39 #define DL_ERR(fmt, x...) \ argument 41 … async_safe_format_buffer(linker_get_error_buffer(), linker_get_error_buffer_size(), fmt, ##x); \ 44 #define DL_WARN(fmt, x...) \ argument 46 async_safe_format_log(ANDROID_LOG_WARN, "linker", fmt, ##x); \ 48 async_safe_format_fd(2, fmt, ##x); \ 52 void DL_WARN_documented_change(int api_level, const char* doc_link, const char* fmt, ...); 54 #define DL_ERR_AND_LOG(fmt, x...) \ argument 56 DL_ERR(fmt, ##x); \ 57 PRINT(fmt, ##x); \ 60 #define DL_OPEN_ERR(fmt, x...) \ argument [all …]
|
D | linker_debug.cpp | 33 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() 42 void linker_log(int prio, const char* fmt, ...) { in linker_log() argument 44 va_start(ap, fmt); in linker_log() 45 linker_log_va_list(prio, fmt, ap); in linker_log()
|
D | linker_globals.cpp | 55 void DL_WARN_documented_change(int api_level, const char* doc_fragment, const char* fmt, ...) { in DL_WARN_documented_change() argument 59 va_start(ap, fmt); in DL_WARN_documented_change() 60 android::base::StringAppendV(&result, fmt, ap); in DL_WARN_documented_change()
|
/bionic/libc/async_safe/include/async_safe/ |
D | log.h | 58 void async_safe_fatal_no_abort(const char* fmt, ...) __printflike(1, 2); 59 void async_safe_fatal_va_list(const char* prefix, const char* fmt, va_list args); 67 int async_safe_format_buffer(char* buf, size_t size, const char* fmt, ...) __printflike(3, 4); 72 int async_safe_format_log(int priority, const char* tag, const char* fmt, ...) __printflike(3, 4); 73 int async_safe_format_log_va_list(int priority, const char* tag, const char* fmt, va_list ap);
|
/bionic/libc/bionic/ |
D | error.cpp | 64 void error(int status, int error, const char* fmt, ...) { in error() argument 69 va_start(ap, fmt); in error() 70 vfprintf(stderr, fmt, ap); in error() 76 void error_at_line(int status, int error, const char* file, unsigned int line, const char* fmt, ...… in error_at_line() argument 91 va_start(ap, fmt); in error_at_line() 92 vfprintf(stderr, fmt, ap); in error_at_line()
|
D | syslog.cpp | 44 void syslog(int priority, const char* fmt, ...) { in syslog() argument 46 va_start(args, fmt); in syslog() 47 vsyslog(priority, fmt, args); in syslog() 51 void vsyslog(int priority, const char* fmt, va_list args) { in vsyslog() argument 79 vsnprintf(log_line, sizeof(log_line), fmt, args); in vsyslog()
|
/bionic/libc/upstream-openbsd/lib/libc/gen/ |
D | warn.c | 35 warn(const char *fmt, ...) in warn() argument 39 va_start(ap, fmt); in warn() 40 vwarn(fmt, ap); in warn()
|
D | warnx.c | 35 warnx(const char *fmt, ...) in warnx() argument 39 va_start(ap, fmt); in warnx() 40 vwarnx(fmt, ap); in warnx()
|
D | err.c | 35 err(int eval, const char *fmt, ...) in err() argument 39 va_start(ap, fmt); in err() 40 verr(eval, fmt, ap); in err()
|
D | errx.c | 35 errx(int eval, const char *fmt, ...) in errx() argument 39 va_start(ap, fmt); in errx() 40 verrx(eval, fmt, ap); in errx()
|
D | vwarnx.c | 37 vwarnx(const char *fmt, va_list ap) in vwarnx() argument 40 if (fmt != NULL) in vwarnx() 41 (void)vfprintf(stderr, fmt, ap); in vwarnx()
|
D | verrx.c | 37 verrx(int eval, const char *fmt, va_list ap) in verrx() argument 40 if (fmt != NULL) in verrx() 41 (void)vfprintf(stderr, fmt, ap); in verrx()
|
D | vwarn.c | 39 vwarn(const char *fmt, va_list ap) in vwarn() argument 45 if (fmt != NULL) { in vwarn() 46 (void)vfprintf(stderr, fmt, ap); in vwarn()
|
D | verr.c | 39 verr(int eval, const char *fmt, va_list ap) in verr() argument 45 if (fmt != NULL) { in verr() 46 (void)vfprintf(stderr, fmt, ap); in verr()
|
/bionic/libc/stdio/ |
D | stdio.cpp | 67 va_start(ap, fmt); \ 736 int asprintf(char** s, const char* fmt, ...) { in asprintf() argument 737 PRINTF_IMPL(vasprintf(s, fmt, ap)); in asprintf() 744 int dprintf(int fd, const char* fmt, ...) { in dprintf() argument 745 PRINTF_IMPL(vdprintf(fd, fmt, ap)); in dprintf() 748 int fprintf(FILE* fp, const char* fmt, ...) { in fprintf() argument 750 PRINTF_IMPL(vfprintf(fp, fmt, ap)); in fprintf() 837 int fscanf(FILE* fp, const char* fmt, ...) { in fscanf() argument 839 PRINTF_IMPL(vfscanf(fp, fmt, ap)); in fscanf() 842 int fwprintf(FILE* fp, const wchar_t* fmt, ...) { in fwprintf() argument [all …]
|
D | vfscanf.cpp | 87 const unsigned char* fmt = reinterpret_cast<const unsigned char*>(fmt0); in __svfscanf() local 112 c = *fmt++; in __svfscanf() 126 c = *fmt++; in __svfscanf() 146 if (*fmt == 'h') { in __svfscanf() 147 fmt++; in __svfscanf() 154 if (*fmt == 'l') { in __svfscanf() 155 fmt++; in __svfscanf() 245 fmt = __sccl(ccltab, fmt); in __svfscanf() 739 static const unsigned char* __sccl(char* tab, const unsigned char* fmt) { in __sccl() argument 743 c = *fmt++; /* first char hat => negated scanset */ in __sccl() [all …]
|
D | vfwscanf.c | 131 int __vfwscanf(FILE* __restrict fp, const wchar_t* __restrict fmt, __va_list ap) { in __vfwscanf() argument 160 c = *fmt++; in __vfwscanf() 178 c = *fmt++; in __vfwscanf() 200 if (*fmt == 'h') { in __vfwscanf() 201 fmt++; in __vfwscanf() 208 if (*fmt == 'l') { in __vfwscanf() 209 fmt++; in __vfwscanf() 294 ccl = fmt; in __vfwscanf() 295 if (*fmt == '^') fmt++; in __vfwscanf() 296 if (*fmt == ']') fmt++; in __vfwscanf() [all …]
|
D | vfwprintf.cpp | 138 CHAR_TYPE* fmt = const_cast<CHAR_TYPE*>(fmt0); in FUNCTION_NAME() local 153 for (cp = fmt; (ch = *fmt) != '\0' && ch != '%'; fmt++) continue; in FUNCTION_NAME() 154 if (fmt != cp) { in FUNCTION_NAME() 155 ptrdiff_t m = fmt - cp; in FUNCTION_NAME() 161 fmt++; /* skip over '%' */ in FUNCTION_NAME() 171 ch = *fmt++; in FUNCTION_NAME() 207 if ((ch = *fmt++) == '*') { in FUNCTION_NAME() 215 ch = *fmt++; in FUNCTION_NAME() 250 ch = *fmt++; in FUNCTION_NAME() 269 if (*fmt == 'h') { in FUNCTION_NAME() [all …]
|
D | vfprintf.cpp | 149 CHAR_TYPE* fmt = const_cast<CHAR_TYPE*>(fmt0); in FUNCTION_NAME() local 164 for (cp = fmt; (ch = *fmt) != '\0' && ch != '%'; fmt++) continue; in FUNCTION_NAME() 165 if (fmt != cp) { in FUNCTION_NAME() 166 ptrdiff_t m = fmt - cp; in FUNCTION_NAME() 172 fmt++; /* skip over '%' */ in FUNCTION_NAME() 182 ch = *fmt++; in FUNCTION_NAME() 218 if ((ch = *fmt++) == '*') { in FUNCTION_NAME() 226 ch = *fmt++; in FUNCTION_NAME() 261 ch = *fmt++; in FUNCTION_NAME() 280 if (*fmt == 'h') { in FUNCTION_NAME() [all …]
|
D | printf_common.h | 88 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() 277 cp = fmt; \ 294 fmt = ++cp; \ 368 cp = fmt; \ in __find_arguments() 378 fmt = ++cp; \ in __find_arguments() 382 CHAR_TYPE* fmt = const_cast<CHAR_TYPE*>(fmt0); in __find_arguments() local 394 for (cp = fmt; (ch = *fmt) != '\0' && ch != '%'; fmt++) continue; in __find_arguments() 396 fmt++; /* skip over '%' */ in __find_arguments() 401 ch = *fmt++; in __find_arguments() [all …]
|
/bionic/libc/private/ |
D | MallocXmlElem.h | 45 void Contents(const char* fmt, ...) { in Contents() argument 47 va_start(args, fmt); in Contents() 48 vdprintf(fd_, fmt, args); in Contents()
|
D | bionic_fortify.h | 42 inline __noreturn __printflike(1, 2) void __fortify_fatal(const char* fmt, ...) { in __fortify_fatal() argument 44 va_start(args, fmt); in __fortify_fatal() 45 async_safe_fatal_va_list("FORTIFY", fmt, args); in __fortify_fatal()
|
/bionic/libc/malloc_debug/tests/ |
D | log_fake.cpp | 74 extern "C" int __android_log_print(int prio, const char* tag, const char* fmt, ...) { in __android_log_print() argument 80 va_start(ap, fmt); in __android_log_print() 81 android::base::StringAppendV(&g_fake_log_print, fmt, ap); in __android_log_print()
|
/bionic/libc/upstream-openbsd/lib/libc/stdio/ |
D | vsscanf.c | 46 vsscanf(const char *str, const char *fmt, __va_list ap) in vsscanf() argument 57 return (__svfscanf(&f, fmt, ap)); in vsscanf()
|
/bionic/libc/tzcode/ |
D | strptime.c | 117 strptime(const char *buf, const char *fmt, struct tm *tm) in strptime() argument 122 return (char*)(_strptime((const unsigned char*)buf, fmt, tm, &cr)); in strptime() 126 _strptime(const unsigned char *buf, const char *fmt, struct tm *tm, struct century_relyear *cr) in _strptime() argument 135 while ((c = *fmt) != '\0') { in _strptime() 144 fmt++; in _strptime() 148 if ((c = *fmt++) != '%') in _strptime() 152 again: switch (c = *fmt++) { in _strptime() 632 char* strptime_l(const char* buf, const char* fmt, struct tm* tm, locale_t l) { in strptime_l() argument 633 return strptime(buf, fmt, tm); in strptime_l()
|