diff options
author | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2010-08-04 03:43:54 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2010-08-06 19:09:38 +0200 |
commit | e0953c5db2cb2ac73ca4ffe2f91ee78939de4ede (patch) | |
tree | ff3aa9c2a9000162464c11d96f08cdbe41a183ce /include | |
parent | 873910050ea0efc92db49ed233e70df7276a3f5b (diff) | |
download | barebox-e0953c5db2cb2ac73ca4ffe2f91ee78939de4ede.tar.gz barebox-e0953c5db2cb2ac73ca4ffe2f91ee78939de4ede.tar.xz |
string: add strlcpy support
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Cc: Andrea GALLO <andrea.gallo@stericsson.com>
Cc: Gael SALLES <gael.salles@stericsson.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/string.h | 3 | ||||
-rw-r--r-- | include/stdio.h | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/string.h b/include/linux/string.h index 20b0829609..62d743ee5e 100644 --- a/include/linux/string.h +++ b/include/linux/string.h @@ -38,6 +38,9 @@ extern char * strcpy(char *,const char *); #ifndef __HAVE_ARCH_STRNCPY extern char * strncpy(char *,const char *, __kernel_size_t); #endif +#ifndef __HAVE_ARCH_STRLCPY +size_t strlcpy(char *, const char *, size_t); +#endif #ifndef __HAVE_ARCH_STRCAT extern char * strcat(char *, const char *); #endif diff --git a/include/stdio.h b/include/stdio.h index d591b6ab60..8bc45fa60e 100644 --- a/include/stdio.h +++ b/include/stdio.h @@ -36,6 +36,7 @@ int vsprintf(char *buf, const char *fmt, va_list args); char *asprintf(const char *fmt, ...); char *vasprintf(const char *fmt, va_list ap); int vsnprintf(char *buf, size_t size, const char *fmt, va_list args); +int vscnprintf(char *buf, size_t size, const char *fmt, va_list args); /* stderr */ #define eputc(c) console_putc(CONSOLE_STDERR, c) |