sync with OpenBSD -current

This commit is contained in:
purplerain 2024-09-20 05:15:09 +00:00
parent de73a2419b
commit e9d0cc1e24
Signed by: purplerain
GPG key ID: F42C07F07E2E35B7
53 changed files with 145 additions and 129 deletions

View file

@ -1,4 +1,4 @@
/* $OpenBSD: rpc_prot.c,v 1.16 2020/08/30 23:15:31 mortimer Exp $ */ /* $OpenBSD: rpc_prot.c,v 1.17 2024/09/20 02:00:46 jsg Exp $ */
/* /*
* Copyright (c) 2010, Oracle America, Inc. * Copyright (c) 2010, Oracle America, Inc.
@ -234,7 +234,7 @@ _seterr_reply(struct rpc_msg *msg, struct rpc_err *error)
if (msg->acpted_rply.ar_stat == SUCCESS) { if (msg->acpted_rply.ar_stat == SUCCESS) {
error->re_status = RPC_SUCCESS; error->re_status = RPC_SUCCESS;
return; return;
}; }
accepted(msg->acpted_rply.ar_stat, error); accepted(msg->acpted_rply.ar_stat, error);
break; break;

View file

@ -1,4 +1,4 @@
/* $OpenBSD: malloc.c,v 1.296 2024/03/30 07:50:39 miod Exp $ */ /* $OpenBSD: malloc.c,v 1.297 2024/09/20 02:00:46 jsg Exp $ */
/* /*
* Copyright (c) 2008, 2010, 2011, 2016, 2023 Otto Moerbeek <otto@drijf.net> * Copyright (c) 2008, 2010, 2011, 2016, 2023 Otto Moerbeek <otto@drijf.net>
* Copyright (c) 2012 Matthew Dempsky <matthew@openbsd.org> * Copyright (c) 2012 Matthew Dempsky <matthew@openbsd.org>
@ -2350,7 +2350,7 @@ aligned_alloc(size_t alignment, size_t size)
if (((alignment - 1) & alignment) != 0 || alignment == 0) { if (((alignment - 1) & alignment) != 0 || alignment == 0) {
errno = EINVAL; errno = EINVAL;
return NULL; return NULL;
}; }
/* Per spec, size should be a multiple of alignment */ /* Per spec, size should be a multiple of alignment */
if ((size & (alignment - 1)) != 0) { if ((size & (alignment - 1)) != 0) {
errno = EINVAL; errno = EINVAL;

View file

@ -1,4 +1,4 @@
/* $OpenBSD: rthread_mutex.c,v 1.5 2019/02/13 13:09:32 mpi Exp $ */ /* $OpenBSD: rthread_mutex.c,v 1.6 2024/09/20 02:00:46 jsg Exp $ */
/* /*
* Copyright (c) 2017 Martin Pieuchot <mpi@openbsd.org> * Copyright (c) 2017 Martin Pieuchot <mpi@openbsd.org>
* Copyright (c) 2012 Philip Guenther <guenther@openbsd.org> * Copyright (c) 2012 Philip Guenther <guenther@openbsd.org>
@ -197,7 +197,7 @@ _rthread_mutex_timedlock(pthread_mutex_t *mutexp, int trywait,
* doubt set the state to CONTENDED. * doubt set the state to CONTENDED.
*/ */
lock = atomic_swap_uint(&mutex->lock, CONTENDED); lock = atomic_swap_uint(&mutex->lock, CONTENDED);
}; }
membar_enter_after_atomic(); membar_enter_after_atomic();
mutex->owner = self; mutex->owner = self;

View file

@ -1,4 +1,4 @@
/* $OpenBSD: fuse_private.h,v 1.22 2018/11/16 02:16:17 tedu Exp $ */ /* $OpenBSD: fuse_private.h,v 1.23 2024/09/20 02:00:46 jsg Exp $ */
/* /*
* Copyright (c) 2013 Sylvestre Gallon <ccna.syl@gmail.com> * Copyright (c) 2013 Sylvestre Gallon <ccna.syl@gmail.com>
* *
@ -134,13 +134,13 @@ char *build_realname(struct fuse *, ino_t);
#define tree_empty(t) SPLAY_EMPTY((t)) #define tree_empty(t) SPLAY_EMPTY((t))
int tree_check(struct tree *, uint64_t); int tree_check(struct tree *, uint64_t);
void *tree_set(struct tree *, uint64_t, void *); void *tree_set(struct tree *, uint64_t, void *);
void *tree_get(struct tree *, uint64_t);; void *tree_get(struct tree *, uint64_t);
void *tree_pop(struct tree *, uint64_t); void *tree_pop(struct tree *, uint64_t);
/* dict.c */ /* dict.c */
int dict_check(struct dict *, const char *); int dict_check(struct dict *, const char *);
void *dict_set(struct dict *, const char *, void *); void *dict_set(struct dict *, const char *, void *);
void *dict_get(struct dict *, const char *);; void *dict_get(struct dict *, const char *);
void *dict_pop(struct dict *, const char *); void *dict_pop(struct dict *, const char *);
#define FUSE_VERSION_PKG_INFO "2.8.0" #define FUSE_VERSION_PKG_INFO "2.8.0"

View file

@ -1,4 +1,4 @@
/* $OpenBSD: pkcs5_pbkdf2.c,v 1.11 2019/11/21 16:07:24 tedu Exp $ */ /* $OpenBSD: pkcs5_pbkdf2.c,v 1.12 2024/09/20 02:00:46 jsg Exp $ */
/*- /*-
* Copyright (c) 2008 Damien Bergamini <damien.bergamini@free.fr> * Copyright (c) 2008 Damien Bergamini <damien.bergamini@free.fr>
@ -111,7 +111,7 @@ pkcs5_pbkdf2(const char *pass, size_t pass_len, const uint8_t *salt,
memcpy(key, obuf, r); memcpy(key, obuf, r);
key += r; key += r;
key_len -= r; key_len -= r;
}; }
freezero(asalt, salt_len + 4); freezero(asalt, salt_len + 4);
explicit_bzero(d1, sizeof(d1)); explicit_bzero(d1, sizeof(d1));
explicit_bzero(d2, sizeof(d2)); explicit_bzero(d2, sizeof(d2));

View file

@ -1,4 +1,4 @@
/* $OpenBSD: parse.y,v 1.716 2024/07/14 19:51:08 sashan Exp $ */ /* $OpenBSD: parse.y,v 1.717 2024/09/20 02:00:46 jsg Exp $ */
/* /*
* Copyright (c) 2001 Markus Friedl. All rights reserved. * Copyright (c) 2001 Markus Friedl. All rights reserved.
@ -5609,7 +5609,7 @@ mv_tables(struct pfctl *pf, struct pfr_ktablehead *ktables,
char *path_cut; char *path_cut;
int sz; int sz;
struct pfr_uktable *ukt; struct pfr_uktable *ukt;
SLIST_HEAD(, pfr_uktable) ukt_list;; SLIST_HEAD(, pfr_uktable) ukt_list;
/* /*
* Here we need to rename anchor path from temporal names such as * Here we need to rename anchor path from temporal names such as

View file

@ -1,4 +1,4 @@
.\" $OpenBSD: sec.4,v 1.5 2024/09/01 05:20:25 jsg Exp $ .\" $OpenBSD: sec.4,v 1.6 2024/09/20 01:15:53 dlg Exp $
.\" .\"
.\" Copyright (c) 2023 David Gwynne <dlg@openbsd.org> .\" Copyright (c) 2023 David Gwynne <dlg@openbsd.org>
.\" .\"
@ -14,7 +14,7 @@
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\" .\"
.Dd $Mdocdate: September 1 2024 $ .Dd $Mdocdate: September 20 2024 $
.Dt SEC 4 .Dt SEC 4
.Os .Os
.Sh NAME .Sh NAME
@ -96,7 +96,7 @@ A
interface can be configured on the customer gateway: interface can be configured on the customer gateway:
.Bd -literal -offset indent .Bd -literal -offset indent
# ifconfig sec0 create # ifconfig sec0 create
# ifconfig sec0 tunnel 169.254.229.42/30 169.254.229.41 # ifconfig sec0 inet 169.254.229.42/30 169.254.229.41
# ifconfig sec0 up # ifconfig sec0 up
.Ed .Ed
.Pp .Pp

View file

@ -1,4 +1,4 @@
/* $OpenBSD: pmap.c,v 1.173 2024/09/03 17:19:53 bluhm Exp $ */ /* $OpenBSD: pmap.c,v 1.174 2024/09/20 02:00:46 jsg Exp $ */
/* $NetBSD: pmap.c,v 1.3 2003/05/08 18:13:13 thorpej Exp $ */ /* $NetBSD: pmap.c,v 1.3 2003/05/08 18:13:13 thorpej Exp $ */
/* /*
@ -693,7 +693,7 @@ pmap_bootstrap(paddr_t first_avail, paddr_t max_pa)
*/ */
protection_codes[PROT_NONE] = pg_nx; /* --- */ protection_codes[PROT_NONE] = pg_nx; /* --- */
protection_codes[PROT_EXEC] = pg_xo; ; /* --x */ protection_codes[PROT_EXEC] = pg_xo; /* --x */
protection_codes[PROT_READ] = PG_RO | pg_nx; /* -r- */ protection_codes[PROT_READ] = PG_RO | pg_nx; /* -r- */
protection_codes[PROT_READ | PROT_EXEC] = PG_RO; /* -rx */ protection_codes[PROT_READ | PROT_EXEC] = PG_RO; /* -rx */
protection_codes[PROT_WRITE] = PG_RW | pg_nx; /* w-- */ protection_codes[PROT_WRITE] = PG_RW | pg_nx; /* w-- */

