Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 May 2017 06:53:31 +0000 (UTC)
From:      Ngie Cooper <ngie@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r318698 - head/lib/libc/gen
Message-ID:  <201705230653.v4N6rVjC065628@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ngie
Date: Tue May 23 06:53:31 2017
New Revision: 318698
URL: https://svnweb.freebsd.org/changeset/base/318698

Log:
  basename(3): fix section ordering
  
  IMPLEMENTATION NOTES come before RETURN VALUES
  
  MFC after:	2 weeks
  Reported by:	make manlint
  Sponsored by:	Dell EMC Isilon

Modified:
  head/lib/libc/gen/basename.3

Modified: head/lib/libc/gen/basename.3
==============================================================================
--- head/lib/libc/gen/basename.3	Tue May 23 06:20:24 2017	(r318697)
+++ head/lib/libc/gen/basename.3	Tue May 23 06:53:31 2017	(r318698)
@@ -16,7 +16,7 @@
 .\"
 .\" $FreeBSD$
 .\"
-.Dd October 29, 2016
+.Dd May 22, 2017
 .Dt BASENAME 3
 .Os
 .Sh NAME
@@ -34,6 +34,16 @@ function returns the last component from
 deleting any trailing
 .Sq \&/
 characters.
+.Sh IMPLEMENTATION NOTES
+This implementation of
+.Fn basename
+uses the buffer provided by the caller to store the resulting pathname
+component.
+Other vendor implementations may return a pointer to internal storage
+space instead.
+The advantage of the former approach is that it ensures thread-safety,
+while also placing no upper limit on the supported length of the
+pathname.
 .Sh RETURN VALUES
 If
 .Fa path
@@ -50,16 +60,6 @@ is returned.
 Otherwise,
 it returns a pointer to the last component of
 .Fa path .
-.Sh IMPLEMENTATION NOTES
-This implementation of
-.Fn basename
-uses the buffer provided by the caller to store the resulting pathname
-component.
-Other vendor implementations may return a pointer to internal storage
-space instead.
-The advantage of the former approach is that it ensures thread-safety,
-while also placing no upper limit on the supported length of the
-pathname.
 .Sh SEE ALSO
 .Xr basename 1 ,
 .Xr dirname 1 ,



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