summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorKlemens Nanni <kn@cvs.openbsd.org>2024-09-09 05:36:18 +0000
committerKlemens Nanni <kn@cvs.openbsd.org>2024-09-09 05:36:18 +0000
commitcfacc8324664c8d55ef35eb05b7c11ba106bd07e (patch)
treeeae06dd5e56187ece2c1f676b9c11304c2f83b31 /sbin
parentb0d7cdca9103f03621d8d0e84e534306b8b2a3f0 (diff)
Add triple-dots to synopsis as multiple name[=value] arguments may be given
OK jmc sobrado
Diffstat (limited to 'sbin')
-rw-r--r--sbin/sysctl/sysctl.86
-rw-r--r--sbin/sysctl/sysctl.c5
2 files changed, 5 insertions, 6 deletions
diff --git a/sbin/sysctl/sysctl.8 b/sbin/sysctl/sysctl.8
index c74a04d679f..a270862fdd8 100644
--- a/sbin/sysctl/sysctl.8
+++ b/sbin/sysctl/sysctl.8
@@ -1,4 +1,4 @@
-.\" $OpenBSD: sysctl.8,v 1.214 2018/02/16 07:27:07 jmc Exp $
+.\" $OpenBSD: sysctl.8,v 1.215 2024/09/09 05:36:17 kn Exp $
.\" $NetBSD: sysctl.8,v 1.4 1995/09/30 07:12:49 thorpej Exp $
.\"
.\" Copyright (c) 1993
@@ -30,7 +30,7 @@
.\"
.\" @(#)sysctl.8 8.2 (Berkeley) 5/9/95
.\"
-.Dd $Mdocdate: February 16 2018 $
+.Dd $Mdocdate: September 9 2024 $
.Dt SYSCTL 8
.Os
.Sh NAME
@@ -39,7 +39,7 @@
.Sh SYNOPSIS
.Nm sysctl
.Op Fl Aanq
-.Op Ar name Ns Op = Ns Ar value
+.Op Ar name Ns Oo = Ns Ar value Oc ...
.Sh DESCRIPTION
The
.Nm
diff --git a/sbin/sysctl/sysctl.c b/sbin/sysctl/sysctl.c
index fe087843300..fcbd1164f30 100644
--- a/sbin/sysctl/sysctl.c
+++ b/sbin/sysctl/sysctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sysctl.c,v 1.261 2024/05/09 08:35:40 florian Exp $ */
+/* $OpenBSD: sysctl.c,v 1.262 2024/09/09 05:36:17 kn Exp $ */
/* $NetBSD: sysctl.c,v 1.9 1995/09/30 07:12:50 thorpej Exp $ */
/*
@@ -2973,8 +2973,7 @@ findname(char *string, char *level, char **bufp, struct list *namelist)
void
usage(void)
{
-
(void)fprintf(stderr,
- "usage: sysctl [-Aanq] [name[=value]]\n");
+ "usage: sysctl [-Aanq] [name[=value] ...]\n");
exit(1);
}