View file

@ -1,4 +1,4 @@
/* $OpenBSD: disassem.c,v 1.5 2018/06/30 15:23:35 deraadt Exp $ */ /* $OpenBSD: disassem.c,v 1.6 2024/09/20 02:00:46 jsg Exp $ */
/* $NetBSD: disassem.c,v 1.14 2003/03/27 16:58:36 mycroft Exp $ */ /* $NetBSD: disassem.c,v 1.14 2003/03/27 16:58:36 mycroft Exp $ */
/* /*
@ -522,7 +522,7 @@ disasm(const disasm_interface_t *di, vaddr_t loc, int altfmt)
else else
di->di_printf(", "); di->di_printf(", ");
} }
}; }
di->di_printf("\n"); di->di_printf("\n");

View file

@ -1,4 +1,4 @@
/* $OpenBSD: dsdt.c,v 1.270 2024/08/06 17:38:56 kettenis Exp $ */ /* $OpenBSD: dsdt.c,v 1.271 2024/09/20 02:00:46 jsg Exp $ */
/* /*
* Copyright (c) 2005 Jordan Hargrave <jordan@openbsd.org> * Copyright (c) 2005 Jordan Hargrave <jordan@openbsd.org>
* *
@ -1731,7 +1731,7 @@ aml_val_to_string(const struct aml_value *val)
default: default:
snprintf(buffer, sizeof(buffer), snprintf(buffer, sizeof(buffer),
"Failed to convert type %d to string!", val->type); "Failed to convert type %d to string!", val->type);
}; }
return (buffer); return (buffer);
} }

View file

@ -1,4 +1,4 @@
/* $OpenBSD: adv.c,v 1.53 2022/04/16 19:19:58 naddy Exp $ */ /* $OpenBSD: adv.c,v 1.54 2024/09/20 02:00:46 jsg Exp $ */
/* $NetBSD: adv.c,v 1.6 1998/10/28 20:39:45 dante Exp $ */ /* $NetBSD: adv.c,v 1.6 1998/10/28 20:39:45 dante Exp $ */
/* /*
@ -468,7 +468,7 @@ adv_attach(ASC_SOFTC *sc)
*/ */
error = adv_alloc_ccbs(sc); error = adv_alloc_ccbs(sc);
if (error) if (error)
return; /* (error) */ ; return; /* (error) */
/* /*
* Create and initialize the Control Blocks. * Create and initialize the Control Blocks.

View file

@ -1,4 +1,4 @@
/* $OpenBSD: adw.c,v 1.70 2024/04/13 23:44:11 jsg Exp $ */ /* $OpenBSD: adw.c,v 1.71 2024/09/20 02:00:46 jsg Exp $ */
/* $NetBSD: adw.c,v 1.23 2000/05/27 18:24:50 dante Exp $ */ /* $NetBSD: adw.c,v 1.23 2000/05/27 18:24:50 dante Exp $ */
/* /*
@ -423,7 +423,7 @@ adw_attach(ADW_SOFTC *sc)
*/ */
error = adw_alloc_controls(sc); error = adw_alloc_controls(sc);
if (error) if (error)
return; /* (error) */ ; return; /* (error) */
/* /*
* Create and initialize the Control Blocks. * Create and initialize the Control Blocks.
@ -444,7 +444,7 @@ adw_attach(ADW_SOFTC *sc)
*/ */
error = adw_alloc_carriers(sc); error = adw_alloc_carriers(sc);
if (error) if (error)
return; /* (error) */ ; return; /* (error) */
/* /*
* Zero's the freeze_device status * Zero's the freeze_device status

View file

@ -1,4 +1,4 @@
/* $OpenBSD: ami.c,v 1.263 2024/06/26 01:40:49 jsg Exp $ */ /* $OpenBSD: ami.c,v 1.264 2024/09/20 02:00:46 jsg Exp $ */
/* /*
* Copyright (c) 2001 Michael Shalayeff * Copyright (c) 2001 Michael Shalayeff
@ -1772,7 +1772,7 @@ ami_mgmt(struct ami_softc *sc, u_int8_t opcode, u_int8_t par1, u_int8_t par2,
cmd->acc_io.aio_param = par2; cmd->acc_io.aio_param = par2;
cmd->acc_io.aio_pad[0] = par3; cmd->acc_io.aio_pad[0] = par3;
break; break;
}; }
cmd->acc_io.aio_data = am ? htole32(AMIMEM_DVA(am)) : 0; cmd->acc_io.aio_data = am ? htole32(AMIMEM_DVA(am)) : 0;

View file

@ -1,4 +1,4 @@
/* $OpenBSD: rt2860.c,v 1.103 2024/04/14 03:26:25 jsg Exp $ */ /* $OpenBSD: rt2860.c,v 1.104 2024/09/20 02:00:46 jsg Exp $ */
/*- /*-
* Copyright (c) 2007-2010 Damien Bergamini <damien.bergamini@free.fr> * Copyright (c) 2007-2010 Damien Bergamini <damien.bergamini@free.fr>
@ -3271,7 +3271,7 @@ rt2860_read_eeprom(struct rt2860_softc *sc)
sc->ext_5ghz_lna = (val >> 3) & 1; sc->ext_5ghz_lna = (val >> 3) & 1;
sc->ext_2ghz_lna = (val >> 2) & 1; sc->ext_2ghz_lna = (val >> 2) & 1;
/* check if RF supports automatic Tx access gain control */ /* check if RF supports automatic Tx access gain control */
sc->calib_2ghz = sc->calib_5ghz = 0; /* XXX (val >> 1) & 1 */; sc->calib_2ghz = sc->calib_5ghz = 0; /* XXX (val >> 1) & 1 */
/* check if we have a hardware radio switch */ /* check if we have a hardware radio switch */
sc->rfswitch = val & 1; sc->rfswitch = val & 1;
} }

View file

