diff options
author | pfg <pfg@FreeBSD.org> | 2014-06-14 02:57:40 +0000 |
---|---|---|
committer | pfg <pfg@FreeBSD.org> | 2014-06-14 02:57:40 +0000 |
commit | b890481de0fc39ae91e5a454317a44aeee3a313a (patch) | |
tree | c971fabf6d364693631fe7339523fd417f799697 /lib/libc/string | |
parent | ab49cda14759bcd622b82320c0fcf9560ff4ae04 (diff) | |
download | FreeBSD-src-b890481de0fc39ae91e5a454317a44aeee3a313a.zip FreeBSD-src-b890481de0fc39ae91e5a454317a44aeee3a313a.tar.gz |
MFC r266865;
Fix strcasecmp_l() and strncasecmp_l() POSIX 2008 compliance.
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
Bump __FreeBSD_version for ports that may be using the non-standard
reference.
Obtained from: DragonFlyBSD
Reviewed by: theraven
Diffstat (limited to 'lib/libc/string')
-rw-r--r-- | lib/libc/string/strcasecmp.3 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/string/strcasecmp.3 b/lib/libc/string/strcasecmp.3 index 598f76f..65482d1 100644 --- a/lib/libc/string/strcasecmp.3 +++ b/lib/libc/string/strcasecmp.3 @@ -30,7 +30,7 @@ .\" @(#)strcasecmp.3 8.1 (Berkeley) 6/9/93 .\" $FreeBSD$ .\" -.Dd June 9, 1993 +.Dd May 29, 2014 .Dt STRCASECMP 3 .Os .Sh NAME @@ -45,7 +45,7 @@ .Fn strcasecmp "const char *s1" "const char *s2" .Ft int .Fn strncasecmp "const char *s1" "const char *s2" "size_t len" -.In string.h +.In strings.h .In xlocale.h .Ft int .Fn strcasecmp_l "const char *s1" "const char *s2" "locale_t loc" |