[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Minios-devel] [UNIKRAFT PATCH v2 5/5] lib/nolibc: use asprintf in Unikraft
From: Costin Lupu <costin.lupu@xxxxxxxxx> Signed-off-by: Costin Lupu <costin.lupu@xxxxxxxxx> Reviewed-by: Yuri Volchkov <yuri.volchkov@xxxxxxxxx> --- lib/nolibc/Makefile.uk | 1 + lib/nolibc/include/stdio.h | 3 +++ 2 files changed, 4 insertions(+) diff --git a/lib/nolibc/Makefile.uk b/lib/nolibc/Makefile.uk index e7fd83d..5039ad9 100644 --- a/lib/nolibc/Makefile.uk +++ b/lib/nolibc/Makefile.uk @@ -27,6 +27,7 @@ LIBNOLIBC_SRCS-y += $(LIBNOLIBC_BASE)/stdlib.c LIBNOLIBC_SRCS-y += $(LIBNOLIBC_BASE)/string.c LIBNOLIBC_SRCS-y += $(LIBNOLIBC_BASE)/getopt.c LIBNOLIBC_SRCS-y += $(LIBNOLIBC_BASE)/sscanf.c +LIBNOLIBC_SRCS-y += $(LIBNOLIBC_BASE)/asprintf.c LIBNOLIBC_SRCS-$(CONFIG_LIBUKALLOC) += $(LIBNOLIBC_BASE)/malloc.c # Localize internal symbols (starting with __*) diff --git a/lib/nolibc/include/stdio.h b/lib/nolibc/include/stdio.h index f547e73..06690c8 100644 --- a/lib/nolibc/include/stdio.h +++ b/lib/nolibc/include/stdio.h @@ -67,6 +67,9 @@ int printf(const char *fmt, ...) __printf(1, 2); int vsscanf(const char *str, const char *fmt, va_list ap); int sscanf(const char *str, const char *fmt, ...) __scanf(2, 3); +int vasprintf(char **str, const char *fmt, va_list ap); +int asprintf(char **str, const char *fmt, ...) __printf(2, 3); + #ifdef __cplusplus } #endif -- 2.17.1 _______________________________________________ Minios-devel mailing list Minios-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/minios-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |