diff options
| author | Atish Patra <atish.patra@wdc.com> | 2019-06-18 14:54:02 -0700 |
|---|---|---|
| committer | Anup Patel <anup.patel@wdc.com> | 2019-06-19 09:48:54 +0530 |
| commit | 98aaf8317b74414afa78078bc056670f46c45f41 (patch) | |
| tree | e26aa71b9e3ea232f246fd10a7cfd3fd94578f7a /platform/common/include/plat/string.h | |
| parent | 749b0b093242a4c27f7c4f66121afd7852b2de48 (diff) | |
| download | opensbi-98aaf8317b74414afa78078bc056670f46c45f41.tar.gz opensbi-98aaf8317b74414afa78078bc056670f46c45f41.tar.bz2 opensbi-98aaf8317b74414afa78078bc056670f46c45f41.zip | |
lib: Include helper libc functions directly in libsbi.
libsbi needs some of the custom libc functions. It should be directly
included in libsbi instead of platform specific libraries.
Signed-off-by: Atish Patra <atish.patra@wdc.com>
Acked-by: Anup Patel <anup.patel@wdc.com>
Diffstat (limited to 'platform/common/include/plat/string.h')
| -rw-r--r-- | platform/common/include/plat/string.h | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/platform/common/include/plat/string.h b/platform/common/include/plat/string.h deleted file mode 100644 index 8259ef56..00000000 --- a/platform/common/include/plat/string.h +++ /dev/null @@ -1,39 +0,0 @@ -/* - * SPDX-License-Identifier: BSD-2-Clause - * - * Copyright (c) 2019 Western Digital Corporation or its affiliates. - * - * Authors: - * Atish Patra <atish.patra@wdc.com> - */ - -#ifndef __STRING_H__ -#define __STRING_H__ - -#include <sbi/sbi_types.h> - -int strcmp(const char *a, const char *b); - -size_t strlen(const char *str); - -size_t strnlen(const char *str, size_t count); - -char *strcpy(char *dest, const char *src); - -char *strncpy(char *dest, const char *src, size_t count); - -char *strchr(const char *s, int c); - -char *strrchr(const char *s, int c); - -void *memset(void *s, int c, size_t count); - -void *memcpy(void *dest, const void *src, size_t count); - -void *memmove(void *dest, const void *src, size_t count); - -int memcmp(const void *s1, const void *s2, size_t count); - -void *memchr(const void *s, int c, size_t count); - -#endif |
