From nobody Sun Apr 28 18:16:05 2024 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4VSF5c6kC7z5Jhk0 for ; Sun, 28 Apr 2024 18:16:20 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-ed1-x531.google.com (mail-ed1-x531.google.com [IPv6:2a00:1450:4864:20::531]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VSF5c2zZwz54Pj for ; Sun, 28 Apr 2024 18:16:20 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-ed1-x531.google.com with SMTP id 4fb4d7f45d1cf-572229f196cso3832278a12.2 for ; Sun, 28 Apr 2024 11:16:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20230601.gappssmtp.com; s=20230601; t=1714328176; x=1714932976; darn=freebsd.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=YB+QBDP748La5hcuu3drequV5zieljIJrFAOqM/2SVc=; b=LQW426hshnRqTeonH8Z4E4Qjd3xxM0X/uIPPUxo6E3jKYCB4FaEnym9Gxlq80fj17z 1QZfZJRBAkpVKdtHvbb7wzfqJzP0MBPqRkNgFufoZJT0sQrkT8SUi68N13p+rgMOrzr0 gk7El+zmLFBmrVUhXrolwZ1Ucye5SP6Ki3u5bX4yRLkFfh0ZD5ohI4UnLaEUSF/4FwSA bilUlWHc/qC9zCoZvimmn7XgI4MuvGPaJiO+TpEvP5Cu9JbgAGmwTN2Vy/hnykxCfiUP VckyGAsBJAeAmPYSUcYBnjZZJTtRRcR6gxwgufzCpZ+G0SihSiG1EWVnIauxSDiiAeWT kJ3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714328176; x=1714932976; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=YB+QBDP748La5hcuu3drequV5zieljIJrFAOqM/2SVc=; b=WYkfd5dVIp/ClqWFz4Rc+oSD+tEG7QvNGYWe6hYm3U/5/9QwNTofOtderlvAcg3OJw VNVrokWNIaaBiFF2MUAYnP/oiKTbIeA5GLf/q/nOnZWPLrQuOLeop3XZ0sIhJa3n4Ris 978s1yQ6+PeHQl0zgKfHyoWKNI5205CSoRs5KGS8O9K3lOPa3IOqIMndYcGwa8cNhAbn BZxAKabut+mGMdfL+NK7Fu3TGXxv6mfOjV6b9Gas7LDaJr5qzd5FqYVaMoS72SQ+MEVl tIkroWr3vcyHEyMgT8MNC7IAXbpalxC9/OLJtAOLxwaBinDCeSnxy5SQlyr1age+swWk RVAg== X-Forwarded-Encrypted: i=1; AJvYcCWSLyu3liqlXIeZAgycIk8sxYj1X3YhXbRqJgrYPRrNyj/ar8L7e4B87JXM2EejEnmJMOW1uIfBk4ybZVeB4BAXG/QlxWVUHmDg+syn9+Igeg== X-Gm-Message-State: AOJu0Yx8j93ud2adrrEIDkhCa0N7WWSWPOu6GqW0rvUGgUTXPq62yAw7 5MVM5Y7I8BiUnTALGky07DthXVwba6fIjLtMZ1YTAutKXcq9KlmEpVapbDsaUJmQmbrYgvgkbCz rHVMNbCRJxhXtKZUskcKI/DU0uFbEim3cG8XCEQ== X-Google-Smtp-Source: AGHT+IFlPV/Ral8eEGzf5kIdiCQzjBWKEcRGwoWcmYTaen489DcecZMndMYvNLNHr0l7mtXzxqAQK0QFe4PrRrxHVng= X-Received: by 2002:a17:906:445:b0:a52:6721:f276 with SMTP id e5-20020a170906044500b00a526721f276mr4281931eja.19.1714328176530; Sun, 28 Apr 2024 11:16:16 -0700 (PDT) List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org MIME-Version: 1.0 References: <202404281812.43SICBSW008151@gitrepo.freebsd.org> In-Reply-To: <202404281812.43SICBSW008151@gitrepo.freebsd.org> From: Warner Losh Date: Sun, 28 Apr 2024 12:16:05 -0600 Message-ID: Subject: Re: git: 6662c2312e95 - main - gettimeofday.2: Do mention improbable future removal To: Mateusz Piotrowski <0mp@freebsd.org> Cc: src-committers@freebsd.org, dev-commits-src-all@freebsd.org, dev-commits-src-main@freebsd.org Content-Type: multipart/alternative; boundary="000000000000fdb05b06172c2149" X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US] X-Rspamd-Queue-Id: 4VSF5c2zZwz54Pj --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


=
On Sun, Apr 28, 2024 at 12:12=E2=80= =AFPM Mateusz Piotrowski <0mp@freebsd= .org> wrote:
The branch main has been updated by 0mp:

URL: https://cgit.= FreeBSD.org/src/commit/?id=3D6662c2312e956439652ce2d06b42753b6a78fc61
commit 6662c2312e956439652ce2d06b42753b6a78fc61
Author:=C2=A0 =C2=A0 =C2=A0Mateusz Piotrowski <0mp@FreeBSD.org>
AuthorDate: 2024-04-28 18:06:05 +0000
Commit:=C2=A0 =C2=A0 =C2=A0Mateusz Piotrowski <0mp@FreeBSD.org>
CommitDate: 2024-04-28 18:11:22 +0000

=C2=A0 =C2=A0 gettimeofday.2: Do mention improbable future removal

=C2=A0 =C2=A0 As kib@ noted:

=C2=A0 =C2=A0 > Obviously gettimeofday(2) is not going to be removed
=C2=A0 =C2=A0 > even in the far future.

=C2=A0 =C2=A0 Reported by:=C2=A0 =C2=A0 kib
=C2=A0 =C2=A0 Fixes:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 4395d3ced5cf Documen= t that gettimeofday() is obsolescent
=C2=A0 =C2=A0 MFC after:=C2=A0 =C2=A0 =C2=A0 3 days
---
=C2=A0lib/libsys/gettimeofday.2 | 8 +++-----
=C2=A01 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 @@
=C2=A0.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSS= IBILITY OF
=C2=A0.\" SUCH DAMAGE.
=C2=A0.\"
-.Dd April 24, 2024
+.Dd April 28, 2024
=C2=A0.Dt GETTIMEOFDAY 2
=C2=A0.Os
=C2=A0.Sh NAME
@@ -139,11 +139,9 @@ function is considered obsolescent and its usage disco= uraged by
=C2=A0.\" XXX: This should be replaced in the future when an appropria= te argument to
=C2=A0.\" the St macro is available: -p1003.1-2017
=C2=A0.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 md= oc folks are never going to have a -p1003.1-2017
because it's= not a full new standard.

Warner
=C2=A0
-Application should use the
+Applications should use the
=C2=A0.Xr clock_gettime 2
-function instead as
-.Nm gettimeofday
-might be removed in the future.
+function instead.
=C2=A0.Sh HISTORY
=C2=A0The
=C2=A0.Fn gettimeofday
--000000000000fdb05b06172c2149--