Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 Mar 2011 22:50:02 +0000 (UTC)
From:      Jilles Tjoelker <jilles@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org
Subject:   svn commit: r220115 - stable/8/lib/libc/string
Message-ID:  <201103282250.p2SMo2HI009069@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jilles
Date: Mon Mar 28 22:50:02 2011
New Revision: 220115
URL: http://svn.freebsd.org/changeset/base/220115

Log:
  MFC r219803: index(3): Mention that index/rindex are deprecated and not
  specified by POSIX.1-2008.

Modified:
  stable/8/lib/libc/string/index.3
Directory Properties:
  stable/8/lib/libc/   (props changed)
  stable/8/lib/libc/stdtime/   (props changed)

Modified: stable/8/lib/libc/string/index.3
==============================================================================
--- stable/8/lib/libc/string/index.3	Mon Mar 28 19:44:54 2011	(r220114)
+++ stable/8/lib/libc/string/index.3	Mon Mar 28 22:50:02 2011	(r220115)
@@ -30,7 +30,7 @@
 .\"     @(#)index.3	8.1 (Berkeley) 6/4/93
 .\" $FreeBSD$
 .\"
-.Dd June 4, 1993
+.Dd March 20, 2011
 .Dt INDEX 3
 .Os
 .Sh NAME
@@ -45,6 +45,17 @@
 .Ft "char *"
 .Fn rindex "const char *s" "int c"
 .Sh DESCRIPTION
+.Bf -symbolic
+The
+.Fn index
+and
+.Fn rindex
+functions have been deprecated in favor of
+.Xr strchr 3
+and
+.Xr strrchr 3 .
+.Ef
+.Pp
 The
 .Fn index
 function
@@ -100,3 +111,5 @@ before they were moved to
 for
 .St -p1003.1-2001
 compliance.
+The functions are not specified by
+.St -p1003.1-2008 .



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201103282250.p2SMo2HI009069>