@ -1,4 +1,4 @@
/* $OpenBSD: rtwn.c,v 1.58 2024/06/26 01:40:49 jsg Exp $ */ /* $OpenBSD: rtwn.c,v 1.59 2024/09/20 02:00:46 jsg Exp $ */
/*- /*-
* Copyright (c) 2010 Damien Bergamini <damien.bergamini@free.fr> * Copyright (c) 2010 Damien Bergamini <damien.bergamini@free.fr>
@ -2536,7 +2536,7 @@ rtwn_set_chan(struct rtwn_softc *sc, struct ieee80211_channel *c,
rtwn_rf_write(sc, i, 0x87, 0x65); rtwn_rf_write(sc, i, 0x87, 0x65);
rtwn_rf_write(sc, i, 0x1c, 0); rtwn_rf_write(sc, i, 0x1c, 0);
rtwn_rf_write(sc, i, 0xdf, 0x0140); rtwn_rf_write(sc, i, 0xdf, 0x0140);
rtwn_rf_write(sc, i, 0x1b, 0x1c6c);; rtwn_rf_write(sc, i, 0x1b, 0x1c6c);
} }
} }
} }

View file

@ -1,4 +1,4 @@
/* $OpenBSD: ti.c,v 1.30 2023/11/10 15:51:20 bluhm Exp $ */ /* $OpenBSD: ti.c,v 1.31 2024/09/20 02:00:46 jsg Exp $ */
/* /*
* Copyright (c) 1997, 1998, 1999 * Copyright (c) 1997, 1998, 1999
@ -781,7 +781,7 @@ ti_init_rx_ring_jumbo(struct ti_softc *sc)
for (i = 0; i < TI_JUMBO_RX_RING_CNT; i++) { for (i = 0; i < TI_JUMBO_RX_RING_CNT; i++) {
if (ti_newbuf_jumbo(sc, i, NULL, 0) == ENOBUFS) if (ti_newbuf_jumbo(sc, i, NULL, 0) == ENOBUFS)
return (ENOBUFS); return (ENOBUFS);
}; }
TI_UPDATE_JUMBOPROD(sc, i - 1); TI_UPDATE_JUMBOPROD(sc, i - 1);
sc->ti_jumbo = i - 1; sc->ti_jumbo = i - 1;
@ -812,7 +812,7 @@ ti_init_rx_ring_mini(struct ti_softc *sc)
for (i = 0; i < TI_MSLOTS; i++) { for (i = 0; i < TI_MSLOTS; i++) {
if (ti_newbuf_mini(sc, i, NULL, 0) == ENOBUFS) if (ti_newbuf_mini(sc, i, NULL, 0) == ENOBUFS)
return (ENOBUFS); return (ENOBUFS);
}; }
TI_UPDATE_MINIPROD(sc, i - 1); TI_UPDATE_MINIPROD(sc, i - 1);
sc->ti_mini = i - 1; sc->ti_mini = i - 1;

View file

@ -1,4 +1,4 @@
/* $OpenBSD: auixp.c,v 1.54 2024/08/18 14:42:56 deraadt Exp $ */ /* $OpenBSD: auixp.c,v 1.56 2024/09/20 02:20:44 jsg Exp $ */
/* $NetBSD: auixp.c,v 1.9 2005/06/27 21:13:09 thorpej Exp $ */ /* $NetBSD: auixp.c,v 1.9 2005/06/27 21:13:09 thorpej Exp $ */
/* /*
@ -145,7 +145,7 @@ void auixp_dma_update(struct auixp_softc *, struct auixp_dma *);
void auixp_update_busbusy(struct auixp_softc *); void auixp_update_busbusy(struct auixp_softc *);
#ifdef DEBUG_AUIXP #ifdef DEBUG_AUIXP
#define DPRINTF(x) printf x; #define DPRINTF(x) printf x
#else #else
#define DPRINTF(x) #define DPRINTF(x)
#endif #endif
@ -370,7 +370,7 @@ auixp_malloc(void *hdl, int direction, size_t size, int pool, int flags)
} }
SLIST_INSERT_HEAD(&sc->sc_dma_list, dma, dma_chain); SLIST_INSERT_HEAD(&sc->sc_dma_list, dma, dma_chain);
DPRINTF(("auixp_malloc: returning kern %p, hw 0x%08x for %d bytes " DPRINTF(("auixp_malloc: returning kern %p, hw 0x%08x for %zu bytes "
"in %d segs\n", KERNADDR(dma), (u_int32_t) DMAADDR(dma), dma->size, "in %d segs\n", KERNADDR(dma), (u_int32_t) DMAADDR(dma), dma->size,
dma->nsegs) dma->nsegs)
); );
@ -1383,7 +1383,7 @@ auixp_reset_aclink(struct auixp_softc *sc)
/* have to wait at least 10 usec for it to initialise */ /* have to wait at least 10 usec for it to initialise */
DELAY(20); DELAY(20);
}; }
printf("%s: soft resetting aclink\n", sc->sc_dev.dv_xname); printf("%s: soft resetting aclink\n", sc->sc_dev.dv_xname);
@ -1427,15 +1427,15 @@ auixp_reset_aclink(struct auixp_softc *sc)
timeout--; timeout--;
if (timeout == 0) break; if (timeout == 0) break;
}; }
if (timeout == 0) { if (timeout == 0) {
printf("%s: giving up aclink reset\n", sc->sc_dev.dv_xname); printf("%s: giving up aclink reset\n", sc->sc_dev.dv_xname);
}; }
if (timeout != 10) { if (timeout != 10) {
printf("%s: aclink hardware reset successful\n", printf("%s: aclink hardware reset successful\n",
sc->sc_dev.dv_xname); sc->sc_dev.dv_xname);
}; }
/* assert reset and sync for safety */ /* assert reset and sync for safety */
value = bus_space_read_4(iot, ioh, ATI_REG_CMD); value = bus_space_read_4(iot, ioh, ATI_REG_CMD);

View file

@ -796,7 +796,7 @@ void DCP_FW_NAME(iomfb_poweron)(struct apple_dcp *dcp)
struct dcp_wait_cookie *cookie; struct dcp_wait_cookie *cookie;
int ret; int ret;
u32 handle; u32 handle;
dev_err(dcp->dev, "dcp_poweron() starting\n"); dev_info(dcp->dev, "dcp_poweron() starting\n");
cookie = kzalloc(sizeof(*cookie), GFP_KERNEL); cookie = kzalloc(sizeof(*cookie), GFP_KERNEL);
if (!cookie) if (!cookie)
@ -938,7 +938,7 @@ void DCP_FW_NAME(iomfb_poweroff)(struct apple_dcp *dcp)
kref_put(&poff_cookie->refcount, release_wait_cookie); kref_put(&poff_cookie->refcount, release_wait_cookie);
dev_err(dcp->dev, "dcp_poweroff() done\n"); dev_info(dcp->dev, "dcp_poweroff() done\n");
} }
static void last_client_closed_sleep(struct apple_dcp *dcp, void *out, void *cookie) static void last_client_closed_sleep(struct apple_dcp *dcp, void *out, void *cookie)
@ -983,7 +983,7 @@ void DCP_FW_NAME(iomfb_sleep)(struct apple_dcp *dcp)
dev_warn(dcp->dev, "setDCPPower(0) timeout %u ms\n", 1000); dev_warn(dcp->dev, "setDCPPower(0) timeout %u ms\n", 1000);
kref_put(&cookie->refcount, release_wait_cookie); kref_put(&cookie->refcount, release_wait_cookie);
dev_err(dcp->dev, "dcp_sleep() done\n"); dev_info(dcp->dev, "dcp_sleep() done\n");
} }
static void dcpep_cb_hotplug(struct apple_dcp *dcp, u64 *connected) static void dcpep_cb_hotplug(struct apple_dcp *dcp, u64 *connected)

View file

