From nobody Fri Sep 06 18:35:16 2024 X-Original-To: dev-commits-src-all@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 4X0lK10HF9z5VS22; Fri, 06 Sep 2024 18:35:17 +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 4X0lK04lwXz4VjG; Fri, 6 Sep 2024 18:35:16 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1725647716; 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=e46m44dI77VChtm/w4W8dxUYl05lagZY2zakz3r7dY8=; b=kxI88RTZtvmN0fO6TnnEAkAbZ3/7gimOBoNLryIoNh8g5QArSNir7z0qK1XosqSDwEXDVs /qk7PFoumq+gLHFx/dFQQ0mBPVBczGXsaSggKFNJ14IFamiWqUEujC0iCAIkgF9zidOaFr oxMn6lzgJrjWtuEP9KF8h6M4HeDZzTf1dnZrfe/ACjkvBZMc4WI3iEko1M20WNlIkdtrja XbOE3CF+50Sy3riU7oDu821m48rR9BACseUrsu3gwf4gxx6YvJV7T3momD0zKqiOcJgrqq R6nq77QdfG/qzIhYiG1mg1oAbKW8WR9IFUQxP5f5dcrMLMR15PyUo0KG4TnAwA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1725647716; a=rsa-sha256; cv=none; b=qjIx34AEV7Ll4wH0QidXcU5YjnvzkFKOgAa8JU7rKF4ehVNVFvlT4IbNqbceYE/xoEVYsZ SWxoF2vxSs4Epwp7FtnzIEr9codZS7LOBFn0jp9Nn76ZiLzlxmE5cigJGFEbjQQdyv+B2G U6KJVVR9GffDQ8FDwMWfDxxOIQ/w4F1sJUPbOKUEk96/LWiuy3fooUqEIys6LAtVJ9gThY q5i116xGYsvDBCz8Vvnlag5Fl1V4kpqoJmeTtCrKFfRa7FPn0SiF51OuTq7QDBsYeyRmJf uRAtSTB/9Z4gbCcLBR27ksyjVmcIZgz0V0Zvd77wBpHmcbcFtiBPjkRvHPRKsA== 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=1725647716; 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=e46m44dI77VChtm/w4W8dxUYl05lagZY2zakz3r7dY8=; b=m0i6ClJUsaHJtHgNLbGVbCbFjU9Y/wCasNNAMzU1OvrIfvdEvQS/w7JwxeQInebphpCjO8 Afp85t7HEqfeX/p19XghsGSjHNPlHlGxYUCcr6drTYSXY6xqY7Eie0KL/YPwhYBEJklguY qPVGQF7jgDwFEafBrVhZn3E1RcZFAyVHSVq39+DvCLs0antmq+4wTcwNBxCImIocS1wp4D u4aR7SXKfDqlXVE2oK/rpRTbIiRzsuI+6ezFgpum3opupc4XbLauxF3wd+QtcQenqcn/69 Z7Iz/dRnlq6NA6ae8HrgwSaPEmPpSSds/M1e+GFY1uQK5CENw0MKXPPG9AI5yQ== 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 4X0lK04N9yz137w; Fri, 6 Sep 2024 18:35:16 +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 486IZGq4010978; Fri, 6 Sep 2024 18:35:16 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 486IZG5i010975; Fri, 6 Sep 2024 18:35:16 GMT (envelope-from git) Date: Fri, 6 Sep 2024 18:35:16 GMT Message-Id: <202409061835.486IZG5i010975@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: 6e6da538988a - main - wc: Add version information to libxo output List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@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: 6e6da538988a5edb5cc7437f8a8647a350800724 Auto-Submitted: auto-generated The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=6e6da538988a5edb5cc7437f8a8647a350800724 commit 6e6da538988a5edb5cc7437f8a8647a350800724 Author: Bram AuthorDate: 2024-07-26 19:36:18 +0000 Commit: Warner Losh CommitDate: 2024-09-06 18:34:31 +0000 wc: 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/wc/wc.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/usr.bin/wc/wc.c b/usr.bin/wc/wc.c index 4e8a2d8a8b59..7b83412f3c42 100644 --- a/usr.bin/wc/wc.c +++ b/usr.bin/wc/wc.c @@ -51,6 +51,8 @@ #include #include +#define WC_XO_VERSION "1" + static const char *stdin_filename = "stdin"; static fileargs_t *fa; @@ -132,6 +134,8 @@ main(int argc, char *argv[]) doline = doword = dochar = true; stderr_handle = xo_create_to_file(stderr, XO_STYLE_TEXT, 0); + + xo_set_version(WC_XO_VERSION); xo_open_container("wc"); xo_open_list("file");