From nobody Fri Sep 06 18:35:15 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 4X0lJz68Hqz5VRkw; Fri, 06 Sep 2024 18:35:15 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4X0lJz3rP4z4VX7; Fri, 6 Sep 2024 18:35:15 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1725647715; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=VnqZTyz7S/7U/o/WJB0+S01/lD1YfA2nrqpQYq+jYeY=; b=BnaerrmxVo/6WQkRtZFxXiUUZVwujPjHc341BzX5Y2dUuTpzEFQpcMU0cR1zN2RtgSTMFC 79s7bFFl4ciz9dmO9xEM1z73ENJwu2+AHb0z64+I+x3KGID1D/2PsnAHKxL/zEGk3xfcMc UW3lIRfq5hDlf3JmrWMg6Sf4xsODJYSW8I8gdVeJaQ+fyB5yUZmmmUu1fM66j6Rr9SrY42 mV1oAz3oMZTgWVi5JO5rV7XlTQeKuljivDrEHyVJ7bQzvku3h/0qxFV+AkI3oSyqCCip36 YqxmcItX5BtjxQwZfdR5abPEWH4DweVd9wGHhnJLjof1OHlrsykEelcHKkEiIg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1725647715; a=rsa-sha256; cv=none; b=axLpL4Uv8fc+6H0+/Zsi9s3+6ibEZn0lKRPWWCy9B/Q7VXesnY/G9h8iJ/HJAKtNrvfFyG dPDOGa1G1+bG5hEeT1Xp2SXSNW5mbbxaOi7hMVUentiqgl9lN8Rx1vxtjgb0TyA0oW3bO3 WVku5NK+VP/1WMe+6w95ESJUbMbbhRbuPMuD3M65cjW4yf+KvGKAR92/StlLu7OfONMPtp EO12AbFxabpyL06lLEUBVYXn11/nIthNADtzbWajaxd0apx3GzjMKceMelN11hNK1BGoBg +pZc00agGkJnfSTajzqBGPTIAbLwPg2OZ8X3ZCiSoQduyUFjUj/yFtE7JUnJSg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1725647715; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=VnqZTyz7S/7U/o/WJB0+S01/lD1YfA2nrqpQYq+jYeY=; b=N8h4R30+k6uRRa/QsNLWI7d96y3sJ4nvOj90Uuzlc62bW2dliKDM2XallAsKGPLn3s4s46 QS+RVUdRMpBCLlN+slstDovlXiAQPjkSY9435ghYT08Of3uWhyaLwzs/ZbpPJ6ffr7hsh4 bh3WpCQmDPS6kTkZa6Yoo+tFfSSsNPV7ifndzfoDj+OZG7a3l3FuZFYobSzwu1JvYagXXq dVcP0lwiel1hMzYElh2zesCnsjXI4hR0DXf7zozYBE28ARDUN1j8HFqe79FrabzKHEMc6j GVWT/Uo/dHuWZhLDHk9rNAFromA7ywKSQ+G91pu75hFPBuVYX/W9RVFEIjC6kw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4X0lJz3PMvz137v; Fri, 6 Sep 2024 18:35:15 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 486IZFGt010923; Fri, 6 Sep 2024 18:35:15 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 486IZF3L010920; Fri, 6 Sep 2024 18:35:15 GMT (envelope-from git) Date: Fri, 6 Sep 2024 18:35:15 GMT Message-Id: <202409061835.486IZF3L010920@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Warner Losh Subject: git: 5321a3547912 - main - w: Add version information to libxo output 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 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: imp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 5321a3547912acbeea7eaea8ec3ed85f07537469 Auto-Submitted: auto-generated The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=5321a3547912acbeea7eaea8ec3ed85f07537469 commit 5321a3547912acbeea7eaea8ec3ed85f07537469 Author: Bram AuthorDate: 2024-07-26 19:35:57 +0000 Commit: Warner Losh CommitDate: 2024-09-06 18:34:31 +0000 w: Add version information to libxo output Add version information to libxo output so that libxo content consumers can track changes. Reviewed by: imp, markj Pull Request: https://github.com/freebsd/freebsd-src/pull/1350 --- usr.bin/w/w.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/usr.bin/w/w.c b/usr.bin/w/w.c index 8bce6d8427e6..47899d0b38e0 100644 --- a/usr.bin/w/w.c +++ b/usr.bin/w/w.c @@ -108,6 +108,8 @@ static struct entry { #define debugproc(p) *(&((struct kinfo_proc *)p)->ki_udata) +#define W_XO_VERSION "1" + #define W_DISPUSERSIZE 10 #define W_DISPLINESIZE 8 #define W_MAXHOSTSIZE 40 @@ -317,6 +319,7 @@ main(int argc, char *argv[]) if (fromwidth > W_MAXHOSTSIZE) fromwidth = W_MAXHOSTSIZE; + xo_set_version(W_XO_VERSION); xo_open_container("uptime-information"); if (header || wcmd == 0) {