mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-03-11 23:27:42 +07:00

Better to whitelist it for libraries that require it (glibc) than blacklist it with the ones that don't (uclibc, musl libc, etc). Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Alexey Brodkin <Alexey.Brodkin@synopsys.com> Cc: David Ahern <dsahern@gmail.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Vineet Gupta <vgupta@synopsys.com> Cc: Wang Nan <wangnan0@huawei.com> Link: http://lkml.kernel.org/n/tip-52ih0m63a2n63tanpy6yj682@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
18 lines
371 B
C
18 lines
371 B
C
#ifndef _TOOLS_LINUX_STRING_H_
|
|
#define _TOOLS_LINUX_STRING_H_
|
|
|
|
|
|
#include <linux/types.h> /* for size_t */
|
|
|
|
void *memdup(const void *src, size_t len);
|
|
|
|
int strtobool(const char *s, bool *res);
|
|
|
|
#ifdef __GLIBC__
|
|
extern size_t strlcpy(char *dest, const char *src, size_t size);
|
|
#endif
|
|
|
|
char *str_error_r(int errnum, char *buf, size_t buflen);
|
|
|
|
#endif /* _LINUX_STRING_H_ */
|