Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 28 Apr 2024 12:16:05 -0600
From:      Warner Losh <imp@bsdimp.com>
To:        Mateusz Piotrowski <0mp@freebsd.org>
Cc:        src-committers@freebsd.org, dev-commits-src-all@freebsd.org,  dev-commits-src-main@freebsd.org
Subject:   Re: git: 6662c2312e95 - main - gettimeofday.2: Do mention improbable future removal
Message-ID:  <CANCZdfpVmwdisRG2EmiFj3pS=7tdZCJVTcjsLFbZ0gxLHWHKKw@mail.gmail.com>
In-Reply-To: <202404281812.43SICBSW008151@gitrepo.freebsd.org>
References:  <202404281812.43SICBSW008151@gitrepo.freebsd.org>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
On Sun, Apr 28, 2024 at 12:12 PM Mateusz Piotrowski <0mp@freebsd.org> wrote:

> The branch main has been updated by 0mp:
>
> URL:
> https://cgit.FreeBSD.org/src/commit/?id=6662c2312e956439652ce2d06b42753b6a78fc61
>
> commit 6662c2312e956439652ce2d06b42753b6a78fc61
> Author:     Mateusz Piotrowski <0mp@FreeBSD.org>
> AuthorDate: 2024-04-28 18:06:05 +0000
> Commit:     Mateusz Piotrowski <0mp@FreeBSD.org>
> CommitDate: 2024-04-28 18:11:22 +0000
>
>     gettimeofday.2: Do mention improbable future removal
>
>     As kib@ noted:
>
>     > Obviously gettimeofday(2) is not going to be removed
>     > even in the far future.
>
>     Reported by:    kib
>     Fixes:          4395d3ced5cf Document that gettimeofday() is
> obsolescent
>     MFC after:      3 days
> ---
>  lib/libsys/gettimeofday.2 | 8 +++-----
>  1 file changed, 3 insertions(+), 5 deletions(-)
>
> diff --git a/lib/libsys/gettimeofday.2 b/lib/libsys/gettimeofday.2
> index cfba97149199..4fcd4b52312b 100644
> --- a/lib/libsys/gettimeofday.2
> +++ b/lib/libsys/gettimeofday.2
> @@ -25,7 +25,7 @@
>  .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
>  .\" SUCH DAMAGE.
>  .\"
> -.Dd April 24, 2024
> +.Dd April 28, 2024
>  .Dt GETTIMEOFDAY 2
>  .Os
>  .Sh NAME
> @@ -139,11 +139,9 @@ function is considered obsolescent and its usage
> discouraged by
>  .\" XXX: This should be replaced in the future when an appropriate
> argument to
>  .\" the St macro is available: -p1003.1-2017
>  .No IEEE Std 1003.1-2008, 2017 Edition (\\(LqPOSIX.1\\(Rq) .
>

No, this should be .St -p1003.1-2008 since the 2017 edition was only
typographical
and technical changes. The mdoc folks are never going to have a
-p1003.1-2017
because it's not a full new standard.

Warner



> -Application should use the
> +Applications should use the
>  .Xr clock_gettime 2
> -function instead as
> -.Nm gettimeofday
> -might be removed in the future.
> +function instead.
>  .Sh HISTORY
>  The
>  .Fn gettimeofday
>

[-- Attachment #2 --]
<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Apr 28, 2024 at 12:12 PM Mateusz Piotrowski &lt;<a href="mailto:0mp@freebsd.org">0mp@freebsd.org</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">The branch main has been updated by 0mp:<br>
<br>
URL: <a href="https://cgit.FreeBSD.org/src/commit/?id=6662c2312e956439652ce2d06b42753b6a78fc61" rel="noreferrer" target="_blank">https://cgit.FreeBSD.org/src/commit/?id=6662c2312e956439652ce2d06b42753b6a78fc61</a><br>;
<br>
commit 6662c2312e956439652ce2d06b42753b6a78fc61<br>
Author:     Mateusz Piotrowski &lt;0mp@FreeBSD.org&gt;<br>
AuthorDate: 2024-04-28 18:06:05 +0000<br>
Commit:     Mateusz Piotrowski &lt;0mp@FreeBSD.org&gt;<br>
CommitDate: 2024-04-28 18:11:22 +0000<br>
<br>
    gettimeofday.2: Do mention improbable future removal<br>
<br>
    As kib@ noted:<br>
<br>
    &gt; Obviously gettimeofday(2) is not going to be removed<br>
    &gt; even in the far future.<br>
<br>
    Reported by:    kib<br>
    Fixes:          4395d3ced5cf Document that gettimeofday() is obsolescent<br>
    MFC after:      3 days<br>
---<br>
 lib/libsys/gettimeofday.2 | 8 +++-----<br>
 1 file changed, 3 insertions(+), 5 deletions(-)<br>
<br>
diff --git a/lib/libsys/gettimeofday.2 b/lib/libsys/gettimeofday.2<br>
index cfba97149199..4fcd4b52312b 100644<br>
--- a/lib/libsys/gettimeofday.2<br>
+++ b/lib/libsys/gettimeofday.2<br>
@@ -25,7 +25,7 @@<br>
 .\&quot; OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF<br>
 .\&quot; SUCH DAMAGE.<br>
 .\&quot;<br>
-.Dd April 24, 2024<br>
+.Dd April 28, 2024<br>
 .Dt GETTIMEOFDAY 2<br>
 .Os<br>
 .Sh NAME<br>
@@ -139,11 +139,9 @@ function is considered obsolescent and its usage discouraged by<br>
 .\&quot; XXX: This should be replaced in the future when an appropriate argument to<br>
 .\&quot; the St macro is available: -p1003.1-2017<br>
 .No IEEE Std 1003.1-2008, 2017 Edition (\\(LqPOSIX.1\\(Rq) .<br></blockquote><div><br></div><div>No, this should be .St -p1003.1-2008 since the 2017 edition was only typographical</div><div>and technical changes. The mdoc folks are never going to have a -p1003.1-2017</div><div>because it&#39;s not a full new standard.</div><div><br></div><div>Warner<br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
-Application should use the<br>
+Applications should use the<br>
 .Xr clock_gettime 2<br>
-function instead as<br>
-.Nm gettimeofday<br>
-might be removed in the future.<br>
+function instead.<br>
 .Sh HISTORY<br>
 The<br>
 .Fn gettimeofday<br>
</blockquote></div></div>
help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANCZdfpVmwdisRG2EmiFj3pS=7tdZCJVTcjsLFbZ0gxLHWHKKw>