mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 22:37:45 -04: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 <[email protected]> Cc: Alexey Brodkin <[email protected]> Cc: David Ahern <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Vineet Gupta <[email protected]> Cc: Wang Nan <[email protected]> Link: http://lkml.kernel.org/n/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
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_ */
|