mirror of
https://github.com/apache/nuttx.git
synced 2026-05-20 12:33:27 +08:00
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 <raiden00@railab.me>
This commit is contained in:
+3
-3
@@ -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
|
||||
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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 =
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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');
|
||||
|
||||
@@ -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 */
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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++)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -41,7 +41,7 @@
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
#undef strcspn /* See mm/README.txt */
|
||||
#undef strcspn
|
||||
size_t strcspn(const char *s, const char *reject)
|
||||
{
|
||||
size_t i;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user