@ -2165,7 +2165,6 @@ static int initialize_hdcp_port_data(struct intel_connector *connector,
struct intel_digital_port *dig_port, struct intel_digital_port *dig_port,
const struct intel_hdcp_shim *shim) const struct intel_hdcp_shim *shim)
{ {
STUB();
return -ENOSYS; return -ENOSYS;
#ifdef notyet #ifdef notyet
struct drm_i915_private *i915 = to_i915(connector->base.dev); struct drm_i915_private *i915 = to_i915(connector->base.dev);
@ -2225,7 +2224,6 @@ void intel_hdcp_component_init(struct drm_i915_private *i915)
if (!is_hdcp2_supported(i915)) if (!is_hdcp2_supported(i915))
return; return;
STUB();
#ifdef notyet #ifdef notyet
mutex_lock(&i915->display.hdcp.hdcp_mutex); mutex_lock(&i915->display.hdcp.hdcp_mutex);
drm_WARN_ON(&i915->drm, i915->display.hdcp.comp_added); drm_WARN_ON(&i915->drm, i915->display.hdcp.comp_added);

View file

@ -2274,7 +2274,7 @@ inteldrm_attach(struct device *parent, struct device *self, void *aux)
& (PCI_COMMAND_IO_ENABLE | PCI_COMMAND_MEM_ENABLE)) & (PCI_COMMAND_IO_ENABLE | PCI_COMMAND_MEM_ENABLE))
== (PCI_COMMAND_IO_ENABLE | PCI_COMMAND_MEM_ENABLE)) { == (PCI_COMMAND_IO_ENABLE | PCI_COMMAND_MEM_ENABLE)) {
dev_priv->primary = 1; dev_priv->primary = 1;
dev_priv->console = vga_is_console(pa->pa_iot, -1);; dev_priv->console = vga_is_console(pa->pa_iot, -1);
vga_console_attached = 1; vga_console_attached = 1;
} }

View file

@ -1,4 +1,4 @@
/* $OpenBSD: if_ngbe.c,v 1.5 2024/05/24 06:02:56 jsg Exp $ */ /* $OpenBSD: if_ngbe.c,v 1.6 2024/09/20 02:15:53 jsg Exp $ */
/* /*
* Copyright (c) 2015-2017 Beijing WangXun Technology Co., Ltd. * Copyright (c) 2015-2017 Beijing WangXun Technology Co., Ltd.
@ -1707,7 +1707,7 @@ ngbe_initialize_transmit_unit(struct ngbe_softc *sc)
struct tx_ring *txr; struct tx_ring *txr;
uint64_t tdba; uint64_t tdba;
uint32_t txdctl; uint32_t txdctl;
int i, wait_loop = NGBE_MAX_RX_DESC_POLL;; int i, wait_loop = NGBE_MAX_RX_DESC_POLL;
int error = 0; int error = 0;
/* TDM_CTL.TE must be before Tx queues are enabled */ /* TDM_CTL.TE must be before Tx queues are enabled */

View file

@ -1,4 +1,4 @@
/* $OpenBSD: maestro.c,v 1.55 2024/09/04 07:54:52 mglocker Exp $ */ /* $OpenBSD: maestro.c,v 1.56 2024/09/20 02:00:46 jsg Exp $ */
/* $FreeBSD: /c/ncvs/src/sys/dev/sound/pci/maestro.c,v 1.3 2000/11/21 12:22:11 julian Exp $ */ /* $FreeBSD: /c/ncvs/src/sys/dev/sound/pci/maestro.c,v 1.3 2000/11/21 12:22:11 julian Exp $ */
/* /*
* FreeBSD's ESS Agogo/Maestro driver * FreeBSD's ESS Agogo/Maestro driver
@ -627,7 +627,7 @@ maestro_attach(struct device *parent, struct device *self, void *aux)
0, &sc->iot, &sc->ioh, NULL, NULL, 0)) != 0) { 0, &sc->iot, &sc->ioh, NULL, NULL, 0)) != 0) {
printf(", can't map i/o space\n"); printf(", can't map i/o space\n");
goto bad; goto bad;
}; }
/* Allocate fixed DMA segment :-( */ /* Allocate fixed DMA segment :-( */
sc->dmasize = MAESTRO_BUFSIZ * 16; sc->dmasize = MAESTRO_BUFSIZ * 16;

View file

