This is an automated email from the ASF dual-hosted git repository. linguini pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 13ab107d67e11f467da47e01d6bb1e9ead6521f0 Author: raiden00pl <[email protected]> AuthorDate: Sat Oct 11 13:18:53 2025 +0200 libc: remove reference to non-existent readme remove reference to non-existent readme in libc. Pointing to the documentation page doesn't make sense in this case, because it doesn't explain the use of `#undef XXX` for this case anyway. Signed-off-by: raiden00pl <[email protected]> --- include/strings.h | 6 +++--- libs/libc/gnssutils/Kconfig | 2 +- libs/libc/stdlib/lib_aligned_alloc.c | 2 +- libs/libc/stdlib/lib_atoi.c | 2 +- libs/libc/stdlib/lib_atol.c | 2 +- libs/libc/stdlib/lib_posix_memalign.c | 2 +- libs/libc/stdlib/lib_valloc.c | 2 +- libs/libc/string/lib_bsdmemccpy.c | 2 +- libs/libc/string/lib_bsdmemchr.c | 2 +- libs/libc/string/lib_bsdmemcmp.c | 2 +- libs/libc/string/lib_bsdmemcpy.c | 2 +- libs/libc/string/lib_bsdmemrchr.c | 2 +- libs/libc/string/lib_bsdstpcpy.c | 2 +- libs/libc/string/lib_bsdstpncpy.c | 2 +- libs/libc/string/lib_bsdstrcat.c | 2 +- libs/libc/string/lib_bsdstrchr.c | 2 +- libs/libc/string/lib_bsdstrchrnul.c | 2 +- libs/libc/string/lib_bsdstrcmp.c | 2 +- libs/libc/string/lib_bsdstrcpy.c | 2 +- libs/libc/string/lib_bsdstrlen.c | 2 +- libs/libc/string/lib_bsdstrncmp.c | 2 +- libs/libc/string/lib_bsdstrncpy.c | 2 +- libs/libc/string/lib_bsdstrrchr.c | 2 +- libs/libc/string/lib_index.c | 2 +- libs/libc/string/lib_memccpy.c | 2 +- libs/libc/string/lib_memchr.c | 2 +- libs/libc/string/lib_memcmp.c | 2 +- libs/libc/string/lib_memcpy.c | 2 +- libs/libc/string/lib_memmem.c | 2 +- libs/libc/string/lib_memmove.c | 2 +- libs/libc/string/lib_mempcpy.c | 2 +- libs/libc/string/lib_memrchr.c | 2 +- libs/libc/string/lib_memset.c | 2 +- libs/libc/string/lib_rindex.c | 2 +- libs/libc/string/lib_stpcpy.c | 2 +- libs/libc/string/lib_stpncpy.c | 2 +- libs/libc/string/lib_strcasecmp.c | 2 +- libs/libc/string/lib_strcasestr.c | 2 +- libs/libc/string/lib_strcat.c | 2 +- libs/libc/string/lib_strchr.c | 2 +- libs/libc/string/lib_strchrnul.c | 2 +- libs/libc/string/lib_strcmp.c | 2 +- libs/libc/string/lib_strcpy.c | 2 +- libs/libc/string/lib_strcspn.c | 2 +- libs/libc/string/lib_strdup.c | 2 +- libs/libc/string/lib_strlcat.c | 2 +- libs/libc/string/lib_strlcpy.c | 2 +- libs/libc/string/lib_strlen.c | 2 +- libs/libc/string/lib_strncasecmp.c | 2 +- libs/libc/string/lib_strncat.c | 2 +- libs/libc/string/lib_strncmp.c | 2 +- libs/libc/string/lib_strncpy.c | 2 +- libs/libc/string/lib_strndup.c | 2 +- libs/libc/string/lib_strnlen.c | 2 +- libs/libc/string/lib_strpbrk.c | 2 +- libs/libc/string/lib_strrchr.c | 2 +- libs/libc/string/lib_strsep.c | 2 +- libs/libc/string/lib_strspn.c | 2 +- libs/libc/string/lib_strstr.c | 2 +- libs/libc/string/lib_strtok.c | 2 +- libs/libc/string/lib_strtokr.c | 2 +- 61 files changed, 63 insertions(+), 63 deletions(-) diff --git a/include/strings.h b/include/strings.h index 9f82f142b81..a0590f94696 100644 --- a/include/strings.h +++ b/include/strings.h @@ -44,15 +44,15 @@ * IEEE Std 1003.1-2008 */ -#ifndef bcmp /* See mm/README.txt */ +#ifndef bcmp #define bcmp(b1,b2,len) memcmp(b1,b2,(size_t)len) #endif -#ifndef bcopy /* See mm/README.txt */ +#ifndef bcopy #define bcopy(b1,b2,len) memmove(b2,b1,len) #endif -#ifndef bzero /* See mm/README.txt */ +#ifndef bzero #define bzero(s,n) memset(s,0,n) #endif diff --git a/libs/libc/gnssutils/Kconfig b/libs/libc/gnssutils/Kconfig index 5dde471e758..438c063a9d3 100644 --- a/libs/libc/gnssutils/Kconfig +++ b/libs/libc/gnssutils/Kconfig @@ -11,4 +11,4 @@ config GNSSUTILS_MINMEA_LIB NOTE: This library depends on having some version of math.h at include/nuttx. There are some different ways to accomplish - this. See the discussion in the top-level nuttx/README.txt file. + this. See the discussion in the Documentation/legacy_README.md file. diff --git a/libs/libc/stdlib/lib_aligned_alloc.c b/libs/libc/stdlib/lib_aligned_alloc.c index f04e43744b9..f87127c1603 100644 --- a/libs/libc/stdlib/lib_aligned_alloc.c +++ b/libs/libc/stdlib/lib_aligned_alloc.c @@ -32,7 +32,7 @@ * Public Functions ****************************************************************************/ -#undef aligned_alloc /* See mm/README.txt */ +#undef aligned_alloc FAR void *aligned_alloc(size_t align, size_t size) { return lib_memalign(align, size); diff --git a/libs/libc/stdlib/lib_atoi.c b/libs/libc/stdlib/lib_atoi.c index 5c48e6dd8f3..a2685646d2a 100644 --- a/libs/libc/stdlib/lib_atoi.c +++ b/libs/libc/stdlib/lib_atoi.c @@ -30,7 +30,7 @@ * Public Functions ****************************************************************************/ -#undef atoi /* See mm/README.txt */ +#undef atoi int atoi(FAR const char *nptr) { return strtol(nptr, NULL, 10); diff --git a/libs/libc/stdlib/lib_atol.c b/libs/libc/stdlib/lib_atol.c index 31bc867ea05..27a94261762 100644 --- a/libs/libc/stdlib/lib_atol.c +++ b/libs/libc/stdlib/lib_atol.c @@ -30,7 +30,7 @@ * Public Functions ****************************************************************************/ -#undef atol /* See mm/README.txt */ +#undef atol long atol(FAR const char *nptr) { return strtol(nptr, NULL, 10); diff --git a/libs/libc/stdlib/lib_posix_memalign.c b/libs/libc/stdlib/lib_posix_memalign.c index 82ccf554582..36a2f7a5594 100644 --- a/libs/libc/stdlib/lib_posix_memalign.c +++ b/libs/libc/stdlib/lib_posix_memalign.c @@ -33,7 +33,7 @@ * Public Functions ****************************************************************************/ -#undef posix_memalign /* See mm/README.txt */ +#undef posix_memalign int posix_memalign(FAR void **mem, size_t align, size_t size) { *mem = lib_memalign(align, size); diff --git a/libs/libc/stdlib/lib_valloc.c b/libs/libc/stdlib/lib_valloc.c index 1114663eea8..fab5721e9af 100644 --- a/libs/libc/stdlib/lib_valloc.c +++ b/libs/libc/stdlib/lib_valloc.c @@ -51,7 +51,7 @@ * ****************************************************************************/ -#undef valloc /* See mm/README.txt */ +#undef valloc FAR void *valloc(size_t size) { return lib_memalign(sysconf(_SC_PAGESIZE), size); diff --git a/libs/libc/string/lib_bsdmemccpy.c b/libs/libc/string/lib_bsdmemccpy.c index b0aea23dfc1..d2bd9b3b6af 100644 --- a/libs/libc/string/lib_bsdmemccpy.c +++ b/libs/libc/string/lib_bsdmemccpy.c @@ -71,7 +71,7 @@ * ****************************************************************************/ -#undef memccpy /* See mm/README.txt */ +#undef memccpy FAR void *memccpy(FAR void *s1, FAR const void *s2, int c, size_t n) { FAR void *ptr = NULL; diff --git a/libs/libc/string/lib_bsdmemchr.c b/libs/libc/string/lib_bsdmemchr.c index 1fea25ee266..de33da42d15 100644 --- a/libs/libc/string/lib_bsdmemchr.c +++ b/libs/libc/string/lib_bsdmemchr.c @@ -73,7 +73,7 @@ ****************************************************************************/ #if !defined(CONFIG_LIBC_ARCH_MEMCHR) && defined(LIBC_BUILD_MEMCHR) -#undef memchr /* See mm/README.txt */ +#undef memchr FAR void *memchr(FAR const void *s, int c, size_t n) { FAR const unsigned char *p = (FAR const unsigned char *)s; diff --git a/libs/libc/string/lib_bsdmemcmp.c b/libs/libc/string/lib_bsdmemcmp.c index b13557ceb64..ff9a12a59d7 100644 --- a/libs/libc/string/lib_bsdmemcmp.c +++ b/libs/libc/string/lib_bsdmemcmp.c @@ -48,7 +48,7 @@ ****************************************************************************/ #if !defined(CONFIG_LIBC_ARCH_MEMCMP) && defined(LIBC_BUILD_MEMCMP) -#undef memcmp /* See mm/README.txt */ +#undef memcmp no_builtin("memcmp") int memcmp(FAR const void *s1, FAR const void *s2, size_t n) { diff --git a/libs/libc/string/lib_bsdmemcpy.c b/libs/libc/string/lib_bsdmemcpy.c index a02a4f43268..6cfcdc8a775 100644 --- a/libs/libc/string/lib_bsdmemcpy.c +++ b/libs/libc/string/lib_bsdmemcpy.c @@ -56,7 +56,7 @@ ****************************************************************************/ #if !defined(CONFIG_LIBC_ARCH_MEMCPY) && defined(LIBC_BUILD_MEMCPY) -#undef memcpy /* See mm/README.txt */ +#undef memcpy no_builtin("memcpy") FAR void *memcpy(FAR void *dest, FAR const void *src, size_t n) { diff --git a/libs/libc/string/lib_bsdmemrchr.c b/libs/libc/string/lib_bsdmemrchr.c index 78bbf154a97..92d141a3b08 100644 --- a/libs/libc/string/lib_bsdmemrchr.c +++ b/libs/libc/string/lib_bsdmemrchr.c @@ -70,7 +70,7 @@ * ****************************************************************************/ -#undef memrchr /* See mm/README.txt */ +#undef memrchr FAR void *memrchr(FAR const void *s, int c, size_t n) { FAR const unsigned char *src0 = diff --git a/libs/libc/string/lib_bsdstpcpy.c b/libs/libc/string/lib_bsdstpcpy.c index 7edcc8d79a1..5c6f36767f0 100644 --- a/libs/libc/string/lib_bsdstpcpy.c +++ b/libs/libc/string/lib_bsdstpcpy.c @@ -61,7 +61,7 @@ ****************************************************************************/ #ifndef CONFIG_LIBC_ARCH_STPCPY -#undef stpcpy /* See mm/README.txt */ +#undef stpcpy nosanitize_address FAR char *stpcpy(FAR char *dest, FAR const char *src) { diff --git a/libs/libc/string/lib_bsdstpncpy.c b/libs/libc/string/lib_bsdstpncpy.c index 1d4f43a15d7..79fb41b21b0 100644 --- a/libs/libc/string/lib_bsdstpncpy.c +++ b/libs/libc/string/lib_bsdstpncpy.c @@ -77,7 +77,7 @@ ****************************************************************************/ #ifndef CONFIG_LIBC_ARCH_STPNCPY -#undef stpncpy /* See mm/README.txt */ +#undef stpncpy FAR char *stpncpy(FAR char *dest, FAR const char *src, size_t n) { FAR char *ret = NULL; diff --git a/libs/libc/string/lib_bsdstrcat.c b/libs/libc/string/lib_bsdstrcat.c index ced88d72d90..f04d9e4ca0a 100644 --- a/libs/libc/string/lib_bsdstrcat.c +++ b/libs/libc/string/lib_bsdstrcat.c @@ -48,7 +48,7 @@ ****************************************************************************/ #if !defined(CONFIG_LIBC_ARCH_STRCAT) && defined(LIBC_BUILD_STRCAT) -#undef strcat /* See mm/README.txt */ +#undef strcat nosanitize_address FAR char *strcat(FAR char *dest, FAR const char *src) { diff --git a/libs/libc/string/lib_bsdstrchr.c b/libs/libc/string/lib_bsdstrchr.c index 6223f27658d..a910e881e2e 100644 --- a/libs/libc/string/lib_bsdstrchr.c +++ b/libs/libc/string/lib_bsdstrchr.c @@ -67,7 +67,7 @@ ****************************************************************************/ #if !defined(CONFIG_LIBC_ARCH_STRCHR) && defined(LIBC_BUILD_STRCHR) -#undef strchr /* See mm/README.txt */ +#undef strchr nosanitize_address FAR char *strchr(FAR const char *s, int c) { diff --git a/libs/libc/string/lib_bsdstrchrnul.c b/libs/libc/string/lib_bsdstrchrnul.c index 5e3129005dd..d3999ac0c78 100644 --- a/libs/libc/string/lib_bsdstrchrnul.c +++ b/libs/libc/string/lib_bsdstrchrnul.c @@ -45,7 +45,7 @@ ****************************************************************************/ #if !defined(CONFIG_LIBC_ARCH_STRCHRNUL) && defined(LIBC_BUILD_STRCHRNUL) -#undef strchrnul /* See mm/README.txt */ +#undef strchrnul FAR char *strchrnul(FAR const char *s, int c) { FAR char *s1 = strchr(s, c); diff --git a/libs/libc/string/lib_bsdstrcmp.c b/libs/libc/string/lib_bsdstrcmp.c index 270bcbaf87d..9366d0d0a9f 100644 --- a/libs/libc/string/lib_bsdstrcmp.c +++ b/libs/libc/string/lib_bsdstrcmp.c @@ -50,7 +50,7 @@ ****************************************************************************/ #if !defined(CONFIG_LIBC_ARCH_STRCMP) && defined(LIBC_BUILD_STRCMP) -#undef strcmp /* See mm/README.txt */ +#undef strcmp nosanitize_address int strcmp(FAR const char *cs, FAR const char *ct) { diff --git a/libs/libc/string/lib_bsdstrcpy.c b/libs/libc/string/lib_bsdstrcpy.c index 7a674d9655f..95e221de6c5 100644 --- a/libs/libc/string/lib_bsdstrcpy.c +++ b/libs/libc/string/lib_bsdstrcpy.c @@ -62,7 +62,7 @@ ****************************************************************************/ #if !defined(CONFIG_LIBC_ARCH_STRCPY) && defined(LIBC_BUILD_STRCPY) -#undef strcpy /* See mm/README.txt */ +#undef strcpy nosanitize_address FAR char *strcpy(FAR char *dest, FAR const char *src) { diff --git a/libs/libc/string/lib_bsdstrlen.c b/libs/libc/string/lib_bsdstrlen.c index 082aa9b00bf..efd117ae0ed 100644 --- a/libs/libc/string/lib_bsdstrlen.c +++ b/libs/libc/string/lib_bsdstrlen.c @@ -48,7 +48,7 @@ ****************************************************************************/ #if !defined(CONFIG_LIBC_ARCH_STRLEN) && defined(LIBC_BUILD_STRLEN) -#undef strlen /* See mm/README.txt */ +#undef strlen nosanitize_address size_t strlen(FAR const char *s) { diff --git a/libs/libc/string/lib_bsdstrncmp.c b/libs/libc/string/lib_bsdstrncmp.c index 829bb84a1f5..4f7d12823e2 100644 --- a/libs/libc/string/lib_bsdstrncmp.c +++ b/libs/libc/string/lib_bsdstrncmp.c @@ -52,7 +52,7 @@ ****************************************************************************/ #if !defined(CONFIG_LIBC_ARCH_STRNCMP) && defined(LIBC_BUILD_STRNCMP) -#undef strncmp /* See mm/README.txt */ +#undef strncmp nosanitize_address int strncmp(FAR const char *cs, FAR const char *ct, size_t nb) { diff --git a/libs/libc/string/lib_bsdstrncpy.c b/libs/libc/string/lib_bsdstrncpy.c index 29e1aa3f492..0012804fbaa 100644 --- a/libs/libc/string/lib_bsdstrncpy.c +++ b/libs/libc/string/lib_bsdstrncpy.c @@ -75,7 +75,7 @@ ****************************************************************************/ #if !defined(CONFIG_LIBC_ARCH_STRNCPY) && defined(LIBC_BUILD_STRNCPY) -#undef strncpy /* See mm/README.txt */ +#undef strncpy nosanitize_address FAR char *strncpy(FAR char *dest, FAR const char *src, size_t n) { diff --git a/libs/libc/string/lib_bsdstrrchr.c b/libs/libc/string/lib_bsdstrrchr.c index e98a45e4cc7..22dbcb6b698 100644 --- a/libs/libc/string/lib_bsdstrrchr.c +++ b/libs/libc/string/lib_bsdstrrchr.c @@ -35,7 +35,7 @@ */ #if !defined(CONFIG_LIBC_ARCH_STRRCHR) && defined(LIBC_BUILD_STRRCHR) -#undef strrchr /* See mm/README.txt */ +#undef strrchr FAR char *strrchr(FAR const char *s, int c) { FAR const char *last = NULL; diff --git a/libs/libc/string/lib_index.c b/libs/libc/string/lib_index.c index 14320935497..40d21dae05a 100644 --- a/libs/libc/string/lib_index.c +++ b/libs/libc/string/lib_index.c @@ -34,7 +34,7 @@ * Name: index ****************************************************************************/ -#undef index /* See mm/README.txt */ +#undef index FAR char *index(FAR const char *s, int c) { return strchr(s, c); diff --git a/libs/libc/string/lib_memccpy.c b/libs/libc/string/lib_memccpy.c index 283e5650cf2..e1bb5409a04 100644 --- a/libs/libc/string/lib_memccpy.c +++ b/libs/libc/string/lib_memccpy.c @@ -48,7 +48,7 @@ * ****************************************************************************/ -#undef memccpy /* See mm/README.txt */ +#undef memccpy FAR void *memccpy(FAR void *s1, FAR const void *s2, int c, size_t n) { FAR unsigned char *pout = (FAR unsigned char *)s1; diff --git a/libs/libc/string/lib_memchr.c b/libs/libc/string/lib_memchr.c index 2c24e3256f9..dcacfde4b69 100644 --- a/libs/libc/string/lib_memchr.c +++ b/libs/libc/string/lib_memchr.c @@ -49,7 +49,7 @@ ****************************************************************************/ #if !defined(CONFIG_LIBC_ARCH_MEMCHR) && defined(LIBC_BUILD_MEMCHR) -#undef memchr /* See mm/README.txt */ +#undef memchr FAR void *memchr(FAR const void *s, int c, size_t n) { FAR const unsigned char *p = (FAR const unsigned char *)s; diff --git a/libs/libc/string/lib_memcmp.c b/libs/libc/string/lib_memcmp.c index 251cbf7bbad..e0e504e86cc 100644 --- a/libs/libc/string/lib_memcmp.c +++ b/libs/libc/string/lib_memcmp.c @@ -35,7 +35,7 @@ ****************************************************************************/ #if !defined(CONFIG_LIBC_ARCH_MEMCMP) && defined(LIBC_BUILD_MEMCMP) -#undef memcmp /* See mm/README.txt */ +#undef memcmp no_builtin("memcmp") int memcmp(FAR const void *s1, FAR const void *s2, size_t n) { diff --git a/libs/libc/string/lib_memcpy.c b/libs/libc/string/lib_memcpy.c index c1ff6ae1e85..606aaaa753d 100644 --- a/libs/libc/string/lib_memcpy.c +++ b/libs/libc/string/lib_memcpy.c @@ -39,7 +39,7 @@ ****************************************************************************/ #if !defined(CONFIG_LIBC_ARCH_MEMCPY) && defined(LIBC_BUILD_MEMCPY) -#undef memcpy /* See mm/README.txt */ +#undef memcpy no_builtin("memcpy") FAR void *memcpy(FAR void *dest, FAR const void *src, size_t n) { diff --git a/libs/libc/string/lib_memmem.c b/libs/libc/string/lib_memmem.c index a711d43dabf..e9ad2cdb496 100644 --- a/libs/libc/string/lib_memmem.c +++ b/libs/libc/string/lib_memmem.c @@ -57,7 +57,7 @@ * ****************************************************************************/ -#undef memmem /* See mm/README.txt */ +#undef memmem FAR void *memmem(FAR const void *haystack, size_t haystacklen, FAR const void *needle, size_t needlelen) { diff --git a/libs/libc/string/lib_memmove.c b/libs/libc/string/lib_memmove.c index 7864902f024..33cc744e5a2 100644 --- a/libs/libc/string/lib_memmove.c +++ b/libs/libc/string/lib_memmove.c @@ -35,7 +35,7 @@ ****************************************************************************/ #if !defined(CONFIG_LIBC_ARCH_MEMMOVE) && defined(LIBC_BUILD_MEMMOVE) -#undef memmove /* See mm/README.txt */ +#undef memmove no_builtin("memmove") FAR void *memmove(FAR void *dest, FAR const void *src, size_t count) { diff --git a/libs/libc/string/lib_mempcpy.c b/libs/libc/string/lib_mempcpy.c index 57c128034f5..70b514d330a 100644 --- a/libs/libc/string/lib_mempcpy.c +++ b/libs/libc/string/lib_mempcpy.c @@ -53,7 +53,7 @@ * ****************************************************************************/ -#undef mempcpy /* See mm/README.txt */ +#undef mempcpy FAR void *mempcpy(FAR void *dest, FAR const void *src, size_t n) { return (FAR char *)memcpy(dest, src, n) + n; diff --git a/libs/libc/string/lib_memrchr.c b/libs/libc/string/lib_memrchr.c index 9a8f4a69d68..99253151f6f 100644 --- a/libs/libc/string/lib_memrchr.c +++ b/libs/libc/string/lib_memrchr.c @@ -46,7 +46,7 @@ * ****************************************************************************/ -#undef memrchr /* See mm/README.txt */ +#undef memrchr FAR void *memrchr(FAR const void *s, int c, size_t n) { FAR const unsigned char *p = (FAR const unsigned char *)s + n; diff --git a/libs/libc/string/lib_memset.c b/libs/libc/string/lib_memset.c index 58132b0db31..26d3fd15823 100644 --- a/libs/libc/string/lib_memset.c +++ b/libs/libc/string/lib_memset.c @@ -51,7 +51,7 @@ ****************************************************************************/ #if !defined(CONFIG_LIBC_ARCH_MEMSET) && defined(LIBC_BUILD_MEMSET) -#undef memset /* See mm/README.txt */ +#undef memset no_builtin("memset") FAR void *memset(FAR void *s, int c, size_t n) { diff --git a/libs/libc/string/lib_rindex.c b/libs/libc/string/lib_rindex.c index 29e23eb73fb..46f005f4db1 100644 --- a/libs/libc/string/lib_rindex.c +++ b/libs/libc/string/lib_rindex.c @@ -34,7 +34,7 @@ * Name: rindex ****************************************************************************/ -#undef rindex /* See mm/README.txt */ +#undef rindex FAR char *rindex(FAR const char *s, int c) { return strrchr(s, c); diff --git a/libs/libc/string/lib_stpcpy.c b/libs/libc/string/lib_stpcpy.c index ae1a9cbfb91..1bd982c3e2f 100644 --- a/libs/libc/string/lib_stpcpy.c +++ b/libs/libc/string/lib_stpcpy.c @@ -46,7 +46,7 @@ ****************************************************************************/ #ifndef CONFIG_LIBC_ARCH_STPCPY -#undef stpcpy /* See mm/README.txt */ +#undef stpcpy FAR char *stpcpy(FAR char *dest, FAR const char *src) { while ((*dest++ = *src++) != '\0'); diff --git a/libs/libc/string/lib_stpncpy.c b/libs/libc/string/lib_stpncpy.c index acbc1f3a459..6e6ee45c692 100644 --- a/libs/libc/string/lib_stpncpy.c +++ b/libs/libc/string/lib_stpncpy.c @@ -56,7 +56,7 @@ ****************************************************************************/ #ifndef CONFIG_LIBC_ARCH_STPNCPY -#undef stpncpy /* See mm/README.txt */ +#undef stpncpy FAR char *stpncpy(FAR char *dest, FAR const char *src, size_t n) { FAR char *end = dest + n; /* End of dest buffer + 1 byte */ diff --git a/libs/libc/string/lib_strcasecmp.c b/libs/libc/string/lib_strcasecmp.c index 1bfcfd052a6..9efe36b54ab 100644 --- a/libs/libc/string/lib_strcasecmp.c +++ b/libs/libc/string/lib_strcasecmp.c @@ -36,7 +36,7 @@ ****************************************************************************/ #if !defined(CONFIG_LIBC_ARCH_STRCASECMP) && defined(LIBC_BUILD_STRCASECMP) -#undef strcasecmp /* See mm/README.txt */ +#undef strcasecmp int strcasecmp(FAR const char *cs, FAR const char *ct) { register int result; diff --git a/libs/libc/string/lib_strcasestr.c b/libs/libc/string/lib_strcasestr.c index 9962ca29ab4..05a9897fd63 100644 --- a/libs/libc/string/lib_strcasestr.c +++ b/libs/libc/string/lib_strcasestr.c @@ -34,7 +34,7 @@ * Private Functions ****************************************************************************/ -#undef strcasechr /* See mm/README.txt */ +#undef strcasechr static FAR char *strcasechr(FAR const char *s, int uc) { register char ch; diff --git a/libs/libc/string/lib_strcat.c b/libs/libc/string/lib_strcat.c index 7dcc5e4ee8c..a7692eae14a 100644 --- a/libs/libc/string/lib_strcat.c +++ b/libs/libc/string/lib_strcat.c @@ -35,7 +35,7 @@ ****************************************************************************/ #if !defined(CONFIG_LIBC_ARCH_STRCAT) && defined(LIBC_BUILD_STRCAT) -#undef strcat /* See mm/README.txt */ +#undef strcat FAR char *strcat(FAR char *dest, FAR const char *src) { FAR char *ret = dest; diff --git a/libs/libc/string/lib_strchr.c b/libs/libc/string/lib_strchr.c index 98538abbb50..c60ba071def 100644 --- a/libs/libc/string/lib_strchr.c +++ b/libs/libc/string/lib_strchr.c @@ -49,7 +49,7 @@ ****************************************************************************/ #if !defined(CONFIG_LIBC_ARCH_STRCHR) && defined(LIBC_BUILD_STRCHR) -#undef strchr /* See mm/README.txt */ +#undef strchr FAR char *strchr(FAR const char *s, int c) { for (; ; s++) diff --git a/libs/libc/string/lib_strchrnul.c b/libs/libc/string/lib_strchrnul.c index d8433b695c7..29fbb60ac91 100644 --- a/libs/libc/string/lib_strchrnul.c +++ b/libs/libc/string/lib_strchrnul.c @@ -49,7 +49,7 @@ ****************************************************************************/ #if !defined(CONFIG_LIBC_ARCH_STRCHRNUL) && defined(LIBC_BUILD_STRCHRNUL) -#undef strchrnul /* See mm/README.txt */ +#undef strchrnul FAR char *strchrnul(FAR const char *s, int c) { if (s) diff --git a/libs/libc/string/lib_strcmp.c b/libs/libc/string/lib_strcmp.c index f445d5f99a2..d921eaa5b0b 100644 --- a/libs/libc/string/lib_strcmp.c +++ b/libs/libc/string/lib_strcmp.c @@ -35,7 +35,7 @@ ****************************************************************************/ #if !defined(CONFIG_LIBC_ARCH_STRCMP) && defined(LIBC_BUILD_STRCMP) -#undef strcmp /* See mm/README.txt */ +#undef strcmp int strcmp(FAR const char *cs, FAR const char *ct) { register int result; diff --git a/libs/libc/string/lib_strcpy.c b/libs/libc/string/lib_strcpy.c index 38c73c3a481..d4244fe33b7 100644 --- a/libs/libc/string/lib_strcpy.c +++ b/libs/libc/string/lib_strcpy.c @@ -47,7 +47,7 @@ ****************************************************************************/ #if !defined(CONFIG_LIBC_ARCH_STRCPY) && defined(LIBC_BUILD_STRCPY) -#undef strcpy /* See mm/README.txt */ +#undef strcpy FAR char *strcpy(FAR char *dest, FAR const char *src) { FAR char *tmp = dest; diff --git a/libs/libc/string/lib_strcspn.c b/libs/libc/string/lib_strcspn.c index 1b68641aa44..163d3ab9b08 100644 --- a/libs/libc/string/lib_strcspn.c +++ b/libs/libc/string/lib_strcspn.c @@ -41,7 +41,7 @@ * ****************************************************************************/ -#undef strcspn /* See mm/README.txt */ +#undef strcspn size_t strcspn(const char *s, const char *reject) { size_t i; diff --git a/libs/libc/string/lib_strdup.c b/libs/libc/string/lib_strdup.c index 40e7fef4b17..0bc0350a6dd 100644 --- a/libs/libc/string/lib_strdup.c +++ b/libs/libc/string/lib_strdup.c @@ -34,7 +34,7 @@ * Public Functions ****************************************************************************/ -#undef strdup /* See mm/README.txt */ +#undef strdup FAR char *strdup(FAR const char *s) { size_t size = strlen(s) + 1; diff --git a/libs/libc/string/lib_strlcat.c b/libs/libc/string/lib_strlcat.c index d96aabb331a..c78322797f4 100644 --- a/libs/libc/string/lib_strlcat.c +++ b/libs/libc/string/lib_strlcat.c @@ -49,7 +49,7 @@ ****************************************************************************/ #if !defined(CONFIG_LIBC_ARCH_STRLCAT) && defined(LIBC_BUILD_STRLCAT) -#undef strlcat /* See mm/README.txt */ +#undef strlcat size_t strlcat(FAR char *dst, FAR const char *src, size_t dsize) { FAR const char *odst = dst; diff --git a/libs/libc/string/lib_strlcpy.c b/libs/libc/string/lib_strlcpy.c index 21eb8abb49a..2cf6dbbab01 100644 --- a/libs/libc/string/lib_strlcpy.c +++ b/libs/libc/string/lib_strlcpy.c @@ -48,7 +48,7 @@ ****************************************************************************/ #if !defined(CONFIG_LIBC_ARCH_STRLCPY) && defined(LIBC_BUILD_STRLCPY) -#undef strlcpy /* See mm/README.txt */ +#undef strlcpy size_t strlcpy(FAR char *dst, FAR const char *src, size_t dsize) { FAR const char *osrc = src; diff --git a/libs/libc/string/lib_strlen.c b/libs/libc/string/lib_strlen.c index 594f01a4812..919940b15a5 100644 --- a/libs/libc/string/lib_strlen.c +++ b/libs/libc/string/lib_strlen.c @@ -35,7 +35,7 @@ ****************************************************************************/ #if !defined(CONFIG_LIBC_ARCH_STRLEN) && defined(LIBC_BUILD_STRLEN) -#undef strlen /* See mm/README.txt */ +#undef strlen size_t strlen(FAR const char *s) { FAR const char *sc; diff --git a/libs/libc/string/lib_strncasecmp.c b/libs/libc/string/lib_strncasecmp.c index d3efd339975..52d9339de45 100644 --- a/libs/libc/string/lib_strncasecmp.c +++ b/libs/libc/string/lib_strncasecmp.c @@ -37,7 +37,7 @@ ****************************************************************************/ #if !defined(CONFIG_LIBC_ARCH_STRNCASECMP) && defined(LIBC_BUILD_STRNCASECMP) -#undef strncasecmp /* See mm/README.txt */ +#undef strncasecmp int strncasecmp(FAR const char *cs, FAR const char *ct, size_t nb) { register int result = 0; diff --git a/libs/libc/string/lib_strncat.c b/libs/libc/string/lib_strncat.c index 4abe2d18bd1..bbffc3dd154 100644 --- a/libs/libc/string/lib_strncat.c +++ b/libs/libc/string/lib_strncat.c @@ -35,7 +35,7 @@ ****************************************************************************/ #if !defined(CONFIG_LIBC_ARCH_STRNCAT) && defined(LIBC_BUILD_STRNCAT) -#undef strncat /* See mm/README.txt */ +#undef strncat FAR char *strncat(FAR char *dest, FAR const char *src, size_t n) { FAR char *ret = dest; diff --git a/libs/libc/string/lib_strncmp.c b/libs/libc/string/lib_strncmp.c index e46c7abbcea..02ffef9b467 100644 --- a/libs/libc/string/lib_strncmp.c +++ b/libs/libc/string/lib_strncmp.c @@ -35,7 +35,7 @@ ****************************************************************************/ #if !defined(CONFIG_LIBC_ARCH_STRNCMP) && defined(LIBC_BUILD_STRNCMP) -#undef strncmp /* See mm/README.txt */ +#undef strncmp int strncmp(FAR const char *cs, FAR const char *ct, size_t nb) { register int result = 0; diff --git a/libs/libc/string/lib_strncpy.c b/libs/libc/string/lib_strncpy.c index 3e36df4ff53..dc3af786ee7 100644 --- a/libs/libc/string/lib_strncpy.c +++ b/libs/libc/string/lib_strncpy.c @@ -56,7 +56,7 @@ ****************************************************************************/ #if !defined(CONFIG_LIBC_ARCH_STRNCPY) && defined(LIBC_BUILD_STRNCPY) -#undef strncpy /* See mm/README.txt */ +#undef strncpy FAR char *strncpy(FAR char *dest, FAR const char *src, size_t n) { FAR char *ret = dest; /* Value to be returned */ diff --git a/libs/libc/string/lib_strndup.c b/libs/libc/string/lib_strndup.c index 832ed8132d7..1dfca63926e 100644 --- a/libs/libc/string/lib_strndup.c +++ b/libs/libc/string/lib_strndup.c @@ -92,7 +92,7 @@ FAR char *nx_strndup(FAR const char *s, size_t size) * ****************************************************************************/ -#undef strndup /* See mm/README.txt */ +#undef strndup FAR char *strndup(FAR const char *s, size_t size) { FAR char *news = NULL; diff --git a/libs/libc/string/lib_strnlen.c b/libs/libc/string/lib_strnlen.c index bf162a75016..94922d24b42 100644 --- a/libs/libc/string/lib_strnlen.c +++ b/libs/libc/string/lib_strnlen.c @@ -35,7 +35,7 @@ ****************************************************************************/ #if !defined(CONFIG_LIBC_ARCH_STRNLEN) && defined(LIBC_BUILD_STRNLEN) -#undef strnlen /* See mm/README.txt */ +#undef strnlen size_t strnlen(FAR const char *s, size_t maxlen) { FAR const char *sc; diff --git a/libs/libc/string/lib_strpbrk.c b/libs/libc/string/lib_strpbrk.c index 84944431726..9b1ac2a2c75 100644 --- a/libs/libc/string/lib_strpbrk.c +++ b/libs/libc/string/lib_strpbrk.c @@ -32,7 +32,7 @@ * Public Functions ****************************************************************************/ -#undef strpbrk /* See mm/README.txt */ +#undef strpbrk FAR char *strpbrk(FAR const char *str, FAR const char *charset) { /* Check each character in the string */ diff --git a/libs/libc/string/lib_strrchr.c b/libs/libc/string/lib_strrchr.c index d19afc743bc..db683445652 100644 --- a/libs/libc/string/lib_strrchr.c +++ b/libs/libc/string/lib_strrchr.c @@ -39,7 +39,7 @@ */ #if !defined(CONFIG_LIBC_ARCH_STRRCHR) && defined(LIBC_BUILD_STRRCHR) -#undef strrchr /* See mm/README.txt */ +#undef strrchr FAR char *strrchr(FAR const char *s, int c) { FAR const char *r = NULL; diff --git a/libs/libc/string/lib_strsep.c b/libs/libc/string/lib_strsep.c index 0ec9d1cd75f..44a607cfe18 100644 --- a/libs/libc/string/lib_strsep.c +++ b/libs/libc/string/lib_strsep.c @@ -48,7 +48,7 @@ * ****************************************************************************/ -#undef strsep /* See mm/README.txt */ +#undef strsep FAR char *strsep(FAR char **strp, FAR const char *delim) { FAR char *sbegin = *strp; diff --git a/libs/libc/string/lib_strspn.c b/libs/libc/string/lib_strspn.c index f9cd903e660..c51d53be376 100644 --- a/libs/libc/string/lib_strspn.c +++ b/libs/libc/string/lib_strspn.c @@ -41,7 +41,7 @@ * ****************************************************************************/ -#undef strspn /* See mm/README.txt */ +#undef strspn size_t strspn(const char *s, const char *accept) { size_t i; diff --git a/libs/libc/string/lib_strstr.c b/libs/libc/string/lib_strstr.c index 8bd392f6df4..bcd5d265a4d 100644 --- a/libs/libc/string/lib_strstr.c +++ b/libs/libc/string/lib_strstr.c @@ -52,7 +52,7 @@ * string haystack. Returns NULL if needle was not found. */ -#undef strstr /* See mm/README.txt */ +#undef strstr FAR char *strstr(FAR const char *haystack, FAR const char *needle) { #ifdef CONFIG_ALLOW_MIT_COMPONENTS diff --git a/libs/libc/string/lib_strtok.c b/libs/libc/string/lib_strtok.c index d3dc9fe9fea..d9feead81a4 100644 --- a/libs/libc/string/lib_strtok.c +++ b/libs/libc/string/lib_strtok.c @@ -68,7 +68,7 @@ static FAR char *g_saveptr = NULL; * ****************************************************************************/ -#undef strtok /* See mm/README.txt */ +#undef strtok FAR char *strtok(FAR char *str, FAR const char *delim) { return strtok_r(str, delim, &g_saveptr); diff --git a/libs/libc/string/lib_strtokr.c b/libs/libc/string/lib_strtokr.c index 2602902144f..1db66ddf50e 100644 --- a/libs/libc/string/lib_strtokr.c +++ b/libs/libc/string/lib_strtokr.c @@ -77,7 +77,7 @@ * ****************************************************************************/ -#undef strtok_r /* See mm/README.txt */ +#undef strtok_r FAR char *strtok_r(FAR char *str, FAR const char *delim, FAR char **saveptr) { FAR char *pbegin;
