diff options
-rw-r--r-- | include/string.h | 7 | ||||
-rw-r--r-- | string/strsep.c | 1 |
2 files changed, 8 insertions, 0 deletions
diff --git a/include/string.h b/include/string.h index e145bfdb4c..151e420478 100644 --- a/include/string.h +++ b/include/string.h @@ -71,6 +71,12 @@ extern __typeof (strncasecmp_l) __strncasecmp_l; __new[__len] = '\0'; \ (char *) memcpy (__new, __old, __len); \ })) + +# ifdef __OPTIMIZE_SIZE__ +# define strdup(s) __strdup ((s)) +# define strndup(s, n) __strndup ((s), (n)) +# define strsep(s, d) __strsep ((s), (d)) +# endif #endif libc_hidden_proto (__mempcpy) @@ -99,6 +105,7 @@ libc_hidden_proto (memmem) extern __typeof (memmem) __memmem; libc_hidden_proto (__memmem) libc_hidden_proto (__ffs) +libc_hidden_proto (__strsep) libc_hidden_builtin_proto (memchr) libc_hidden_builtin_proto (memcpy) diff --git a/string/strsep.c b/string/strsep.c index 1054774048..1d98885e22 100644 --- a/string/strsep.c +++ b/string/strsep.c @@ -66,4 +66,5 @@ __strsep (char **stringp, const char *delim) } weak_alias (__strsep, strsep) strong_alias (__strsep, __strsep_g) +libc_hidden_def (__strsep) libc_hidden_def (__strsep_g) |