@ -1,4 +1,4 @@
/* $OpenBSD: virtio_pci.c,v 1.42 2024/09/02 08:26:26 sf Exp $ */ /* $OpenBSD: virtio_pci.c,v 1.43 2024/09/19 06:19:05 sf Exp $ */
/* $NetBSD: virtio.c,v 1.3 2011/11/02 23:05:52 njoly Exp $ */ /* $NetBSD: virtio.c,v 1.3 2011/11/02 23:05:52 njoly Exp $ */
/* /*
@ -284,7 +284,7 @@ virtio_pci_setup_intrs(struct virtio_softc *vsc)
if (sc->sc_irq_type == IRQ_NO_MSIX) if (sc->sc_irq_type == IRQ_NO_MSIX)
return; return;
for (i = 0; i <= vsc->sc_nvqs; i++) { for (i = 0; i < vsc->sc_nvqs; i++) {
unsigned vec = vsc->sc_vqs[i].vq_intr_vec; unsigned vec = vsc->sc_vqs[i].vq_intr_vec;
virtio_pci_set_msix_queue_vector(sc, i, vec); virtio_pci_set_msix_queue_vector(sc, i, vec);
} }

View file

@ -1,4 +1,4 @@
/* $OpenBSD: vmwpvs.c,v 1.29 2024/09/04 07:54:52 mglocker Exp $ */ /* $OpenBSD: vmwpvs.c,v 1.30 2024/09/20 02:00:46 jsg Exp $ */
/* /*
* Copyright (c) 2013 David Gwynne <dlg@openbsd.org> * Copyright (c) 2013 David Gwynne <dlg@openbsd.org>
@ -799,7 +799,7 @@ vmwpvs_msg_task(void *xsc)
printf("%s: error probing target %d lun %d\n", printf("%s: error probing target %d lun %d\n",
DEVNAME(sc), letoh32(dvmsg->target), DEVNAME(sc), letoh32(dvmsg->target),
dvmsg->lun[1]); dvmsg->lun[1]);
}; }
break; break;
case VMWPVS_MSG_T_REMOVED: case VMWPVS_MSG_T_REMOVED:
@ -817,7 +817,7 @@ vmwpvs_msg_task(void *xsc)
printf("%s: error detaching target %d lun %d\n", printf("%s: error detaching target %d lun %d\n",
DEVNAME(sc), letoh32(dvmsg->target), DEVNAME(sc), letoh32(dvmsg->target),
dvmsg->lun[1]); dvmsg->lun[1]);
}; }
break; break;
default: default:

View file

@ -1,4 +1,4 @@
/* $OpenBSD: if_vio.c,v 1.55 2024/09/17 09:00:14 sf Exp $ */ /* $OpenBSD: if_vio.c,v 1.56 2024/09/19 06:23:38 sf Exp $ */
/* /*
* Copyright (c) 2012 Stefan Fritsch, Alexander Fiveg. * Copyright (c) 2012 Stefan Fritsch, Alexander Fiveg.
@ -269,7 +269,6 @@ struct vio_softc {
#define VIO_HAVE_MRG_RXBUF(sc) \ #define VIO_HAVE_MRG_RXBUF(sc) \
((sc)->sc_hdr_size == sizeof(struct virtio_net_hdr)) ((sc)->sc_hdr_size == sizeof(struct virtio_net_hdr))
#define VIRTIO_NET_TX_MAXNSEGS 16 /* for larger chains, defrag */
#define VIRTIO_NET_CTRL_MAC_MC_ENTRIES 64 /* for more entries, use ALLMULTI */ #define VIRTIO_NET_CTRL_MAC_MC_ENTRIES 64 /* for more entries, use ALLMULTI */
#define VIRTIO_NET_CTRL_MAC_UC_ENTRIES 1 /* one entry for own unicast addr */ #define VIRTIO_NET_CTRL_MAC_UC_ENTRIES 1 /* one entry for own unicast addr */
#define VIRTIO_NET_CTRL_TIMEOUT (5*1000*1000*1000ULL) /* 5 seconds */ #define VIRTIO_NET_CTRL_TIMEOUT (5*1000*1000*1000ULL) /* 5 seconds */
@ -321,7 +320,7 @@ int vio_ctrl_start(struct vio_softc *, uint8_t, uint8_t, int, int *);
int vio_ctrl_submit(struct vio_softc *, int); int vio_ctrl_submit(struct vio_softc *, int);
void vio_ctrl_finish(struct vio_softc *); void vio_ctrl_finish(struct vio_softc *);
void vio_ctrl_wakeup(struct vio_softc *, enum vio_ctrl_state); void vio_ctrl_wakeup(struct vio_softc *, enum vio_ctrl_state);
int vio_alloc_mem(struct vio_softc *); int vio_alloc_mem(struct vio_softc *, int);
int vio_alloc_dmamem(struct vio_softc *); int vio_alloc_dmamem(struct vio_softc *);
void vio_free_dmamem(struct vio_softc *); void vio_free_dmamem(struct vio_softc *);
@ -416,7 +415,7 @@ vio_free_dmamem(struct vio_softc *sc)
* viq_txmbufs[slot]: mbuf pointer array for sent frames * viq_txmbufs[slot]: mbuf pointer array for sent frames
*/ */
int int
vio_alloc_mem(struct vio_softc *sc) vio_alloc_mem(struct vio_softc *sc, int tx_max_segments)
{ {
struct virtio_softc *vsc = sc->sc_virtio; struct virtio_softc *vsc = sc->sc_virtio;
struct ifnet *ifp = &sc->sc_ac.ac_if; struct ifnet *ifp = &sc->sc_ac.ac_if;
@ -503,7 +502,7 @@ vio_alloc_mem(struct vio_softc *sc)
for (i = 0; i < txqsize; i++) { for (i = 0; i < txqsize; i++) {
r = bus_dmamap_create(vsc->sc_dmat, txsize, r = bus_dmamap_create(vsc->sc_dmat, txsize,
VIRTIO_NET_TX_MAXNSEGS, txsize, 0, tx_max_segments, txsize, 0,
BUS_DMA_NOWAIT|BUS_DMA_ALLOCNOW, BUS_DMA_NOWAIT|BUS_DMA_ALLOCNOW,
&vioq->viq_txdmamaps[i]); &vioq->viq_txdmamaps[i]);
if (r != 0) if (r != 0)
@ -586,7 +585,7 @@ vio_attach(struct device *parent, struct device *self, void *aux)
{ {
struct vio_softc *sc = (struct vio_softc *)self; struct vio_softc *sc = (struct vio_softc *)self;
struct virtio_softc *vsc = (struct virtio_softc *)parent; struct virtio_softc *vsc = (struct virtio_softc *)parent;
int i; int i, tx_max_segments;
struct ifnet *ifp = &sc->sc_ac.ac_if; struct ifnet *ifp = &sc->sc_ac.ac_if;
if (vsc->sc_child != NULL) { if (vsc->sc_child != NULL) {
@ -650,6 +649,17 @@ vio_attach(struct device *parent, struct device *self, void *aux)
else else
ifp->if_hardmtu = MCLBYTES - sc->sc_hdr_size - ETHER_HDR_LEN; ifp->if_hardmtu = MCLBYTES - sc->sc_hdr_size - ETHER_HDR_LEN;
/* defrag for longer mbuf chains */
tx_max_segments = 16;
if (virtio_has_feature(vsc, VIRTIO_NET_F_HOST_TSO4) ||
virtio_has_feature(vsc, VIRTIO_NET_F_HOST_TSO6)) {
/*
* With TSO, we may get 64K packets and want to be able to
* send longer chains without defragmenting
*/
tx_max_segments = 32;
}
for (i = 0; i < sc->sc_nqueues; i++) { for (i = 0; i < sc->sc_nqueues; i++) {
int vqidx = 2 * i; int vqidx = 2 * i;
struct vio_queue *vioq = &sc->sc_q[i]; struct vio_queue *vioq = &sc->sc_q[i];
@ -664,7 +674,7 @@ vio_attach(struct device *parent, struct device *self, void *aux)
vqidx++; vqidx++;
vioq->viq_txvq = &vsc->sc_vqs[vqidx]; vioq->viq_txvq = &vsc->sc_vqs[vqidx];
if (virtio_alloc_vq(vsc, vioq->viq_txvq, vqidx, if (virtio_alloc_vq(vsc, vioq->viq_txvq, vqidx,
VIRTIO_NET_TX_MAXNSEGS + 1, "tx") != 0) { tx_max_segments + 1, "tx") != 0) {
goto err; goto err;
} }
vioq->viq_txvq->vq_done = vio_tx_intr; vioq->viq_txvq->vq_done = vio_tx_intr;
@ -684,7 +694,7 @@ vio_attach(struct device *parent, struct device *self, void *aux)
virtio_start_vq_intr(vsc, sc->sc_ctl_vq); virtio_start_vq_intr(vsc, sc->sc_ctl_vq);
} }
if (vio_alloc_mem(sc) < 0) if (vio_alloc_mem(sc, tx_max_segments) < 0)
goto err; goto err;
strlcpy(ifp->if_xname, self->dv_xname, IFNAMSIZ); strlcpy(ifp->if_xname, self->dv_xname, IFNAMSIZ);

View file

@ -1,4 +1,4 @@
/* $OpenBSD: ubsa.c,v 1.70 2024/05/23 03:21:09 jsg Exp $ */ /* $OpenBSD: ubsa.c,v 1.71 2024/09/20 02:00:46 jsg Exp $ */
/* $NetBSD: ubsa.c,v 1.5 2002/11/25 00:51:33 fvdl Exp $ */ /* $NetBSD: ubsa.c,v 1.5 2002/11/25 00:51:33 fvdl Exp $ */
/*- /*-
* Copyright (c) 2002, Alexander Kabaev <kan.FreeBSD.org>. * Copyright (c) 2002, Alexander Kabaev <kan.FreeBSD.org>.
@ -478,7 +478,7 @@ ubsa_baudrate(struct ubsa_softc *sc, speed_t speed)
sc->sc_dev.dv_xname)); sc->sc_dev.dv_xname));
value = B230400 / B9600; value = B230400 / B9600;
break; break;
}; }
if (speed == B0) { if (speed == B0) {
ubsa_flow(sc, 0, 0); ubsa_flow(sc, 0, 0);

View file

@ -1,4 +1,4 @@
/* $OpenBSD: udf_vnops.c,v 1.73 2024/09/12 09:04:51 claudio Exp $ */ /* $OpenBSD: udf_vnops.c,v 1.74 2024/09/20 02:00:46 jsg Exp $ */
/* /*
* Copyright (c) 2001, 2002 Scott Long <scottl@freebsd.org> * Copyright (c) 2001, 2002 Scott Long <scottl@freebsd.org>
@ -471,7 +471,7 @@ udf_read(void *v)
} }
if (error) if (error)
break; break;
}; }
return (error); return (error);
} }

View file

@ -1,4 +1,4 @@
/* $OpenBSD: pkcs5_pbkdf2.c,v 1.1 2016/09/10 16:38:16 jsing Exp $ */ /* $OpenBSD: pkcs5_pbkdf2.c,v 1.2 2024/09/20 02:00:46 jsg Exp $ */
/*- /*-
* Copyright (c) 2008 Damien Bergamini <damien.bergamini@free.fr> * Copyright (c) 2008 Damien Bergamini <damien.bergamini@free.fr>
@ -65,7 +65,7 @@ pkcs5_pbkdf2(const char *pass, size_t pass_len, const char *salt,
memcpy(key, obuf, r); memcpy(key, obuf, r);
key += r; key += r;
key_len -= r; key_len -= r;
}; }
explicit_bzero(asalt, salt_len + 4); explicit_bzero(asalt, salt_len + 4);
free(asalt, salt_len + 4); free(asalt, salt_len + 4);
explicit_bzero(d1, sizeof(d1)); explicit_bzero(d1, sizeof(d1));

View file

@ -1,4 +1,4 @@
/* $OpenBSD: if_pppx.c,v 1.130 2024/09/09 07:37:47 mvs Exp $ */ /* $OpenBSD: if_pppx.c,v 1.131 2024/09/20 02:00:46 jsg Exp $ */
/* /*
* Copyright (c) 2010 Claudio Jeker <claudio@openbsd.org> * Copyright (c) 2010 Claudio Jeker <claudio@openbsd.org>
@ -1069,7 +1069,7 @@ pppacopen(dev_t dev, int flags, int mode, struct proc *p)
ifp->if_softc = sc; ifp->if_softc = sc;
ifp->if_type = IFT_L3IPVLAN; ifp->if_type = IFT_L3IPVLAN;
ifp->if_hdrlen = sizeof(uint32_t); /* for BPF */; ifp->if_hdrlen = sizeof(uint32_t); /* for BPF */
ifp->if_mtu = MAXMCLBYTES - sizeof(uint32_t); ifp->if_mtu = MAXMCLBYTES - sizeof(uint32_t);
ifp->if_flags = IFF_SIMPLEX | IFF_BROADCAST; ifp->if_flags = IFF_SIMPLEX | IFF_BROADCAST;
ifp->if_xflags = IFXF_CLONED | IFXF_MPSAFE; ifp->if_xflags = IFXF_CLONED | IFXF_MPSAFE;

View file

@ -1,4 +1,4 @@
/* $OpenBSD: route.c,v 1.436 2024/03/31 15:53:12 bluhm Exp $ */ /* $OpenBSD: route.c,v 1.437 2024/09/20 02:00:46 jsg Exp $ */
/* $NetBSD: route.c,v 1.14 1996/02/13 22:00:46 christos Exp $ */ /* $NetBSD: route.c,v 1.14 1996/02/13 22:00:46 christos Exp $ */
/* /*
@ -1128,7 +1128,7 @@ rt_setgate(struct rtentry *rt, const struct sockaddr *gate, u_int rtableid)
if (rt->rt_gateway == gate) { if (rt->rt_gateway == gate) {
/* nop */ /* nop */
return (0); return (0);
}; }
sa = malloc(glen, M_RTABLE, M_NOWAIT | M_ZERO); sa = malloc(glen, M_RTABLE, M_NOWAIT | M_ZERO);
if (sa == NULL) if (sa == NULL)

View file

@ -1,4 +1,4 @@
/* $OpenBSD: ext2fs_lookup.c,v 1.47 2024/09/12 09:04:51 claudio Exp $ */ /* $OpenBSD: ext2fs_lookup.c,v 1.48 2024/09/20 02:00:46 jsg Exp $ */
/* $NetBSD: ext2fs_lookup.c,v 1.16 2000/08/03 20:29:26 thorpej Exp $ */ /* $NetBSD: ext2fs_lookup.c,v 1.16 2000/08/03 20:29:26 thorpej Exp $ */
/* /*
@ -776,7 +776,7 @@ ext2fs_direnter(struct inode *ip, struct vnode *dvp,
newdir.e2d_type = inot2ext2dt(IFTODT(ip->i_e2fs_mode)); newdir.e2d_type = inot2ext2dt(IFTODT(ip->i_e2fs_mode));
} else { } else {
newdir.e2d_type = 0; newdir.e2d_type = 0;
}; }
memcpy(newdir.e2d_name, cnp->cn_nameptr, (unsigned)cnp->cn_namelen + 1); memcpy(newdir.e2d_name, cnp->cn_nameptr, (unsigned)cnp->cn_namelen + 1);
newentrysize = EXT2FS_DIRSIZ(cnp->cn_namelen); newentrysize = EXT2FS_DIRSIZ(cnp->cn_namelen);
if (dp->i_count == 0) { if (dp->i_count == 0) {

View file

@ -251,7 +251,7 @@ isc_regex_validate(const char *c) {
range_start = *c & 0xff; range_start = *c & 0xff;
++c; ++c;
break; break;
}; }
break; break;
case parse_ce: case parse_ce:
switch (*c) { switch (*c) {

View file

@ -1,4 +1,4 @@
/* $OpenBSD: mdoc_validate.c,v 1.306 2022/06/08 16:29:12 schwarze Exp $ */ /* $OpenBSD: mdoc_validate.c,v 1.307 2024/09/20 02:00:46 jsg Exp $ */
/* /*
* Copyright (c) 2010-2021 Ingo Schwarze <schwarze@openbsd.org> * Copyright (c) 2010-2021 Ingo Schwarze <schwarze@openbsd.org>
* Copyright (c) 2008-2012 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2008-2012 Kristaps Dzonsons <kristaps@bsd.lv>
@ -3042,6 +3042,6 @@ macro2len(enum roff_tok macro)
return 10; return 10;
default: default:
break; break;
}; }
return 0; return 0;
} }

View file

@ -1,4 +1,4 @@
/* $OpenBSD: interpreter.c,v 1.35 2023/04/17 10:11:30 op Exp $ */ /* $OpenBSD: interpreter.c,v 1.36 2024/09/20 02:00:46 jsg Exp $ */
/* /*
* This file is in the public domain. * This file is in the public domain.
* *
@ -395,7 +395,7 @@ parsexp(char *begp, const char *par1, const char *par2, int blkid, int expctr,
{ {
struct expentry *e1 = NULL; struct expentry *e1 = NULL;
PF funcp; PF funcp;
char *cmdp, *fendp, *valp, *fname, *funb = NULL;; char *cmdp, *fendp, *valp, *fname, *funb = NULL;
int numparams, ret; int numparams, ret;
cmdp = begp; cmdp = begp;

View file

@ -1,4 +1,4 @@
/* $OpenBSD: bwstring.c,v 1.9 2019/05/15 09:33:34 schwarze Exp $ */ /* $OpenBSD: bwstring.c,v 1.10 2024/09/20 02:00:46 jsg Exp $ */
/*- /*-
* Copyright (C) 2009 Gabor Kovesdan <gabor@FreeBSD.org> * Copyright (C) 2009 Gabor Kovesdan <gabor@FreeBSD.org>
@ -293,7 +293,7 @@ bwscsbdup(const unsigned char *str, size_t len)
/* NOTREACHED */ /* NOTREACHED */
err(2, "mbrtowc error"); err(2, "mbrtowc error");
cptr += charlen; cptr += charlen;
}; }
} }
ret->len = chars; ret->len = chars;

View file

@ -1,4 +1,4 @@
/* $OpenBSD: coll.c,v 1.12 2019/05/13 17:00:12 schwarze Exp $ */ /* $OpenBSD: coll.c,v 1.13 2024/09/20 02:00:46 jsg Exp $ */
/*- /*-
* Copyright (C) 2009 Gabor Kovesdan <gabor@FreeBSD.org> * Copyright (C) 2009 Gabor Kovesdan <gabor@FreeBSD.org>
@ -672,7 +672,7 @@ setsuffix(wchar_t c, unsigned char *si)
break; break;
default: default:
*si = 0; *si = 0;
}; }
} }
/* /*

View file

@ -1,4 +1,4 @@
/* $OpenBSD: file.c,v 1.23 2019/12/30 16:07:13 millert Exp $ */ /* $OpenBSD: file.c,v 1.24 2024/09/20 02:00:46 jsg Exp $ */
/*- /*-
* Copyright (C) 2009 Gabor Kovesdan <gabor@FreeBSD.org> * Copyright (C) 2009 Gabor Kovesdan <gabor@FreeBSD.org>
@ -1102,7 +1102,7 @@ sort_list_to_file(struct sort_list *list, const char *outfile)
default: default:
errx(2, "The chosen sort method cannot be used with " errx(2, "The chosen sort method cannot be used with "
"stable and/or unique sort"); "stable and/or unique sort");
}; }
} }
if (sort_opts_vals.sort_method == SORT_DEFAULT) if (sort_opts_vals.sort_method == SORT_DEFAULT)

View file

@ -1,4 +1,4 @@
/* $OpenBSD: ssh-keyscan.c,v 1.161 2024/09/09 02:39:57 djm Exp $ */ /* $OpenBSD: ssh-keyscan.c,v 1.162 2024/09/20 02:00:46 jsg Exp $ */
/* /*
* Copyright 1995, 1996 by David Mazieres <dm@lcs.mit.edu>. * Copyright 1995, 1996 by David Mazieres <dm@lcs.mit.edu>.
* *
@ -624,7 +624,7 @@ do_host(char *host)
if (addr_cmp(&addr, &end_addr) == 0) if (addr_cmp(&addr, &end_addr) == 0)
break; break;
addr_increment(&addr); addr_increment(&addr);
}; }
} }
} }

View file

@ -1,4 +1,4 @@
/* $OpenBSD: ssh-pkcs11.c,v 1.63 2024/08/15 00:51:51 djm Exp $ */ /* $OpenBSD: ssh-pkcs11.c,v 1.64 2024/09/20 02:00:46 jsg Exp $ */
/* /*
* Copyright (c) 2010 Markus Friedl. All rights reserved. * Copyright (c) 2010 Markus Friedl. All rights reserved.
* Copyright (c) 2014 Pedro Martelletto. All rights reserved. * Copyright (c) 2014 Pedro Martelletto. All rights reserved.
@ -1171,7 +1171,7 @@ pkcs11_fetch_certs(struct pkcs11_provider *p, CK_ULONG slotidx,
} }
note_key(p, slotidx, __func__, key); note_key(p, slotidx, __func__, key);
if (pkcs11_key_included(keysp, nkeys, key)) { if (pkcs11_key_included(keysp, nkeys, key)) {
debug2_f("key already included");; debug2_f("key already included");
sshkey_free(key); sshkey_free(key);
} else { } else {
/* expand key array and add key */ /* expand key array and add key */
@ -1283,7 +1283,7 @@ pkcs11_fetch_keys(struct pkcs11_provider *p, CK_ULONG slotidx,
} }
note_key(p, slotidx, __func__, key); note_key(p, slotidx, __func__, key);
if (pkcs11_key_included(keysp, nkeys, key)) { if (pkcs11_key_included(keysp, nkeys, key)) {
debug2_f("key already included");; debug2_f("key already included");
sshkey_free(key); sshkey_free(key);
} else { } else {
/* expand key array and add key */ /* expand key array and add key */

View file

@ -1,3 +1,3 @@
/* $OpenBSD: version.h,v 1.102 2024/07/01 04:31:59 djm Exp $ */ /* $OpenBSD: version.h,v 1.103 2024/09/19 22:17:44 djm Exp $ */
#define SSH_VERSION "OpenSSH_9.8" #define SSH_VERSION "OpenSSH_9.9"

View file

@ -1,4 +1,4 @@
/* $OpenBSD: if.c,v 1.27 2021/11/29 06:39:23 deraadt Exp $ */ /* $OpenBSD: if.c,v 1.28 2024/09/20 02:00:46 jsg Exp $ */
/* /*
* Copyright (c) 2004 Markus Friedl <markus@openbsd.org> * Copyright (c) 2004 Markus Friedl <markus@openbsd.org>
* *
@ -488,7 +488,7 @@ if_keyboard_callback(int ch)
break; break;
default: default:
return keyboard_callback(ch); return keyboard_callback(ch);
}; }
return 1; return 1;
} }

View file

@ -1,4 +1,4 @@
/* $OpenBSD: main.c,v 1.77 2022/12/04 18:01:57 cheloha Exp $ */ /* $OpenBSD: main.c,v 1.78 2024/09/20 02:00:46 jsg Exp $ */
/* /*
* Copyright (c) 2001, 2007 Can Erkin Acar * Copyright (c) 2001, 2007 Can Erkin Acar
* Copyright (c) 2001 Daniel Hartmeier * Copyright (c) 2001 Daniel Hartmeier
@ -376,7 +376,7 @@ keyboard_callback(int ch)
break; break;
default: default:
return 0; return 0;
}; }
return 1; return 1;
} }

View file

@ -1,4 +1,4 @@
/* $OpenBSD: netstat.c,v 1.46 2023/10/10 09:27:03 tb Exp $ */ /* $OpenBSD: netstat.c,v 1.47 2024/09/20 02:00:46 jsg Exp $ */
/* $NetBSD: netstat.c,v 1.3 1995/06/18 23:53:07 cgd Exp $ */ /* $NetBSD: netstat.c,v 1.3 1995/06/18 23:53:07 cgd Exp $ */
/*- /*-
@ -488,7 +488,7 @@ ns_keyboard_callback(int ch)
break; break;
default: default:
return keyboard_callback(ch); return keyboard_callback(ch);
}; }
return 1; return 1;
} }

View file

@ -1,4 +1,4 @@
/* $OpenBSD: parse.y,v 1.467 2024/08/22 08:17:54 florian Exp $ */ /* $OpenBSD: parse.y,v 1.468 2024/09/20 02:00:46 jsg Exp $ */
/* /*
* Copyright (c) 2002, 2003, 2004 Henning Brauer <henning@openbsd.org> * Copyright (c) 2002, 2003, 2004 Henning Brauer <henning@openbsd.org>
@ -4361,9 +4361,9 @@ parselargecommunity(struct community *c, char *s)
getcommunity(q, 1, &c->data3, &dflag3) == -1) getcommunity(q, 1, &c->data3, &dflag3) == -1)
return (-1); return (-1);
c->flags = COMMUNITY_TYPE_LARGE; c->flags = COMMUNITY_TYPE_LARGE;
c->flags |= dflag1 << 8;; c->flags |= dflag1 << 8;
c->flags |= dflag2 << 16;; c->flags |= dflag2 << 16;
c->flags |= dflag3 << 24;; c->flags |= dflag3 << 24;
return (0); return (0);
} }

View file

@ -1,4 +1,4 @@
.\" $OpenBSD: bgplgd.8,v 1.9 2024/08/15 09:13:13 claudio Exp $ .\" $OpenBSD: bgplgd.8,v 1.11 2024/09/19 08:55:22 claudio Exp $
.\" .\"
.\" Copyright (c) 2021 Claudio Jeker <claudio@openbsd.org> .\" Copyright (c) 2021 Claudio Jeker <claudio@openbsd.org>
.\" .\"
@ -14,7 +14,7 @@
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\" .\"
.Dd $Mdocdate: August 15 2024 $ .Dd $Mdocdate: September 19 2024 $
.Dt BGPLGD 8 .Dt BGPLGD 8
.Os .Os
.Sh NAME .Sh NAME
@ -171,6 +171,14 @@ Show a list of all neighbors, including information about the session state
and message counters. and message counters.
.El .El
.Sh EXAMPLES .Sh EXAMPLES
Add the following to
.Pa /etc/bgpd.conf
to have
.Xr bgpd 8
open a second, restricted, control socket:
.Pp
.Dl socket \&"/var/run/bgpd.rsock\&" restricted
.Pp
An example setup in An example setup in
.Xr httpd 8 .Xr httpd 8
is: is:

View file

@ -1,4 +1,4 @@
/* $OpenBSD: print.c,v 1.15 2024/04/23 13:34:51 jsg Exp $ */ /* $OpenBSD: print.c,v 1.16 2024/09/20 02:00:46 jsg Exp $ */
/* /*
* Copyright (c) 1993-96 Mats O Jansson. All rights reserved. * Copyright (c) 1993-96 Mats O Jansson. All rights reserved.
@ -62,7 +62,7 @@ mopPrintBPTY(FILE *fd, u_char bpty)
default: default:
fprintf(fd, "Unknown"); fprintf(fd, "Unknown");
break; break;
}; }
} }
void void
@ -84,7 +84,7 @@ mopPrintPGTY(FILE *fd, u_char pgty)
default: default:
fprintf(fd, "Unknown"); fprintf(fd, "Unknown");
break; break;
}; }
} }
void void
@ -550,7 +550,7 @@ mopPrintInfo(FILE *fd, u_char *pkt, int *idx, u_short moplen, u_char mopcode,
default: default:
fprintf(fd, "Unknown\n"); fprintf(fd, "Unknown\n");
break; break;
}; }
break; break;
case MOP_K_INFO_DLTY: case MOP_K_INFO_DLTY:
tmpc = mopGetChar(pkt, idx); tmpc = mopGetChar(pkt, idx);
@ -568,7 +568,7 @@ mopPrintInfo(FILE *fd, u_char *pkt, int *idx, u_short moplen, u_char mopcode,
default: default:
fprintf(fd, "Unknown\n"); fprintf(fd, "Unknown\n");
break; break;
}; }
break; break;
case MOP_K_INFO_DLBSZ: case MOP_K_INFO_DLBSZ:
tmps = mopGetShort(pkt, idx); tmps = mopGetShort(pkt, idx);

View file

@ -1,4 +1,4 @@
/* $OpenBSD: mopchk.c,v 1.21 2023/09/06 11:03:30 jsg Exp $ */ /* $OpenBSD: mopchk.c,v 1.22 2024/09/20 02:00:46 jsg Exp $ */
/* /*
* Copyright (c) 1995-96 Mats O Jansson. All rights reserved. * Copyright (c) 1995-96 Mats O Jansson. All rights reserved.
@ -132,7 +132,7 @@ main(int argc, char **argv)
if (GetMopFileInfo(&dl, INFO_PRINT) < 0) { if (GetMopFileInfo(&dl, INFO_PRINT) < 0) {
printf("Some failure in GetMopFileInfo\n"); printf("Some failure in GetMopFileInfo\n");
} }
}; }
} }
(void)close(dl.ldfd); (void)close(dl.ldfd);
} }

View file

@ -1,4 +1,4 @@
/* $OpenBSD: npppd_subr.c,v 1.22 2024/08/22 07:56:47 florian Exp $ */ /* $OpenBSD: npppd_subr.c,v 1.23 2024/09/20 02:00:46 jsg Exp $ */
/*- /*-
* Copyright (c) 2009 Internet Initiative Japan Inc. * Copyright (c) 2009 Internet Initiative Japan Inc.
@ -69,7 +69,7 @@ skip_space(const char *s)
{ {
const char *r; const char *r;
for (r = s; *r != '\0' && isspace((unsigned char)*r); r++) for (r = s; *r != '\0' && isspace((unsigned char)*r); r++)
;; /* skip */ ; /* skip */
return r; return r;
} }

View file

@ -1,4 +1,4 @@
/* $OpenBSD: util.c,v 1.4 2023/06/21 07:49:24 claudio Exp $ */ /* $OpenBSD: util.c,v 1.5 2024/09/20 02:00:46 jsg Exp $ */
/* /*
* Copyright (c) 2006 - 2015 Reyk Floeter <reyk@openbsd.org> * Copyright (c) 2006 - 2015 Reyk Floeter <reyk@openbsd.org>
@ -149,7 +149,7 @@ host_status(enum host_status status)
return ("unknown"); return ("unknown");
case HOST_UP: case HOST_UP:
return ("up"); return ("up");
}; }
/* NOTREACHED */ /* NOTREACHED */
return ("invalid"); return ("invalid");
} }
@ -173,7 +173,7 @@ table_check(enum table_check check)
return ("send expect"); return ("send expect");
case CHECK_SCRIPT: case CHECK_SCRIPT:
return ("script"); return ("script");
}; }
/* NOTREACHED */ /* NOTREACHED */
return ("invalid"); return ("invalid");
} }
@ -195,7 +195,7 @@ relay_state(enum relay_state state)
return ("closed"); return ("closed");
case STATE_DONE: case STATE_DONE:
return ("done"); return ("done");
}; }
/* NOTREACHED */ /* NOTREACHED */
return ("invalid"); return ("invalid");
} }

