Age | Commit message (Collapse) | Author |
|
Include <strings.h> in <string.h> if __BSD_VISIBLE like on FreeBSD.
Remove redundant declarations from <string.h>. Make ffsl(), ffsll(),
strncasecmp(), strcasecmp_l(), and strncasecmp_l() visible via
__BSD_VISIBLE instead of __GNU_VISIBLE. Add fls(), flsl(), and flsll()
to <strings.h> if __BSD_VISIBLE.
Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
|
|
The locale_t type is provided by <xlocale.h> on Linux, FreeBSD, and Darwin.
While, like on some of those systems, it is automatically included by
<locale.h> with the proper feature test macros, its presence under this
particular name is still presumed in real-world software.
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
|
|
strerror_l prototype was missing.
str[n]casecmp_l feature tests in string.h vs. strings.h were transposed.
|
|
Per glibc, both funcs are defined as GNU visible in strings.h.
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
|
|
strings.h is the header mandated for these functions in POSIX.1 prior to
2008 (when most of these were removed). The declarations in string.h are
only for BSD compatibility. But when both headers are included, avoid
duplicate declarations.
Also, mark stpcpy and stpncpy as POSIX.1-2008.
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
|
|
Replace __STRICT_ANSI__ with the proper internal macros for bcmp etc.
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
|
|
|
|
* libc/include/strings.h: Don't declare removed functions when
requesting POSIX 2008 compliance.
|
|
* libc/include/strings.h: New (split-out from string.h).
|