/bionic/linker/ |
D | linker_globals.h | 39 #define DL_ERR(fmt, x...) \ argument 41 __libc_format_buffer(linker_get_error_buffer(), linker_get_error_buffer_size(), fmt, ##x); \ 45 #define DL_WARN(fmt, x...) \ argument 47 __libc_format_log(ANDROID_LOG_WARN, "linker", fmt, ##x); \ 49 __libc_format_fd(2, fmt, ##x); \ 53 #define DL_ERR_AND_LOG(fmt, x...) \ argument 55 DL_ERR(fmt, x); \ 56 PRINT(fmt, x); \
|
/bionic/libc/bionic/ |
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 80 const char* log_fmt = fmt; in vsyslog() 81 if (strstr(fmt, "%m") != NULL) { in vsyslog() 86 const char* src = fmt; in vsyslog() 117 if (log_fmt != fmt) { in vsyslog()
|
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 | malloc_info.cpp | 45 void contents(const char* fmt, ...) { in contents() argument 47 va_start(args, fmt); in contents() 48 vfprintf(fp, fmt, args); in contents()
|
/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 | 38 vwarnx(const char *fmt, va_list ap) in vwarnx() argument 41 if (fmt != NULL) in vwarnx() 42 (void)vfprintf(stderr, fmt, ap); in vwarnx()
|
D | verrx.c | 39 verrx(int eval, const char *fmt, va_list ap) in verrx() argument 42 if (fmt != NULL) in verrx() 43 (void)vfprintf(stderr, fmt, ap); in verrx()
|
D | vwarn.c | 40 vwarn(const char *fmt, va_list ap) in vwarn() argument 46 if (fmt != NULL) { in vwarn() 47 (void)vfprintf(stderr, fmt, ap); in vwarn()
|
D | verr.c | 41 verr(int eval, const char *fmt, va_list ap) in verr() argument 47 if (fmt != NULL) { in verr() 48 (void)vfprintf(stderr, fmt, ap); in verr()
|
/bionic/libc/stdio/ |
D | stdio.cpp | 60 va_start(ap, fmt); \ 648 int asprintf(char** s, const char* fmt, ...) { in asprintf() argument 649 PRINTF_IMPL(vasprintf(s, fmt, ap)); in asprintf() 656 int dprintf(int fd, const char* fmt, ...) { in dprintf() argument 657 PRINTF_IMPL(vdprintf(fd, fmt, ap)); in dprintf() 660 int fprintf(FILE* fp, const char* fmt, ...) { in fprintf() argument 661 PRINTF_IMPL(vfprintf(fp, fmt, ap)); in fprintf() 672 int fscanf(FILE* fp, const char* fmt, ...) { in fscanf() argument 673 PRINTF_IMPL(vfscanf(fp, fmt, ap)); in fscanf() 676 int fwprintf(FILE* fp, const wchar_t* fmt, ...) { in fwprintf() argument [all …]
|
D | vfscanf.c | 101 u_char *fmt = (u_char *)fmt0; in __svfscanf() local 129 c = *fmt++; in __svfscanf() 146 again: c = *fmt++; in __svfscanf() 168 if (*fmt == 'h') { in __svfscanf() 169 fmt++; in __svfscanf() 176 if (*fmt == 'l') { in __svfscanf() 177 fmt++; in __svfscanf() 255 fmt = __sccl(ccltab, fmt); in __svfscanf() 800 __sccl(char *tab, u_char *fmt) in __sccl() argument 805 c = *fmt++; /* first char hat => negated scanset */ in __sccl() [all …]
|
D | vfwscanf.c | 105 __vfwscanf(FILE * __restrict fp, const wchar_t * __restrict fmt, __va_list ap) in __vfwscanf() argument 139 c = *fmt++; in __vfwscanf() 159 again: c = *fmt++; in __vfwscanf() 182 if (*fmt == 'h') { in __vfwscanf() 183 fmt++; in __vfwscanf() 190 if (*fmt == 'l') { in __vfwscanf() 191 fmt++; in __vfwscanf() 269 ccls = fmt; in __vfwscanf() 270 if (*fmt == '^') { in __vfwscanf() 272 fmt++; in __vfwscanf() [all …]
|
/bionic/libc/private/ |
D | libc_logging.h | 76 int __libc_format_buffer(char* _Nonnull buf, size_t size, const char* _Nonnull fmt, ...) __printfli… 87 int __libc_format_log(int pri, const char* _Nonnull tag, const char* _Nonnull fmt, ...) __printflik… 89 int __libc_format_log_va_list(int pri, const char* _Nonnull tag, const char* _Nonnull fmt, va_list … 91 int __libc_format_log_va_list(int pri, const char* _Nonnull tag, const char* _Nonnull fmt, va_list …
|
/bionic/libc/upstream-openbsd/lib/libc/stdio/ |
D | vsscanf.c | 47 vsscanf(const char *str, const char *fmt, __va_list ap) in vsscanf() argument 58 return (__svfscanf(&f, fmt, ap)); in vsscanf()
|
D | vfprintf.c | 119 __sbprintf(FILE *fp, const char *fmt, va_list ap) in __sbprintf() argument 139 ret = __vfprintf(&fake, fmt, ap); in __sbprintf() 271 char *fmt; /* format string */ in __vfprintf() local 427 cp = fmt; \ in __vfprintf() 445 fmt = ++cp; \ in __vfprintf() 471 fmt = (char *)fmt0; in __vfprintf() 488 cp = fmt; in __vfprintf() 489 while ((n = mbrtowc(&wc, fmt, MB_CUR_MAX, &ps)) > 0) { in __vfprintf() 490 fmt += n; in __vfprintf() 492 fmt--; in __vfprintf() [all …]
|
D | vfwprintf.c | 97 __sbprintf(FILE *fp, const wchar_t *fmt, va_list ap) in __sbprintf() argument 117 ret = __vfwprintf(&fake, fmt, ap); in __sbprintf() 281 wchar_t *fmt; /* format string */ in __vfwprintf() local 419 cp = fmt; \ in __vfwprintf() 433 fmt = ++cp; \ in __vfwprintf() 459 fmt = (wchar_t *)fmt0; in __vfwprintf() 470 for (cp = fmt; (ch = *fmt) != '\0' && ch != '%'; fmt++) in __vfwprintf() 472 if (fmt != cp) { in __vfwprintf() 473 ptrdiff_t m = fmt - cp; in __vfwprintf() 481 fmt++; /* skip over '%' */ in __vfwprintf() [all …]
|
D | vdprintf.c | 51 vdprintf(int fd, const char * __restrict fmt, va_list ap) in vdprintf() argument 69 if ((ret = __vfprintf(&f, fmt, ap)) < 0) in vdprintf()
|
D | vasprintf.c | 26 vasprintf(char **str, const char *fmt, __va_list ap) in vasprintf() argument 40 ret = __vfprintf(&f, fmt, ap); in vasprintf()
|
D | vswscanf.c | 52 vswscanf(const wchar_t * __restrict str, const wchar_t * __restrict fmt, in vswscanf() argument 84 r = __vfwscanf(&f, fmt, ap); in vswscanf()
|
/bionic/libc/malloc_debug/tests/ |
D | log_fake.cpp | 70 extern "C" int __android_log_print(int prio, const char* tag, const char* fmt, ...) { in __android_log_print() argument 76 va_start(ap, fmt); in __android_log_print() 77 android::base::StringAppendV(&g_fake_log_print, fmt, ap); in __android_log_print()
|
/bionic/tests/ |
D | fortify_compilation_test.cpp | 142 void test_vsprintf(const char* fmt, ...) { in test_vsprintf() argument 145 va_start(va, fmt); in test_vsprintf() 154 void test_vsnprintf(const char* fmt, ...) { in test_vsnprintf() argument 157 va_start(va, fmt); in test_vsnprintf()
|
/bionic/libc/tzcode/ |
D | strptime.c | 102 strptime(const char *buf, const char *fmt, struct tm *tm) in strptime() argument 107 return (char*)(_strptime((const unsigned char*)buf, fmt, tm, &cr)); in strptime() 111 _strptime(const unsigned char *buf, const char *fmt, struct tm *tm, struct century_relyear *cr) in _strptime() argument 119 while ((c = *fmt) != '\0') { in _strptime() 128 fmt++; in _strptime() 132 if ((c = *fmt++) != '%') in _strptime() 136 again: switch (c = *fmt++) { in _strptime()
|