summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorpfg <pfg@FreeBSD.org>2014-05-30 01:09:07 +0000
committerpfg <pfg@FreeBSD.org>2014-05-30 01:09:07 +0000
commitf14a9b1c1eddb38b0169ad578180f8f2d16f2fd1 (patch)
tree0f28ab48e41df14ffe5cb02b4faa7394ea45e013 /lib
parentbb147ad2e05299d0c5f1a6f497a647434e294db4 (diff)
downloadFreeBSD-src-f14a9b1c1eddb38b0169ad578180f8f2d16f2fd1.zip
FreeBSD-src-f14a9b1c1eddb38b0169ad578180f8f2d16f2fd1.tar.gz
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 Obtained from: DragonFlyBSD Reviewed by: theraven MFC after: 2 weeks
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/string/strcasecmp.34
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/string/strcasecmp.3 b/lib/libc/string/strcasecmp.3
index 1c85042..4a13cc4 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"
OpenPOWER on IntegriCloud