View file

@ -1,4 +1,4 @@
/* $OpenBSD: repo.c,v 1.66 2024/09/03 15:37:03 tb Exp $ */ /* $OpenBSD: repo.c,v 1.67 2024/09/19 20:48:36 tb Exp $ */
/* /*
* Copyright (c) 2021 Claudio Jeker <claudio@openbsd.org> * Copyright (c) 2021 Claudio Jeker <claudio@openbsd.org>
* Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv>
@ -735,7 +735,7 @@ rrdp_session_parse(struct rrdprepo *rr)
warnx("%s: reinitializing", rr->notifyuri); warnx("%s: reinitializing", rr->notifyuri);
goto reset; goto reset;
} }
if (arc4random_uniform(1 << RRDP_RANDOM_REINIT_MAX) < (1 << weeks)) { if (arc4random_uniform(1U << RRDP_RANDOM_REINIT_MAX) < (1U << weeks)) {
warnx("%s: reinitializing", rr->notifyuri); warnx("%s: reinitializing", rr->notifyuri);
goto reset; goto reset;
} }

View file

@ -1,3 +1,3 @@
/* $OpenBSD: version.h,v 1.24 2024/08/19 12:44:33 job Exp $ */ /* $OpenBSD: version.h,v 1.25 2024/09/19 13:45:07 job Exp $ */
#define RPKI_VERSION "9.2" #define RPKI_VERSION "9.3"

