summaryrefslogtreecommitdiffstats
path: root/newlib/libc/include/strings.h
Commit message (Collapse)AuthorAgeFilesLines
* include: fix ffs, fls guardsYaakov Selkowitz2017-08-301-2/+4
| | | | Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
* Synchronize <strings.h> with latest FreeBSDSebastian Huber2017-07-051-31/+58
| | | | | | | | | | 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>
* Rename <sys/_locale.h> to <xlocale.h>Yaakov Selkowitz2017-03-221-1/+1
| | | | | | | | | 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>
* Add strerror_l prototype, change str[n]casecmp_l feature testsBrian Inglis2016-08-251-4/+8
| | | | | strerror_l prototype was missing. str[n]casecmp_l feature tests in string.h vs. strings.h were transposed.
* Add missing declarations of str{n}casecmp_l to strings.h.Corinna Vinschen2016-08-231-0/+5
| | | | | | Per glibc, both funcs are defined as GNU visible in strings.h. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* Feature test macros overhaul: string.h and strings.h overlapsYaakov Selkowitz2016-04-131-0/+5
| | | | | | | | | | | 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>
* Feature test macros overhaul: strings.hYaakov Selkowitz2016-03-171-3/+3
| | | | | | 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 include locale.h.Corinna Vinschen2010-12-081-1/+0
|
* strings.h: avoid namespace pollutionEric Blake2010-12-081-1/+1
| | | | | * libc/include/strings.h: Don't declare removed functions when requesting POSIX 2008 compliance.
* 2010-12-07 Ralf Corsépius <ralf.corsepius@rtems.org>Jeff Johnston2010-12-071-0/+36
* libc/include/strings.h: New (split-out from string.h).