libc: Fix strcasecmp_l() and strncasecmp_l() issues.
authorSascha Wildner <saw@online.de>
Wed, 21 May 2014 19:11:54 +0000 (21:11 +0200)
committerSascha Wildner <saw@online.de>
Wed, 21 May 2014 19:11:54 +0000 (21:11 +0200)
commit5d7045343743889ccbfd3c1dfb20873e9efad024
treed43736e275fc19accdeafa362e09036da033c3b2
parent6d688f9b5adfeeb0010fc96cef23578f34bf50df
libc: Fix strcasecmp_l() and strncasecmp_l() issues.

POSIX.1-2008 specifies that those two functions should be declared by
including <strings.h>, not <string.h> (the latter only has strcoll_l()
and strxfrm_l()):

http://pubs.opengroup.org/onlinepubs/9699919799/functions/strcasecmp.html

It looks like FreeBSD got this wrong in their xlocale stuff originally.

And it looks like the only clean way to properly solve it is to split
<xlocale/_string.h> into <xlocale/_string.h> and <xlocale/_strings.h>,
which this commit does.
include/strings.h
include/xlocale/Makefile
include/xlocale/_string.h
include/xlocale/_strings.h [copied from include/xlocale/_string.h with 76% similarity]