View file

@ -1,4 +1,4 @@
/* $OpenBSD: tftpd.c,v 1.51 2024/05/21 05:00:48 jsg Exp $ */ /* $OpenBSD: tftpd.c,v 1.52 2024/09/20 02:00:46 jsg Exp $ */
/* /*
* Copyright (c) 2012 David Gwynne <dlg@uq.edu.au> * Copyright (c) 2012 David Gwynne <dlg@uq.edu.au>
@ -544,7 +544,7 @@ rewrite_res(int fd, short events, void *arg)
tftp_open(client, filename); tftp_open(client, filename);
free(filename); free(filename);
}; }
} }
int int

View file

@ -1,4 +1,4 @@
/* $OpenBSD: sev.c,v 1.1 2024/09/11 15:42:52 bluhm Exp $ */ /* $OpenBSD: sev.c,v 1.2 2024/09/20 02:00:46 jsg Exp $ */
/* /*
* Copyright (c) 2023, 2024 Hans-Joerg Hoexer <hshoexer@genua.de> * Copyright (c) 2023, 2024 Hans-Joerg Hoexer <hshoexer@genua.de>
@ -64,7 +64,7 @@ sev_init(struct vmd_vm *vm)
if (psp_launch_start(&handle) < 0) { if (psp_launch_start(&handle) < 0) {
log_warnx("%s: launch failed", __func__); log_warnx("%s: launch failed", __func__);
return (-1); return (-1);
}; }
vm->vm_sev_handle = handle; vm->vm_sev_handle = handle;
if (psp_get_gstate(vm->vm_sev_handle, NULL, NULL, &gstate)) { if (psp_get_gstate(vm->vm_sev_handle, NULL, NULL, &gstate)) {