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>

next in thread | previous in thread | raw e-mail | index | archive | help
--000000000000fdb05b06172c2149
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

On Sun, Apr 28, 2024 at 12:12=E2=80=AFPM Mateusz Piotrowski <0mp@freebsd.or=
g> wrote:

> The branch main has been updated by 0mp:
>
> URL:
> https://cgit.FreeBSD.org/src/commit/?id=3D6662c2312e956439652ce2d06b42753=
b6a78fc61
>
> 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
>

--000000000000fdb05b06172c2149
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div dir=3D"ltr"><br></div><br><div class=3D"gmail_quote">=
<div dir=3D"ltr" class=3D"gmail_attr">On Sun, Apr 28, 2024 at 12:12=E2=80=
=AFPM Mateusz Piotrowski &lt;<a href=3D"mailto:0mp@freebsd.org">0mp@freebsd=
.org</a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"mar=
gin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1=
ex">The branch main has been updated by 0mp:<br>
<br>
URL: <a href=3D"https://cgit.FreeBSD.org/src/commit/?id=3D6662c2312e9564396=
52ce2d06b42753b6a78fc61" rel=3D"noreferrer" target=3D"_blank">https://cgit.=
FreeBSD.org/src/commit/?id=3D6662c2312e956439652ce2d06b42753b6a78fc61</a><b=
r>
<br>
commit 6662c2312e956439652ce2d06b42753b6a78fc61<br>
Author:=C2=A0 =C2=A0 =C2=A0Mateusz Piotrowski &lt;0mp@FreeBSD.org&gt;<br>
AuthorDate: 2024-04-28 18:06:05 +0000<br>
Commit:=C2=A0 =C2=A0 =C2=A0Mateusz Piotrowski &lt;0mp@FreeBSD.org&gt;<br>
CommitDate: 2024-04-28 18:11:22 +0000<br>
<br>
=C2=A0 =C2=A0 gettimeofday.2: Do mention improbable future removal<br>
<br>
=C2=A0 =C2=A0 As kib@ noted:<br>
<br>
=C2=A0 =C2=A0 &gt; Obviously gettimeofday(2) is not going to be removed<br>
=C2=A0 =C2=A0 &gt; even in the far future.<br>
<br>
=C2=A0 =C2=A0 Reported by:=C2=A0 =C2=A0 kib<br>
=C2=A0 =C2=A0 Fixes:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 4395d3ced5cf Documen=
t that gettimeofday() is obsolescent<br>
=C2=A0 =C2=A0 MFC after:=C2=A0 =C2=A0 =C2=A0 3 days<br>
---<br>
=C2=A0lib/libsys/gettimeofday.2 | 8 +++-----<br>
=C2=A01 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>
=C2=A0.\&quot; OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSS=
IBILITY OF<br>
=C2=A0.\&quot; SUCH DAMAGE.<br>
=C2=A0.\&quot;<br>
-.Dd April 24, 2024<br>
+.Dd April 28, 2024<br>
=C2=A0.Dt GETTIMEOFDAY 2<br>
=C2=A0.Os<br>
=C2=A0.Sh NAME<br>
@@ -139,11 +139,9 @@ function is considered obsolescent and its usage disco=
uraged by<br>
=C2=A0.\&quot; XXX: This should be replaced in the future when an appropria=
te argument to<br>
=C2=A0.\&quot; the St macro is available: -p1003.1-2017<br>
=C2=A0.No IEEE Std 1003.1-2008, 2017 Edition (\\(LqPOSIX.1\\(Rq) .<br></blo=
ckquote><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 md=
oc 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>=C2=A0</div><blockquote class=3D"gmail_quote" style=3D"margin:0=
px 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>
=C2=A0.Xr clock_gettime 2<br>
-function instead as<br>
-.Nm gettimeofday<br>
-might be removed in the future.<br>
+function instead.<br>
=C2=A0.Sh HISTORY<br>
=C2=A0The<br>
=C2=A0.Fn gettimeofday<br>
</blockquote></div></div>

--000000000000fdb05b06172c2149--



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