diff options
author | Antonio Nino Diaz <antonio.ninodiaz@arm.com> | 2018-08-13 19:41:17 +0100 |
---|---|---|
committer | Antonio Nino Diaz <antonio.ninodiaz@arm.com> | 2018-08-22 10:26:05 +0100 |
commit | 2c5aca6eaab998271ab17792486cf67dd2e67711 (patch) | |
tree | 1b8ead2e187a2032a66907d70ea3c099072577be /lib/libc | |
parent | c6fdaa73633cae03e23ee62d55e2bd608bb4535c (diff) |
libc: Cleanup FreeBSD files
Remove code specific to FreeBSD so that they can be used in this
repository.
Change-Id: I5c11eb5b3c05a7fb91aed08371a1f7a0e6122a94
Signed-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/strchr.c | 11 | ||||
-rw-r--r-- | lib/libc/strcmp.c | 9 | ||||
-rw-r--r-- | lib/libc/strncmp.c | 9 | ||||
-rw-r--r-- | lib/libc/strnlen.c | 6 |
4 files changed, 16 insertions, 19 deletions
diff --git a/lib/libc/strchr.c b/lib/libc/strchr.c index 61244da4..d94bb9e0 100644 --- a/lib/libc/strchr.c +++ b/lib/libc/strchr.c @@ -29,11 +29,10 @@ * SUCH DAMAGE. */ -#if defined(LIBC_SCCS) && !defined(lint) -static char sccsid[] = "@(#)index.c 8.1 (Berkeley) 6/4/93"; -#endif /* LIBC_SCCS and not lint */ -#include <sys/cdefs.h> -__FBSDID("$FreeBSD$"); +/* + * Portions copyright (c) 2018, ARM Limited and Contributors. + * All rights reserved. + */ #include <stddef.h> #include <string.h> @@ -52,5 +51,3 @@ strchr(const char *p, int ch) } /* NOTREACHED */ } - -__weak_reference(strchr, index); diff --git a/lib/libc/strcmp.c b/lib/libc/strcmp.c index 63cb4468..b742f9b9 100644 --- a/lib/libc/strcmp.c +++ b/lib/libc/strcmp.c @@ -32,11 +32,10 @@ * SUCH DAMAGE. */ -#if defined(LIBC_SCCS) && !defined(lint) -static char sccsid[] = "@(#)strcmp.c 8.1 (Berkeley) 6/4/93"; -#endif /* LIBC_SCCS and not lint */ -#include <sys/cdefs.h> -__FBSDID("$FreeBSD$"); +/* + * Portions copyright (c) 2018, ARM Limited and Contributors. + * All rights reserved. + */ #include <string.h> diff --git a/lib/libc/strncmp.c b/lib/libc/strncmp.c index c68fe005..ce9e5ed4 100644 --- a/lib/libc/strncmp.c +++ b/lib/libc/strncmp.c @@ -29,11 +29,10 @@ * SUCH DAMAGE. */ -#if defined(LIBC_SCCS) && !defined(lint) -static char sccsid[] = "@(#)strncmp.c 8.1 (Berkeley) 6/4/93"; -#endif /* LIBC_SCCS and not lint */ -#include <sys/cdefs.h> -__FBSDID("$FreeBSD$"); +/* + * Portions copyright (c) 2018, ARM Limited and Contributors. + * All rights reserved. + */ #include <string.h> diff --git a/lib/libc/strnlen.c b/lib/libc/strnlen.c index fca7ad26..b944e95b 100644 --- a/lib/libc/strnlen.c +++ b/lib/libc/strnlen.c @@ -26,8 +26,10 @@ * SUCH DAMAGE. */ -#include <sys/cdefs.h> -__FBSDID("$FreeBSD$"); +/* + * Portions copyright (c) 2018, ARM Limited and Contributors. + * All rights reserved. + */ #include <string.h> |