From nobody Thu Jan 23 07:26:26 2025 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 4Ydsv65j9fz5lmGB; Thu, 23 Jan 2025 07:26:26 +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 4Ydsv64jr9z3WTY; Thu, 23 Jan 2025 07:26:26 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1737617186; 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=G89szDB2sKXjcIWx4W6qbYKsZf9mj5JQeDR3YMmP6sQ=; b=vQANES/EZY3TZMFJxkxjTc3xMEl267vejT+s3yI/dYbgL5pV907qdyJtz8mfridxSFy57A e2NNWk7lvQf1l3t8A89ZUXDdGFahMqdqoX5afE+Pk9l4UUoXFkeCaeWtv+vRpUQwnlVkv7 B5MQ5ffv7MD5rsY8h+SsSIkTyiDsCqSa8PLOUuvoN0JVW81Q2ZBJ5I5MxokJW0HSO7cj69 gy4iSoaIzBQaTqMWZvxgQGSbxn3BfE81fyMtzKH9J5brhydY8Vy5goTn3dzPW8YaN6aixQ IGjqUE5p2fOxWmngV44KgMI1kvaRv4b2FfArh3UCzMkQoopzqe53HvmJ4X6H8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1737617186; 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=G89szDB2sKXjcIWx4W6qbYKsZf9mj5JQeDR3YMmP6sQ=; b=OADEfEahZtlUKsBsMGWf9dTaf3Smes72+yExm1QPX/T7vbmcCEQdkZAFvffiXcHUHCeTqW ddwrDVUnYnet7jdmb4qSLcT3sBDma25ZWN1OpvkJxLkxiPNFH7HUypdsaZUloEFvMeTws+ /ST5KMtlZMmMhSmOun6i1r6gudaChNAJEz4JDCkanuQjPzDMYtZOophjGR+BsOLDMDZaSG yF1M+cC0uDRWtPzUjRx1A4fWN1Qrp9tKH4WzCv3i59Tlta+Ie9GmLmegaakEOiXQecfrnJ c3nWwU0HrDh+s1Bi5UrC1ziQ8NzCniHqjgKqqBgWS4VRNorRTZHf/2qpBPz6Ow== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1737617186; a=rsa-sha256; cv=none; b=FtrpvTV+N7iFPYdJBUzU3R/8U3YZ7/l2OsOZNPdPayEy2n4OFN2Yc4g5Ccze8N0upHuM/E 9MG9Eex6n+4fjIvKQpM9mBnlHeq8T30y40UZM0xuobhdFXtbOcFmUylT5t2anKwCfvrNJy uc7KdQx+knKgRHwNFCZTSf0LlEYxx2GCVxHRAMJjelFxcZrYRQJgOpjubmRcoot6eIGCS5 /BT83uws37siCBVJna/ipoWMEKnlGbmDjYKSrcosnfgCmbP4xw6dxku2qJdEwW6I9+hFVL r/nQB/kDZyDfGLYU3XwlB9bP+geKh8/3oIQcOrh5AnOGZmmBnXDUgPaQi6RIMQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4Ydsv64HXCzCvY; Thu, 23 Jan 2025 07:26:26 +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 50N7QQ0P095176; Thu, 23 Jan 2025 07:26:26 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 50N7QQnw095172; Thu, 23 Jan 2025 07:26:26 GMT (envelope-from git) Date: Thu, 23 Jan 2025 07:26:26 GMT Message-Id: <202501230726.50N7QQnw095172@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Zhenlei Huang Subject: git: 0ee3e29e1d9e - main - sysctl: Fix usage() and SYNOPSIS section of man page 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: zlei X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 0ee3e29e1d9ee3ed22441c0d580d2d1e57a1d9e3 Auto-Submitted: auto-generated The branch main has been updated by zlei: URL: https://cgit.FreeBSD.org/src/commit/?id=0ee3e29e1d9ee3ed22441c0d580d2d1e57a1d9e3 commit 0ee3e29e1d9ee3ed22441c0d580d2d1e57a1d9e3 Author: Zhenlei Huang AuthorDate: 2025-01-23 07:24:15 +0000 Commit: Zhenlei Huang CommitDate: 2025-01-23 07:24:15 +0000 sysctl: Fix usage() and SYNOPSIS section of man page I forgot to update the usage() and SYNOPSIS section of man page when adding the two options -J and -V. While here, fix the options sort order in SYNOPSIS section. Fixes: 5ec83c660aca sysctl: Add flags to filter jail prison and vnet variables MFC after: 1 day --- sbin/sysctl/sysctl.8 | 6 +++--- sbin/sysctl/sysctl.c | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/sbin/sysctl/sysctl.8 b/sbin/sysctl/sysctl.8 index 792ebf6c4e9d..8cffb180ca67 100644 --- a/sbin/sysctl/sysctl.8 +++ b/sbin/sysctl/sysctl.8 @@ -28,7 +28,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd October 29, 2024 +.Dd January 23, 2025 .Dt SYSCTL 8 .Os .Sh NAME @@ -36,13 +36,13 @@ .Nd get or set kernel state .Sh SYNOPSIS .Nm -.Op Fl bdeFhilNnoTtqWx +.Op Fl bdeFhiJlNnoqTtVWx .Op Fl B Ar bufsize .Op Fl f Ar filename .Ar name Ns Op = Ns Ar value Ns Op , Ns Ar value .Ar ... .Nm -.Op Fl bdeFhlNnoTtqWx +.Op Fl bdeFhJlNnoqTtVWx .Op Fl B Ar bufsize .Fl a .Sh DESCRIPTION diff --git a/sbin/sysctl/sysctl.c b/sbin/sysctl/sysctl.c index 1a9cb0a13254..ef5d0508e5c3 100644 --- a/sbin/sysctl/sysctl.c +++ b/sbin/sysctl/sysctl.c @@ -121,8 +121,8 @@ usage(void) { (void)fprintf(stderr, "%s\n%s\n", - "usage: sysctl [-bdeFhilNnoqTtWx] [ -B ] [-f filename] name[=value] ...", - " sysctl [-bdeFhlNnoqTtWx] [ -B ] -a"); + "usage: sysctl [-bdeFhiJlNnoqTtVWx] [ -B ] [-f filename] name[=value] ...", + " sysctl [-bdeFhJlNnoqTtVWx] [ -B ] -a"); exit(1); }