|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Minios-devel] [UNIKRAFT PATCH v2 1/1] lib/nolibc: Add strtok to string.h
Hey guys,since the code is copied, could you guys additionally add the MUSL license to the string.c file? I actually could not find a license header in the musl source files where you took it from, so I guess Musl's MIT license applies. This one is different to the BSD that we have in the file already. Please also update the SPDX header. Other from this, I am fine with the patch. Thanks, Simon On 22.08.2018 15:32, Florian Schmidt wrote: From: Razvan Cojocaru <razvan.cojocaru93@xxxxxxxxx> Added strtok and dependent functions to string.h These are required for the Xen network netfront driver. Functions are copied with only slight style modifications Taken from musl v1.1.19 Commit <55df09bfccbfe21fc9dd7d8f94550c0ff25ace04> Signed-off-by: Razvan Cojocaru <razvan.cojocaru93@xxxxxxxxx> Signed-off-by: Florian Schmidt <florian.schmidt@xxxxxxxxx> --- lib/nolibc/include/string.h | 7 ++- lib/nolibc/string.c | 100 +++++++++++++++++++++++++++++++----- 2 files changed, 93 insertions(+), 14 deletions(-) diff --git a/lib/nolibc/include/string.h b/lib/nolibc/include/string.h index 677f528..7a09e41 100644 --- a/lib/nolibc/include/string.h +++ b/lib/nolibc/include/string.h @@ -54,10 +54,15 @@ char *strncpy(char *dst, const char *src, size_t len); char *strcpy(char *dst, const char *src); size_t strnlen(const char *str, size_t maxlen); size_t strlen(const char *str); -const char *strchr(const char *str, int c); +char *strchrnul(const char *s, int c); +char *strchr(const char *str, int c); int strncmp(const char *str1, const char *str2, size_t len); int strcmp(const char *str1, const char *str2);+size_t strcspn(const char *s, const char *c); _______________________________________________ Minios-devel mailing list Minios-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/minios-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |