[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Minios-devel] [UNIKRAFT PATCH 5/5] lib/nolibc: use asprintf in Unikraft
Signed-off-by: Costin Lupu <costin.lupu@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 401ffc5..bec5afe 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-y += $(LIBNOLIBC_BASE)/time.c LIBNOLIBC_SRCS-$(CONFIG_LIBUKALLOC) += $(LIBNOLIBC_BASE)/malloc.c 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.11.0 _______________________________________________ Minios-devel mailing list Minios-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/minios-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |