Module Name: src Committed By: wiz Date: Mon Jul 3 21:28:48 UTC 2017
Modified Files: src/share/man/man9: RUN_ONCE.9 accf_data.9 accf_http.9 altq.9 audio.9 bluetooth.9 bus_dma.9 cnmagic.9 condvar.9 config.9 cons.9 ddc.9 disk.9 dmover.9 driver.9 evcnt.9 extent.9 fileassoc.9 fstrans.9 ieee80211_radiotap.9 in_getifa.9 ioasic.9 ioctl.9 itimerfix.9 kauth.9 kmem.9 malloc.9 mca.9 mi_switch.9 microseq.9 mutex.9 namei.9 opencrypto.9 pci.9 pci_configure_bus.9 ppi.9 pserialize.9 pslist.9 ras.9 rasops.9 ratecheck.9 rssadapt.9 scsipi.9 secmodel.9 signal.9 sysctl.9 sysmon_envsys.9 tc.9 uiomove.9 uvm.9 vfsops.9 vfssubr.9 vmem.9 vnode.9 vnodeops.9 Log Message: Remove workaround for ancient HTML generation code. To generate a diff of this commit: cvs rdiff -u -r1.8 -r1.9 src/share/man/man9/RUN_ONCE.9 \ src/share/man/man9/in_getifa.9 cvs rdiff -u -r1.5 -r1.6 src/share/man/man9/accf_data.9 \ src/share/man/man9/bluetooth.9 src/share/man/man9/microseq.9 cvs rdiff -u -r1.7 -r1.8 src/share/man/man9/accf_http.9 \ src/share/man/man9/ddc.9 src/share/man/man9/itimerfix.9 cvs rdiff -u -r1.14 -r1.15 src/share/man/man9/altq.9 \ src/share/man/man9/cnmagic.9 src/share/man/man9/dmover.9 cvs rdiff -u -r1.44 -r1.45 src/share/man/man9/audio.9 cvs rdiff -u -r1.63 -r1.64 src/share/man/man9/bus_dma.9 cvs rdiff -u -r1.15 -r1.16 src/share/man/man9/condvar.9 \ src/share/man/man9/ras.9 cvs rdiff -u -r1.29 -r1.30 src/share/man/man9/config.9 \ src/share/man/man9/driver.9 src/share/man/man9/fileassoc.9 cvs rdiff -u -r1.18 -r1.19 src/share/man/man9/cons.9 cvs rdiff -u -r1.45 -r1.46 src/share/man/man9/disk.9 src/share/man/man9/pci.9 \ src/share/man/man9/sysmon_envsys.9 cvs rdiff -u -r1.21 -r1.22 src/share/man/man9/evcnt.9 \ src/share/man/man9/secmodel.9 cvs rdiff -u -r1.33 -r1.34 src/share/man/man9/extent.9 cvs rdiff -u -r1.25 -r1.26 src/share/man/man9/fstrans.9 cvs rdiff -u -r1.16 -r1.17 src/share/man/man9/ieee80211_radiotap.9 \ src/share/man/man9/opencrypto.9 src/share/man/man9/pci_configure_bus.9 \ src/share/man/man9/rasops.9 src/share/man/man9/vmem.9 cvs rdiff -u -r1.12 -r1.13 src/share/man/man9/ioasic.9 \ src/share/man/man9/pserialize.9 src/share/man/man9/tc.9 cvs rdiff -u -r1.31 -r1.32 src/share/man/man9/ioctl.9 cvs rdiff -u -r1.107 -r1.108 src/share/man/man9/kauth.9 cvs rdiff -u -r1.20 -r1.21 src/share/man/man9/kmem.9 cvs rdiff -u -r1.53 -r1.54 src/share/man/man9/malloc.9 cvs rdiff -u -r1.11 -r1.12 src/share/man/man9/mca.9 \ src/share/man/man9/ratecheck.9 cvs rdiff -u -r1.3 -r1.4 src/share/man/man9/mi_switch.9 cvs rdiff -u -r1.28 -r1.29 src/share/man/man9/mutex.9 cvs rdiff -u -r1.49 -r1.50 src/share/man/man9/namei.9 cvs rdiff -u -r1.4 -r1.5 src/share/man/man9/ppi.9 cvs rdiff -u -r1.17 -r1.18 src/share/man/man9/pslist.9 \ src/share/man/man9/uiomove.9 cvs rdiff -u -r1.9 -r1.10 src/share/man/man9/rssadapt.9 cvs rdiff -u -r1.30 -r1.31 src/share/man/man9/scsipi.9 cvs rdiff -u -r1.23 -r1.24 src/share/man/man9/signal.9 cvs rdiff -u -r1.19 -r1.20 src/share/man/man9/sysctl.9 cvs rdiff -u -r1.113 -r1.114 src/share/man/man9/uvm.9 cvs rdiff -u -r1.47 -r1.48 src/share/man/man9/vfsops.9 cvs rdiff -u -r1.27 -r1.28 src/share/man/man9/vfssubr.9 cvs rdiff -u -r1.80 -r1.81 src/share/man/man9/vnode.9 cvs rdiff -u -r1.98 -r1.99 src/share/man/man9/vnodeops.9 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/share/man/man9/RUN_ONCE.9 diff -u src/share/man/man9/RUN_ONCE.9:1.8 src/share/man/man9/RUN_ONCE.9:1.9 --- src/share/man/man9/RUN_ONCE.9:1.8 Tue Jul 6 22:29:29 2010 +++ src/share/man/man9/RUN_ONCE.9 Mon Jul 3 21:28:48 2017 @@ -1,4 +1,4 @@ -.\" $NetBSD: RUN_ONCE.9,v 1.8 2010/07/06 22:29:29 jruoho Exp $ +.\" $NetBSD: RUN_ONCE.9,v 1.9 2017/07/03 21:28:48 wiz Exp $ .\" .\" Copyright (c)2005 YAMAMOTO Takashi, .\" All rights reserved. @@ -94,7 +94,7 @@ some_func(void) { static ONCE_DECL(control); - RUN_ONCE(\*[Am]control, init_func); + RUN_ONCE(&control, init_func); /* * we are sure that init_func has already been completed here. Index: src/share/man/man9/in_getifa.9 diff -u src/share/man/man9/in_getifa.9:1.8 src/share/man/man9/in_getifa.9:1.9 --- src/share/man/man9/in_getifa.9:1.8 Tue Mar 18 18:20:40 2014 +++ src/share/man/man9/in_getifa.9 Mon Jul 3 21:28:48 2017 @@ -1,4 +1,4 @@ -.\" $NetBSD: in_getifa.9,v 1.8 2014/03/18 18:20:40 riastradh Exp $ +.\" $NetBSD: in_getifa.9,v 1.9 2017/07/03 21:28:48 wiz Exp $ .\" .\" Copyright (c) 2006 David Young. All rights reserved. .\" @@ -194,7 +194,7 @@ net.inet.ip.interfaces.ath0.selectsrc = The operator may set a new default, .Bd -literal -offset indent # sysctl -w net.inet.ip.selectsrc.debug=\ -\*[Gt] same-category,common-prefix-len,preference +> same-category,common-prefix-len,preference # sysctl -w net.inet.ip.interfaces.ath0.selectsrc= .Ed .Pp Index: src/share/man/man9/accf_data.9 diff -u src/share/man/man9/accf_data.9:1.5 src/share/man/man9/accf_data.9:1.6 --- src/share/man/man9/accf_data.9:1.5 Sun Apr 11 21:32:10 2010 +++ src/share/man/man9/accf_data.9 Mon Jul 3 21:28:48 2017 @@ -1,4 +1,4 @@ -.\" $NetBSD: accf_data.9,v 1.5 2010/04/11 21:32:10 wiz Exp $ +.\" $NetBSD: accf_data.9,v 1.6 2017/07/03 21:28:48 wiz Exp $ .\" .\" Copyright (c) 2000 Alfred Perlstein .\" @@ -53,9 +53,9 @@ on the socket .Bd -literal -offset 0i struct accept_filter_arg afa; - bzero(\*[Am]afa, sizeof(afa)); + bzero(&afa, sizeof(afa)); strcpy(afa.af_name, "dataready"); - setsockopt(sok, SOL_SOCKET, SO_ACCEPTFILTER, \*[Am]afa, sizeof(afa)); + setsockopt(sok, SOL_SOCKET, SO_ACCEPTFILTER, &afa, sizeof(afa)); .Ed .Sh SEE ALSO .Xr setsockopt 2 , Index: src/share/man/man9/bluetooth.9 diff -u src/share/man/man9/bluetooth.9:1.5 src/share/man/man9/bluetooth.9:1.6 --- src/share/man/man9/bluetooth.9:1.5 Thu Dec 2 12:54:13 2010 +++ src/share/man/man9/bluetooth.9 Mon Jul 3 21:28:48 2017 @@ -1,4 +1,4 @@ -.\" $NetBSD: bluetooth.9,v 1.5 2010/12/02 12:54:13 wiz Exp $ +.\" $NetBSD: bluetooth.9,v 1.6 2017/07/03 21:28:48 wiz Exp $ .\" .\" Copyright (c) 2006 Itronix Inc. .\" All rights reserved. @@ -254,11 +254,11 @@ Initiate a connection by the protocol ob to the remote device described by .Ar addr . This will result in a call to either -.Fn proto-\*[Gt]connected +.Fn proto->connected or -.Fn proto-\*[Gt]disconnected , +.Fn proto->disconnected , and optionally -.Fn proto-\*[Gt]connecting +.Fn proto->connecting with the appropriate reference as given to .Fn btproto_attach . .It Fn btproto_peeraddr "handle" "addr" @@ -270,7 +270,7 @@ into Schedule a disconnection by the protocol object described by .Ar handle . This will result in a call to -.Fn proto-\*[Gt]disconnected +.Fn proto->disconnected with the appropriate reference when the connection is torn down. If linger is zero, the disconnection will be initiated @@ -285,7 +285,7 @@ Use the protocol object described by .Ar handle as a listening post. This will result in calls to the -.Fn proto-\*[Gt]newconn +.Fn proto->newconn function when incoming connections are detected. .It Fn btproto_send "handle" "mbuf" Send data on the connection described by the protocol object. Index: src/share/man/man9/microseq.9 diff -u src/share/man/man9/microseq.9:1.5 src/share/man/man9/microseq.9:1.6 --- src/share/man/man9/microseq.9:1.5 Sat Jul 14 10:52:49 2007 +++ src/share/man/man9/microseq.9 Mon Jul 3 21:28:48 2017 @@ -1,4 +1,4 @@ -.\" $NetBSD: microseq.9,v 1.5 2007/07/14 10:52:49 ad Exp $ +.\" $NetBSD: microseq.9,v 1.6 2017/07/03 21:28:48 wiz Exp $ .\" .\" Copyright (c) 1998, 1999, Nicolas Souchu .\" All rights reserved. @@ -114,26 +114,26 @@ The parallel port must be considered as .Pp Available microinstructions are: .Bd -literal -#define MS_OP_GET 0 /* get \*[Lt]ptr\*[Gt], \*[Lt]len\*[Gt] */ -#define MS_OP_PUT 1 /* put \*[Lt]ptr\*[Gt], \*[Lt]len\*[Gt] */ -#define MS_OP_RFETCH 2 /* rfetch \*[Lt]reg\*[Gt], \*[Lt]mask\*[Gt], \*[Lt]ptr\*[Gt] */ -#define MS_OP_RSET 3 /* rset \*[Lt]reg\*[Gt], \*[Lt]mask\*[Gt], \*[Lt]mask\*[Gt] */ -#define MS_OP_RASSERT 4 /* rassert \*[Lt]reg\*[Gt], \*[Lt]mask\*[Gt] */ -#define MS_OP_DELAY 5 /* delay \*[Lt]val\*[Gt] */ -#define MS_OP_SET 6 /* set \*[Lt]val\*[Gt] */ -#define MS_OP_DBRA 7 /* dbra \*[Lt]offset\*[Gt] */ -#define MS_OP_BRSET 8 /* brset \*[Lt]mask\*[Gt], \*[Lt]offset\*[Gt] */ -#define MS_OP_BRCLEAR 9 /* brclear \*[Lt]mask\*[Gt], \*[Lt]offset\*[Gt] */ -#define MS_OP_RET 10 /* ret \*[Lt]retcode\*[Gt] */ -#define MS_OP_C_CALL 11 /* c_call \*[Lt]function\*[Gt], \*[Lt]parameter\*[Gt] */ -#define MS_OP_PTR 12 /* ptr \*[Lt]pointer\*[Gt] */ -#define MS_OP_ADELAY 13 /* adelay \*[Lt]val\*[Gt] */ -#define MS_OP_BRSTAT 14 /* brstat \*[Lt]mask\*[Gt], \*[Lt]mask\*[Gt], \*[Lt]offset\*[Gt] */ -#define MS_OP_SUBRET 15 /* subret \*[Lt]code\*[Gt] */ -#define MS_OP_CALL 16 /* call \*[Lt]microsequence\*[Gt] */ -#define MS_OP_RASSERT_P 17 /* rassert_p \*[Lt]iter\*[Gt], \*[Lt]reg\*[Gt] */ -#define MS_OP_RFETCH_P 18 /* rfetch_p \*[Lt]iter\*[Gt], \*[Lt]reg\*[Gt], \*[Lt]mask\*[Gt] */ -#define MS_OP_TRIG 19 /* trigger \*[Lt]reg\*[Gt], \*[Lt]len\*[Gt], \*[Lt]array\*[Gt] */ +#define MS_OP_GET 0 /* get <ptr>, <len> */ +#define MS_OP_PUT 1 /* put <ptr>, <len> */ +#define MS_OP_RFETCH 2 /* rfetch <reg>, <mask>, <ptr> */ +#define MS_OP_RSET 3 /* rset <reg>, <mask>, <mask> */ +#define MS_OP_RASSERT 4 /* rassert <reg>, <mask> */ +#define MS_OP_DELAY 5 /* delay <val> */ +#define MS_OP_SET 6 /* set <val> */ +#define MS_OP_DBRA 7 /* dbra <offset> */ +#define MS_OP_BRSET 8 /* brset <mask>, <offset> */ +#define MS_OP_BRCLEAR 9 /* brclear <mask>, <offset> */ +#define MS_OP_RET 10 /* ret <retcode> */ +#define MS_OP_C_CALL 11 /* c_call <function>, <parameter> */ +#define MS_OP_PTR 12 /* ptr <pointer> */ +#define MS_OP_ADELAY 13 /* adelay <val> */ +#define MS_OP_BRSTAT 14 /* brstat <mask>, <mask>, <offset> */ +#define MS_OP_SUBRET 15 /* subret <code> */ +#define MS_OP_CALL 16 /* call <microsequence> */ +#define MS_OP_RASSERT_P 17 /* rassert_p <iter>, <reg> */ +#define MS_OP_RFETCH_P 18 /* rfetch_p <iter>, <reg>, <mask> */ +#define MS_OP_TRIG 19 /* trigger <reg>, <len>, <array> */ .Ed .Ss Execution context The @@ -221,7 +221,7 @@ integer value .El .Pp Predefined macro: MS_SET(accum) -.Ss MS_OP_DBRA - \\*[Am]Do BRAnch +.Ss MS_OP_DBRA - \&Do BRAnch is used to branch if internal branch register decremented by one result value is positive. .Pp @@ -470,8 +470,8 @@ should use the function like this: .Bd -literal -offset indent ppb_MS_init_msq(select_microseq, 2, - SELECT_TARGET, 1 \*[Lt]\*[Lt] target, - SELECT_INITIATOR, 1 \*[Lt]\*[Lt] initiator); + SELECT_TARGET, 1 << target, + SELECT_INITIATOR, 1 << initiator); .Ed .Pp and then execute the microsequence. Index: src/share/man/man9/accf_http.9 diff -u src/share/man/man9/accf_http.9:1.7 src/share/man/man9/accf_http.9:1.8 --- src/share/man/man9/accf_http.9:1.7 Sun Apr 11 05:40:16 2010 +++ src/share/man/man9/accf_http.9 Mon Jul 3 21:28:48 2017 @@ -1,4 +1,4 @@ -.\" $NetBSD: accf_http.9,v 1.7 2010/04/11 05:40:16 jruoho Exp $ +.\" $NetBSD: accf_http.9,v 1.8 2017/07/03 21:28:48 wiz Exp $ .\" .\" Copyright (c) 2000 Alfred Perlstein .\" @@ -81,9 +81,9 @@ on the socket .Bd -literal -offset 0i struct accept_filter_arg afa; - bzero(\*[Am]afa, sizeof(afa)); + bzero(&afa, sizeof(afa)); strcpy(afa.af_name, "httpready"); - setsockopt(sok, SOL_SOCKET, SO_ACCEPTFILTER, \*[Am]afa, sizeof(afa)); + setsockopt(sok, SOL_SOCKET, SO_ACCEPTFILTER, &afa, sizeof(afa)); .Ed .Sh SEE ALSO .Xr setsockopt 2 , Index: src/share/man/man9/ddc.9 diff -u src/share/man/man9/ddc.9:1.7 src/share/man/man9/ddc.9:1.8 --- src/share/man/man9/ddc.9:1.7 Sat Jan 4 15:41:59 2014 +++ src/share/man/man9/ddc.9 Mon Jul 3 21:28:48 2017 @@ -1,4 +1,4 @@ -.\" $NetBSD: ddc.9,v 1.7 2014/01/04 15:41:59 wiz Exp $ +.\" $NetBSD: ddc.9,v 1.8 2017/07/03 21:28:48 wiz Exp $ .\" .\" Copyright 2006 Itronix Inc. .\" All rights reserved. @@ -91,8 +91,8 @@ to retrieve and print information about ... /* initialize i2c tag... */ ... - if ((ddc_read_edid(tag, buffer, 128) == 0) \*[Am]\*[Am] - (edid_parse(buffer, \*[Am]info) == 0)) + if ((ddc_read_edid(tag, buffer, 128) == 0) && + (edid_parse(buffer, &info) == 0)) edid_print(info); ... .Ed Index: src/share/man/man9/itimerfix.9 diff -u src/share/man/man9/itimerfix.9:1.7 src/share/man/man9/itimerfix.9:1.8 --- src/share/man/man9/itimerfix.9:1.7 Wed Apr 30 13:10:58 2008 +++ src/share/man/man9/itimerfix.9 Mon Jul 3 21:28:48 2017 @@ -1,4 +1,4 @@ -.\" $NetBSD: itimerfix.9,v 1.7 2008/04/30 13:10:58 martin Exp $ +.\" $NetBSD: itimerfix.9,v 1.8 2017/07/03 21:28:48 wiz Exp $ .\" .\" Copyright (c) 2001 The NetBSD Foundation, Inc. .\" All rights reserved. @@ -42,7 +42,7 @@ The .Nm function checks that the value in .Fa tv -is valid (0 \*[Le] tv-\*[Gt]tv_sec \*[Am]\*[Am] 0 \*[Le] tv-\*[Gt]tv_usec \*[Lt] 1000000), and that the +is valid (0 \*[Le] tv->tv_sec && 0 \*[Le] tv->tv_usec < 1000000), and that the total time represented is at least one .Em tick , or zero. Index: src/share/man/man9/altq.9 diff -u src/share/man/man9/altq.9:1.14 src/share/man/man9/altq.9:1.15 --- src/share/man/man9/altq.9:1.14 Sun Jun 24 19:26:58 2007 +++ src/share/man/man9/altq.9 Mon Jul 3 21:28:48 2017 @@ -1,4 +1,4 @@ -.\" $NetBSD: altq.9,v 1.14 2007/06/24 19:26:58 rumble Exp $ +.\" $NetBSD: altq.9,v 1.15 2017/07/03 21:28:48 wiz Exp $ .\" $OpenBSD: altq.9,v 1.4 2001/07/12 12:41:42 itojun Exp $ .\" .\" Copyright (C) 2001 @@ -227,7 +227,7 @@ do { } \e } \e if ((err)) \e - (ifq)-\*[Gt]ifq_drops++; \e + (ifq)->ifq_drops++; \e } while (/*CONSTCOND*/ 0) .Ed .Pp @@ -267,24 +267,24 @@ looks as follows: { | { ...... | ...... | - | mflags = m-\*[Gt]m_flags; - | len = m-\*[Gt]m_pkthdr.len; + | mflags = m->m_flags; + | len = m->m_pkthdr.len; s = splimp(); | s = splimp(); - if (IF_QFULL(\*[Am]ifp-\*[Gt]if_snd)) { | IFQ_ENQUEUE(\*[Am]ifp-\*[Gt]if_snd, m, + if (IF_QFULL(&ifp->if_snd)) { | IFQ_ENQUEUE(&ifp->if_snd, m, | NULL, error); - IF_DROP(\*[Am]ifp-\*[Gt]if_snd); | if (error != 0) { + IF_DROP(&ifp->if_snd); | if (error != 0) { splx(s); | splx(s); senderr(ENOBUFS); | return (error); } | } - IF_ENQUEUE(\*[Am]ifp-\*[Gt]if_snd, m); | - ifp-\*[Gt]if_obytes += | ifp-\*[Gt]if_obytes += len; - m-\*[Gt]m_pkthdr.len; | - if (m-\*[Gt]m_flags \*[Am] M_MCAST) | if (mflags \*[Am] M_MCAST) - ifp-\*[Gt]if_omcasts++; | ifp-\*[Gt]if_omcasts++; + IF_ENQUEUE(&ifp->if_snd, m); | + ifp->if_obytes += | ifp->if_obytes += len; + m->m_pkthdr.len; | + if (m->m_flags & M_MCAST) | if (mflags & M_MCAST) + ifp->if_omcasts++; | ifp->if_omcasts++; | - if ((ifp-\*[Gt]if_flags \*[Am] IFF_OACTIVE) | if ((ifp-\*[Gt]if_flags \*[Am] IFF_OACTIVE) + if ((ifp->if_flags & IFF_OACTIVE) | if ((ifp->if_flags & IFF_OACTIVE) == 0) | == 0) - (*ifp-\*[Gt]if_start)(ifp); | (*ifp-\*[Gt]if_start)(ifp); + (*ifp->if_start)(ifp); | (*ifp->if_start)(ifp); splx(s); | splx(s); return (error); | return (error); | @@ -312,12 +312,12 @@ ether_output(ifp, m0, dst, rt0) ...... /* classify the packet before prepending link-headers */ - IFQ_CLASSIFY(\*[Am]ifp-\*[Gt]if_snd, m, dst-\*[Gt]sa_family, \*[Am]pktattr); + IFQ_CLASSIFY(&ifp->if_snd, m, dst->sa_family, &pktattr); /* prepend link-level headers */ ...... - IFQ_ENQUEUE(\*[Am]ifp-\*[Gt]if_snd, m, \*[Am]pktattr, error); + IFQ_ENQUEUE(&ifp->if_snd, m, &pktattr, error); ...... } @@ -340,7 +340,7 @@ to see whether the queue is empty or not .Bd -literal ##old-style## ##new-style## | - if (ifp-\*[Gt]if_snd.ifq_head != NULL) | if (IFQ_IS_EMPTY(\*[Am]ifp-\*[Gt]if_snd) == 0) + if (ifp->if_snd.ifq_head != NULL) | if (IFQ_IS_EMPTY(&ifp->if_snd) == 0) | .Ed Note that @@ -380,7 +380,7 @@ due to rate-limiting. .Bd -literal ##old-style## ##new-style## | - IF_DEQUEUE(\*[Am]ifp-\*[Gt]if_snd, m); | IFQ_DEQUEUE(\*[Am]ifp-\*[Gt]if_snd, m); + IF_DEQUEUE(&ifp->if_snd, m); | IFQ_DEQUEUE(&ifp->if_snd, m); | if (m == NULL) | return; | @@ -397,14 +397,14 @@ and .Bd -literal ##old-style## ##new-style## | - m = ifp-\*[Gt]if_snd.ifq_head; | IFQ_POLL(\*[Am]ifp-\*[Gt]if_snd, m); + m = ifp->if_snd.ifq_head; | IFQ_POLL(&ifp->if_snd, m); if (m != NULL) { | if (m != NULL) { | /* use m to get resources */ | /* use m to get resources */ if (something goes wrong) | if (something goes wrong) return; | return; | - IF_DEQUEUE(\*[Am]ifp-\*[Gt]if_snd, m); | IFQ_DEQUEUE(\*[Am]ifp-\*[Gt]if_snd, m); + IF_DEQUEUE(&ifp->if_snd, m); | IFQ_DEQUEUE(&ifp->if_snd, m); | /* kick the hardware */ | /* kick the hardware */ } | } @@ -431,11 +431,11 @@ You have to convert the logic into poll- .Bd -literal ##old-style## ##new-style## | - IF_DEQUEUE(\*[Am]ifp-\*[Gt]if_snd, m); | IFQ_POLL(\*[Am]ifp-\*[Gt]if_snd, m); + IF_DEQUEUE(&ifp->if_snd, m); | IFQ_POLL(&ifp->if_snd, m); if (m != NULL) { | if (m != NULL) { | if (something_goes_wrong) { | if (something_goes_wrong) { - IF_PREPEND(\*[Am]ifp-\*[Gt]if_snd, m); | + IF_PREPEND(&ifp->if_snd, m); | return; | return; } | } | @@ -443,7 +443,7 @@ You have to convert the logic into poll- | * is committed to send this | * packet. | */ - | IFQ_DEQUEUE(\*[Am]ifp-\*[Gt]if_snd, m); + | IFQ_DEQUEUE(&ifp->if_snd, m); | /* kick the hardware */ | /* kick the hardware */ } | } @@ -457,8 +457,8 @@ Note that a non-work conserving queue ca .Bd -literal ##old-style## ##new-style## | - while (ifp-\*[Gt]if_snd.ifq_head != NULL) {| IFQ_PURGE(\*[Am]ifp-\*[Gt]if_snd); - IF_DEQUEUE(\*[Am]ifp-\*[Gt]if_snd, m); | + while (ifp->if_snd.ifq_head != NULL) {| IFQ_PURGE(&ifp->if_snd); + IF_DEQUEUE(&ifp->if_snd, m); | m_freem(m); | } | | @@ -477,8 +477,8 @@ to show this driver is converted to the .Bd -literal ##old-style## ##new-style## | - ifp-\*[Gt]if_snd.ifq_maxlen = qsize; | IFQ_SET_MAXLEN(\*[Am]ifp-\*[Gt]if_snd, qsize); - | IFQ_SET_READY(\*[Am]ifp-\*[Gt]if_snd); + ifp->if_snd.ifq_maxlen = qsize; | IFQ_SET_MAXLEN(&ifp->if_snd, qsize); + | IFQ_SET_READY(&ifp->if_snd); if_attach(ifp); | if_attach(ifp); | .Ed @@ -487,11 +487,11 @@ The new macros for statistics: .Bd -literal ##old-style## ##new-style## | - IF_DROP(\*[Am]ifp-\*[Gt]if_snd); | IFQ_INC_DROPS(\*[Am]ifp-\*[Gt]if_snd); + IF_DROP(&ifp->if_snd); | IFQ_INC_DROPS(&ifp->if_snd); | - ifp-\*[Gt]if_snd.ifq_len++; | IFQ_INC_LEN(\*[Am]ifp-\*[Gt]if_snd); + ifp->if_snd.ifq_len++; | IFQ_INC_LEN(&ifp->if_snd); | - ifp-\*[Gt]if_snd.ifq_len--; | IFQ_DEC_LEN(\*[Am]ifp-\*[Gt]if_snd); + ifp->if_snd.ifq_len--; | IFQ_DEC_LEN(&ifp->if_snd); | .Ed Some drivers instruct the hardware to invoke transmission complete @@ -522,7 +522,7 @@ is no longer a type of .Dv struct ifqueue .Pc . .Bd -literal - struct ifqueue *ifq = \*[Am]ifp-\*[Gt]if_snd; + struct ifqueue *ifq = &ifp->if_snd; .Ed A simple way is to use the original .Fn IF_XXX @@ -536,31 +536,31 @@ The enqueue operation looks like: .Bd -literal ##old-style## ##new-style## | - struct ifqueue *ifq = \*[Am]ifp-\*[Gt]if_snd; | struct ifqueue *ifq = NULL; + struct ifqueue *ifq = &ifp->if_snd; | struct ifqueue *ifq = NULL; | - if (ip-\*[Gt]ip_tos \*[Am] IPTOS_LOWDELAY) | if ((ip-\*[Gt]ip_tos \*[Am] IPTOS_LOWDELAY) \*[Am]\*[Am] - ifq = \*[Am]sc-\*[Gt]sc_fastq; | !ALTQ_IS_ENABLED(\*[Am]sc-\*[Gt]sc_if.if_snd)) { - | ifq = \*[Am]sc-\*[Gt]sc_fastq; + if (ip->ip_tos & IPTOS_LOWDELAY) | if ((ip->ip_tos & IPTOS_LOWDELAY) && + ifq = &sc->sc_fastq; | !ALTQ_IS_ENABLED(&sc->sc_if.if_snd)) { + | ifq = &sc->sc_fastq; if (IF_QFULL(ifq)) { | if (IF_QFULL(ifq)) { IF_DROP(ifq); | IF_DROP(ifq); m_freem(m); | m_freem(m); splx(s); | error = ENOBUFS; - sc-\*[Gt]sc_if.if_oerrors++; | } else { + sc->sc_if.if_oerrors++; | } else { return (ENOBUFS); | IF_ENQUEUE(ifq, m); } | error = 0; IF_ENQUEUE(ifq, m); | } | } else - | IFQ_ENQUEUE(\*[Am]sc-\*[Gt]sc_if.if_snd, + | IFQ_ENQUEUE(&sc->sc_if.if_snd, | m, NULL, error); | | if (error) { | splx(s); - | sc-\*[Gt]sc_if.if_oerrors++; + | sc->sc_if.if_oerrors++; | return (error); | } - if ((sc-\*[Gt]sc_oqlen = | if ((sc-\*[Gt]sc_oqlen = - sc-\*[Gt]sc_ttyp-\*[Gt]t_outq.c_cc) == 0) | sc-\*[Gt]sc_ttyp-\*[Gt]t_outq.c_cc) == 0) - slstart(sc-\*[Gt]sc_ttyp); | slstart(sc-\*[Gt]sc_ttyp); + if ((sc->sc_oqlen = | if ((sc->sc_oqlen = + sc->sc_ttyp->t_outq.c_cc) == 0) | sc->sc_ttyp->t_outq.c_cc) == 0) + slstart(sc->sc_ttyp); | slstart(sc->sc_ttyp); splx(s); | splx(s); | .Ed @@ -569,9 +569,9 @@ The dequeue operations looks like: ##old-style## ##new-style## | s = splimp(); | s = splimp(); - IF_DEQUEUE(\*[Am]sc-\*[Gt]sc_fastq, m); | IF_DEQUEUE(\*[Am]sc-\*[Gt]sc_fastq, m); + IF_DEQUEUE(&sc->sc_fastq, m); | IF_DEQUEUE(&sc->sc_fastq, m); if (m == NULL) | if (m == NULL) - IF_DEQUEUE(\*[Am]sc-\*[Gt]sc_if.if_snd, m); | IFQ_DEQUEUE(\*[Am]sc-\*[Gt]sc_if.if_snd, m); + IF_DEQUEUE(&sc->sc_if.if_snd, m); | IFQ_DEQUEUE(&sc->sc_if.if_snd, m); splx(s); | splx(s); | .Ed Index: src/share/man/man9/cnmagic.9 diff -u src/share/man/man9/cnmagic.9:1.14 src/share/man/man9/cnmagic.9:1.15 --- src/share/man/man9/cnmagic.9:1.14 Tue Jun 8 19:44:28 2010 +++ src/share/man/man9/cnmagic.9 Mon Jul 3 21:28:48 2017 @@ -1,4 +1,4 @@ -.\" $NetBSD: cnmagic.9,v 1.14 2010/06/08 19:44:28 jruoho Exp $ +.\" $NetBSD: cnmagic.9,v 1.15 2017/07/03 21:28:48 wiz Exp $ .\" .\" Copyright (c) 2000 Eduardo Horvath .\" All rights reserved. @@ -115,7 +115,7 @@ is the system console. This macro tests to see if .Fa dev is the same as -.Va cn_tab-\*[Gt]cn_dev +.Va cn_tab->cn_dev but can be overridden in MI header files. .It Fn cn_check_magic "dev" "k" "cnms" All input should be passed through Index: src/share/man/man9/dmover.9 diff -u src/share/man/man9/dmover.9:1.14 src/share/man/man9/dmover.9:1.15 --- src/share/man/man9/dmover.9:1.14 Mon Jan 25 19:34:37 2010 +++ src/share/man/man9/dmover.9 Mon Jul 3 21:28:48 2017 @@ -1,4 +1,4 @@ -.\" $NetBSD: dmover.9,v 1.14 2010/01/25 19:34:37 jruoho Exp $ +.\" $NetBSD: dmover.9,v 1.15 2017/07/03 21:28:48 wiz Exp $ .\" .\" Copyright (c) 2002 Wasabi Systems, Inc. .\" All rights reserved. @@ -573,7 +573,7 @@ hw_bzero(void *buf, size_t len) struct dmover_request *dreq; int error; - error = dmover_session_create(DMOVER_FUNC_ZERO, \*[Am]dses); + error = dmover_session_create(DMOVER_FUNC_ZERO, &dses); if (error) return (error); @@ -583,16 +583,16 @@ hw_bzero(void *buf, size_t len) return (ENOMEM); } - dreq-\*[Gt]dreq_flags = DMOVER_REQ_WAIT; - dreq-\*[Gt]dreq_callback = NULL; - dreq-\*[Gt]dreq_outbuf.dreq_outbuf_type = DMOVER_BUF_LINEAR; - dreq-\*[Gt]dreq_outbuf.dmbuf_linear.l_addr = buf; - dreq-\*[Gt]dreq_outbuf.dmbuf_linear.l_len = len; + dreq->dreq_flags = DMOVER_REQ_WAIT; + dreq->dreq_callback = NULL; + dreq->dreq_outbuf.dreq_outbuf_type = DMOVER_BUF_LINEAR; + dreq->dreq_outbuf.dmbuf_linear.l_addr = buf; + dreq->dreq_outbuf.dmbuf_linear.l_len = len; dmover_process(dreq); - error = (dreq-\*[Gt]dreq_flags \*[Am] DMOVER_REQ_ERROR) ? - dreq-\*[Gt]dreq_error : 0; + error = (dreq->dreq_flags & DMOVER_REQ_ERROR) ? + dreq->dreq_error : 0; dmover_request_free(dreq); dmover_session_destroy(dses); Index: src/share/man/man9/audio.9 diff -u src/share/man/man9/audio.9:1.44 src/share/man/man9/audio.9:1.45 --- src/share/man/man9/audio.9:1.44 Sun Jul 13 11:08:46 2014 +++ src/share/man/man9/audio.9 Mon Jul 3 21:28:48 2017 @@ -1,4 +1,4 @@ -.\" $NetBSD: audio.9,v 1.44 2014/07/13 11:08:46 mbalmer Exp $ +.\" $NetBSD: audio.9,v 1.45 2017/07/03 21:28:48 wiz Exp $ .\" .\" Copyright (c) 1999, 2000 The NetBSD Foundation, Inc. .\" All rights reserved. @@ -204,7 +204,7 @@ For example, if .Va play requests [8000Hz, mu-law, 8/8bit, 1ch] and the hardware does not support 8bit mu-law, but 16bit slinear_le, the driver should call -.Dv pfil-\*[Gt]append() +.Dv pfil->append() with .Va pfil , .Va mulaw_to_linear16 , @@ -242,28 +242,28 @@ For playing, constructs conversions as follows: .Bd -literal (play) == write(2) input - | pfil-\*[Gt]filters[pfil-\*[Gt]req_size-1].factory - (pfil-\*[Gt]filters[pfil-\*[Gt]req_size-1].param) - | pfil-\*[Gt]filters[pfil-\*[Gt]req_size-2].factory + | pfil->filters[pfil->req_size-1].factory + (pfil->filters[pfil->req_size-1].param) + | pfil->filters[pfil->req_size-2].factory : - | pfil-\*[Gt]filters[1].factory - (pfil-\*[Gt]filters[1].param) - | pfil-\*[Gt]filters[0].factory - (pfil-\*[Gt]filters[0].param) == hardware input + | pfil->filters[1].factory + (pfil->filters[1].param) + | pfil->filters[0].factory + (pfil->filters[0].param) == hardware input .Ed .Pp For recording, .Va rfil constructs conversions as follows: .Bd -literal - (rfil-\*[Gt]filters[0].param) == hardware output - | rfil-\*[Gt]filters[0].factory - (rfil-\*[Gt]filters[1].param) - | rfil-\*[Gt]filters[1].factory + (rfil->filters[0].param) == hardware output + | rfil->filters[0].factory + (rfil->filters[1].param) + | rfil->filters[1].factory : - | rfil-\*[Gt]filters[rfil-\*[Gt]req_size-2].factory - (rfil-\*[Gt]filters[rfil-\*[Gt]req_size-1].param) - | rfil-\*[Gt]filters[rfil-\*[Gt]req_size-1].factory + | rfil->filters[rfil->req_size-2].factory + (rfil->filters[rfil->req_size-1].param) + | rfil->filters[rfil->req_size-1].factory (rec) == read(2) output .Ed .Pp Index: src/share/man/man9/bus_dma.9 diff -u src/share/man/man9/bus_dma.9:1.63 src/share/man/man9/bus_dma.9:1.64 --- src/share/man/man9/bus_dma.9:1.63 Mon Jan 2 09:53:04 2017 +++ src/share/man/man9/bus_dma.9 Mon Jul 3 21:28:48 2017 @@ -1,4 +1,4 @@ -.\" $NetBSD: bus_dma.9,v 1.63 2017/01/02 09:53:04 wiz Exp $ +.\" $NetBSD: bus_dma.9,v 1.64 2017/07/03 21:28:48 wiz Exp $ .\" .\" Copyright (c) 1996, 1997, 1998, 2001, 2005, 2006 The NetBSD Foundation, Inc. .\" All rights reserved. @@ -166,7 +166,7 @@ Arguments are as follows: .Bl -tag -width nsegments -compact .It Fa tag This is the bus_dma_tag_t passed down from the parent driver via -.Fa \*[Lt]bus\*[Gt]_attach_args . +.Fa <bus>_attach_args . .It Fa size This is the maximum DMA transfer that can be mapped by the handle. .It Fa nsegments @@ -228,7 +228,7 @@ Arguments are as follows: .Bl -tag -width dmam -compact .It Fa tag This is the bus_dma_tag_t passed down from the parent driver via -.Fa \*[Lt]bus\*[Gt]_attach_args . +.Fa <bus>_attach_args . .It Fa dmam The DMA handle to destroy. .El @@ -250,7 +250,7 @@ Arguments are as follows: .Bl -tag -width buflen -compact .It Fa tag This is the bus_dma_tag_t passed down from the parent driver via -.Fa \*[Lt]bus\*[Gt]_attach_args . +.Fa <bus>_attach_args . .It Fa dmam The DMA handle with which to map the transfer. .It Fa buf @@ -296,13 +296,13 @@ function. .It Dv BUS_DMA_READ This is a hint to the machine-dependent back-end that indicates the mapping will be used only for a -.Em "device -\*[Gt] memory" +.Em "device -> memory" transaction. The back-end may perform optimizations based on this information. .It Dv BUS_DMA_WRITE This is a hint to the machine-dependent back-end that indicates the mapping will be used only for a -.Em "memory -\*[Gt] device" +.Em "memory -> device" transaction. The back-end may perform optimizations based on this information. .It Dv BUS_DMA_BUS[1-4] @@ -352,7 +352,7 @@ which maps buffers pointed to by for DMA transfers. Determination if the buffers are in user or kernel virtual address space is done internally, according to -.Fa "uio-\*[Gt]uio_vmspace" . +.Fa "uio->uio_vmspace" . See .Xr uiomove 9 for details of the @@ -382,7 +382,7 @@ Arguments are as follows: .Bl -tag -width dmam -compact .It Fa tag This is the bus_dma_tag_t passed down from the parent driver via -.Fa \*[Lt]bus\*[Gt]_attach_args . +.Fa <bus>_attach_args . .It Fa dmam The DMA handle containing the mappings which are to be deleted. .El @@ -422,7 +422,7 @@ Arguments are as follows: .Bl -tag -width offset -compact .It Fa tag This is the bus_dma_tag_t passed down from the parent driver via -.Fa \*[Lt]bus\*[Gt]_attach_args . +.Fa <bus>_attach_args . .It Fa dmam The DMA mapping to be synchronized. .It Fa offset @@ -455,11 +455,11 @@ operations is not allowed, and behavior .Pp Synchronization operations are expressed from the perspective of the host RAM, e.g., a -.Em "device -\*[Gt] memory" +.Em "device -> memory" operation is a .Em READ and a -.Em "memory -\*[Gt] device" +.Em "memory -> device" operation is a .Em WRITE . .Pp @@ -558,7 +558,7 @@ Arguments are as follows: .Bl -tag -width alignment -compact .It Fa tag This is the bus_dma_tag_t passed down from the parent driver via -.Fa \*[Lt]bus\*[Gt]_attach_args . +.Fa <bus>_attach_args . .It Fa size The amount of memory to allocate. .It Fa alignment @@ -628,7 +628,7 @@ Arguments are as follows: .Bl -tag -width nsegs -compact .It Fa tag This is the bus_dma_tag_t passed down from the parent driver via -.Fa \*[Lt]bus\*[Gt]_attach_args . +.Fa <bus>_attach_args . .It Fa segs The array of bus_dma_segment_t's filled in by .Fn bus_dmamem_alloc . @@ -651,7 +651,7 @@ Arguments are as follows: .Bl -tag -width flags -compact .It Fa tag This is the bus_dma_tag_t passed down from the parent driver via -.Fa \*[Lt]bus\*[Gt]_attach_args . +.Fa <bus>_attach_args . .It Fa segs The array of bus_dma_segment_t's filled in by .Fn bus_dmamem_alloc , @@ -729,7 +729,7 @@ The arguments are as follows: .Bl -tag -width size -compact .It Fa tag This is the bus_dma_tag_t passed down from the parent driver via -.Fa \*[Lt]bus\*[Gt]_attach_args . +.Fa <bus>_attach_args . .It Fa kva The kernel virtual address of the mapped memory. .It Fa size @@ -752,7 +752,7 @@ The arguments are as follows: .Bl -tag -width nsegs -compact .It Fa tag This is the bus_dma_tag_t passed down from the parent driver via -.Fa \*[Lt]bus\*[Gt]_attach_args . +.Fa <bus>_attach_args . .It Fa segs The array of bus_dma_segment_t's filled in by .Fn bus_dmamem_alloc , Index: src/share/man/man9/condvar.9 diff -u src/share/man/man9/condvar.9:1.15 src/share/man/man9/condvar.9:1.16 --- src/share/man/man9/condvar.9:1.15 Mon Jul 3 21:16:36 2017 +++ src/share/man/man9/condvar.9 Mon Jul 3 21:28:48 2017 @@ -1,4 +1,4 @@ -.\" $NetBSD: condvar.9,v 1.15 2017/07/03 21:16:36 pgoyette Exp $ +.\" $NetBSD: condvar.9,v 1.16 2017/07/03 21:28:48 wiz Exp $ .\" .\" Copyright (c) 2006, 2007, 2008 The NetBSD Foundation, Inc. .\" All rights reserved. @@ -261,7 +261,7 @@ Consuming a resource: * Lock the resource. Its mutex will also serve as the * interlock. */ - mutex_enter(\*[Am]res-\*[Gt]mutex); + mutex_enter(&res->mutex); /* * Wait for the resource to become available. Timeout after @@ -270,12 +270,12 @@ Consuming a resource: */ bt.sec = 5; bt.frac = 0; - while (res-\*[Gt]state == BUSY \*[Am]\*[Am] (bt.sec || bt.frac)) - cv_timedwaitbt(\*[Am]res-\*[Gt]condvar, \\ - \*[Am]res-\*[Gt]mutex, bt, epsilon); + while (res->state == BUSY && (bt.sec || bt.frac)) + cv_timedwaitbt(&res->condvar, \\ + &res->mutex, bt, epsilon); - if (res-\*[Gt]state == BUSY) { - mutex_exit(\*[Am]res-\*[Gt]mutex); + if (res->state == BUSY) { + mutex_exit(&res->mutex); return ETIMEDOUT; } @@ -283,16 +283,16 @@ Consuming a resource: * It's now available to us. Take ownership of the * resource, and consume it. */ - res-\*[Gt]state = BUSY; - mutex_exit(\*[Am]res-\*[Gt]mutex); + res->state = BUSY; + mutex_exit(&res->mutex); consume(res); Releasing a resource for the next consumer to use: - mutex_enter(\*[Am]res-\*[Gt]mutex); - res-\*[Gt]state = IDLE; - cv_signal(\*[Am]res-\*[Gt]condvar); - mutex_exit(\*[Am]res-\*[Gt]mutex); + mutex_enter(&res->mutex); + res->state = IDLE; + cv_signal(&res->condvar); + mutex_exit(&res->mutex); .Ed .Sh CODE REFERENCES The core of the CV implementation is in Index: src/share/man/man9/ras.9 diff -u src/share/man/man9/ras.9:1.15 src/share/man/man9/ras.9:1.16 --- src/share/man/man9/ras.9:1.15 Thu Dec 2 12:54:13 2010 +++ src/share/man/man9/ras.9 Mon Jul 3 21:28:48 2017 @@ -1,4 +1,4 @@ -.\" $NetBSD: ras.9,v 1.15 2010/12/02 12:54:13 wiz Exp $ +.\" $NetBSD: ras.9,v 1.16 2017/07/03 21:28:48 wiz Exp $ .\" .\" Copyright (c) 2002 The NetBSD Foundation, Inc. .\" All rights reserved. @@ -121,7 +121,7 @@ in Machine-dependent portions are implemented within .Xr cpu_switchto 9 in the machine-dependent file -.Pa sys/arch/\*[Lt]arch\*[Gt]/\*[Lt]arch\*[Gt]/locore.S . +.Pa sys/arch/<arch>/<arch>/locore.S . .Sh SEE ALSO .Xr rasctl 2 , .Xr cpu_switchto 9 , Index: src/share/man/man9/config.9 diff -u src/share/man/man9/config.9:1.29 src/share/man/man9/config.9:1.30 --- src/share/man/man9/config.9:1.29 Thu Dec 2 12:54:13 2010 +++ src/share/man/man9/config.9 Mon Jul 3 21:28:48 2017 @@ -1,4 +1,4 @@ -.\" $NetBSD: config.9,v 1.29 2010/12/02 12:54:13 wiz Exp $ +.\" $NetBSD: config.9,v 1.30 2017/07/03 21:28:48 wiz Exp $ .\" .\" Copyright (c) 2001 The NetBSD Foundation, Inc. .\" All rights reserved. @@ -114,16 +114,16 @@ kernel. The device definition files are separated into machine-dependent and machine-independent files. The machine-dependent file is located in -.Pa sys/arch/\*[Lt]arch\*[Gt]/conf/files.\*[Lt]arch\*[Gt] , -where \*[Lt]arch\*[Gt] is the name of +.Pa sys/arch/<arch>/conf/files.<arch> , +where <arch> is the name of .Nx architecture. The machine-independent file is located in .Pa sys/conf/files . It in turn includes files for the machine-independent drivers located in -.Pa sys/dev/\*[Lt]bus\*[Gt]/files.\*[Lt]bus\*[Gt] , -where \*[Lt]bus\*[Gt] is the name of the machine-independent bus. +.Pa sys/dev/<bus>/files.<bus> , +where <bus> is the name of the machine-independent bus. .Pp These files define all legal devices and pseudo-devices. They also define all attributes and interfaces, establishing the rules that @@ -321,9 +321,9 @@ but the software interface requires them .Sh CODE REFERENCES The device definition files are in .Pa sys/conf/files , -.Pa sys/arch/\*[Lt]arch\*[Gt]/conf/files.\*[Lt]arch\*[Gt] , +.Pa sys/arch/<arch>/conf/files.<arch> , and -.Pa sys/dev/\*[Lt]bus\*[Gt]/files.\*[Lt]bus\*[Gt] . +.Pa sys/dev/<bus>/files.<bus> . .Pp The grammar for machine description files can be found in .Xr config 1 , Index: src/share/man/man9/driver.9 diff -u src/share/man/man9/driver.9:1.29 src/share/man/man9/driver.9:1.30 --- src/share/man/man9/driver.9:1.29 Sun Apr 30 12:32:40 2017 +++ src/share/man/man9/driver.9 Mon Jul 3 21:28:48 2017 @@ -1,4 +1,4 @@ -.\" $NetBSD: driver.9,v 1.29 2017/04/30 12:32:40 pgoyette Exp $ +.\" $NetBSD: driver.9,v 1.30 2017/07/03 21:28:48 wiz Exp $ .\" .\" Copyright (c) 2001 The NetBSD Foundation, Inc. .\" All rights reserved. @@ -325,7 +325,7 @@ I guess it was mine, but I wasn't expect For a driver to be compiled into the kernel, .Xr config 1 must be aware of its existence. -This is done by including an entry in files.\*[Lt]bus\*[Gt] in the +This is done by including an entry in files.<bus> in the directory containing the driver. For example, the driver .Dq foo @@ -348,7 +348,7 @@ foo* at bar? For device interfaces of a driver to be compiled into the kernel, .Xr config 1 must be aware of its existence. -This is done by including an entry in majors.\*[Lt]arch\*[Gt]. +This is done by including an entry in majors.<arch>. For example, the driver .Dq foo with character device interfaces, a character major device number Index: src/share/man/man9/fileassoc.9 diff -u src/share/man/man9/fileassoc.9:1.29 src/share/man/man9/fileassoc.9:1.30 --- src/share/man/man9/fileassoc.9:1.29 Thu Dec 1 01:06:12 2016 +++ src/share/man/man9/fileassoc.9 Mon Jul 3 21:28:48 2017 @@ -1,4 +1,4 @@ -.\" $NetBSD: fileassoc.9,v 1.29 2016/12/01 01:06:12 pgoyette Exp $ +.\" $NetBSD: fileassoc.9,v 1.30 2017/07/03 21:28:48 wiz Exp $ .\" .\" Copyright (c) 2006 Elad Efrat <e...@netbsd.org> .\" All rights reserved. @@ -240,7 +240,7 @@ and/or file: fileassoc_t myhook_id; int error; -error = fileassoc_register("my_hook", myhook_cleanup, \*[Am]myhook_id); +error = fileassoc_register("my_hook", myhook_cleanup, &myhook_id); if (error != 0) ...handle error... .Ed Index: src/share/man/man9/cons.9 diff -u src/share/man/man9/cons.9:1.18 src/share/man/man9/cons.9:1.19 --- src/share/man/man9/cons.9:1.18 Tue Jun 8 19:28:56 2010 +++ src/share/man/man9/cons.9 Mon Jul 3 21:28:48 2017 @@ -1,4 +1,4 @@ -.\" $NetBSD: cons.9,v 1.18 2010/06/08 19:28:56 jruoho Exp $ +.\" $NetBSD: cons.9,v 1.19 2017/07/03 21:28:48 wiz Exp $ .\" .\" Copyright (c) 2001 The NetBSD Foundation, Inc. .\" All rights reserved. @@ -104,8 +104,8 @@ Number of read characters is .Fa size at maximum, user is notified by console bell when the end of input buffer is reached. -\*[Lt]Backspace\*[Gt] key works as expected. -\*[Lt]@\*[Gt] or \*[Lt]CTRL\*[Gt]-u make +<Backspace> key works as expected. +<@> or <CTRL>-u make .Fn cngetsn discard input read so far, print newline and wait for next input. @@ -135,7 +135,7 @@ Commonly, kernel code uses rather than using this low-level interface. .El .Sh EXAMPLES -This waits until a \*[Lt]Enter\*[Gt] key is pressed: +This waits until a <Enter> key is pressed: .Pp .Bd -literal -offset indent int c; Index: src/share/man/man9/disk.9 diff -u src/share/man/man9/disk.9:1.45 src/share/man/man9/disk.9:1.46 --- src/share/man/man9/disk.9:1.45 Sun Mar 5 23:15:35 2017 +++ src/share/man/man9/disk.9 Mon Jul 3 21:28:48 2017 @@ -1,4 +1,4 @@ -.\" $NetBSD: disk.9,v 1.45 2017/03/05 23:15:35 wiz Exp $ +.\" $NetBSD: disk.9,v 1.46 2017/07/03 21:28:48 wiz Exp $ .\" .\" Copyright (c) 1995, 1996 Jason R. Thorpe. .\" All rights reserved. @@ -366,13 +366,13 @@ fooattach(device_t parent, device_t self [ . . . ] /* Initialize and attach the disk structure. */ - disk_init(\*[Am]sc-\*[Gt]sc_dk, device_xname(self), \*[Am]foodkdriver); - disk_attach(\*[Am]sc-\*[Gt]sc_dk); + disk_init(&sc->sc_dk, device_xname(self), &foodkdriver); + disk_attach(&sc->sc_dk); /* Read geometry and fill in pertinent parts of disklabel. */ /* Initialize geometry values of the disk structure */ [ . . . ] - disk_set_info(\*[Am]self\*[Gt], \*[Am]sc-\*[Gt]sc_dk, type); + disk_set_info(&self>, &sc->sc_dk, type); } .Ed .Pp @@ -442,12 +442,12 @@ foostrategy(struct buf *bp) { [ . . . ] - mutex_enter(\*[Am]sc-\*[Gt]sc_dk_mtx); - disk_wait(\*[Am]sc-\*[Gt]sc_dk); + mutex_enter(&sc->sc_dk_mtx); + disk_wait(&sc->sc_dk); /* Put buffer onto drive's transfer queue */ - mutex_exit(\*[Am]sc-\*[Gt]sc_dk_mtx); + mutex_exit(&sc->sc_dk_mtx); foostart(sc); } @@ -464,9 +464,9 @@ foostart(struct foo_softc *sc) [ . . . ] /* Tell the disk framework we're going busy. */ - mutex_enter(\*[Am]sc-\*[Gt]sc_dk_mtx); - disk_busy(\*[Am]sc-\*[Gt]sc_dk); - mutex_exit(\*[Am]sc-\*[Gt]sc_dk_mtx); + mutex_enter(&sc->sc_dk_mtx); + disk_busy(&sc->sc_dk); + mutex_exit(&sc->sc_dk_mtx); /* Send command to the drive. */ [ . . . ] @@ -493,8 +493,8 @@ void foodone(xfer) struct foo_xfer *xfer; { - struct foo_softc = (struct foo_softc *)xfer-\*[Gt]xf_softc; - struct buf *bp = xfer-\*[Gt]xf_buf; + struct foo_softc = (struct foo_softc *)xfer->xf_softc; + struct buf *bp = xfer->xf_buf; long nbytes; [ . . . ] @@ -506,15 +506,15 @@ foodone(xfer) if (bp == NULL) nbytes = 0; else - nbytes = bp-\*[Gt]b_bcount - bp-\*[Gt]b_resid; + nbytes = bp->b_bcount - bp->b_resid; [ . . . ] - mutex_enter(\*[Am]sc-\*[Gt]sc_dk_mtx); + mutex_enter(&sc->sc_dk_mtx); /* Notify the disk framework that we've completed the transfer. */ - disk_unbusy(\*[Am]sc-\*[Gt]sc_dk, nbytes, - bp != NULL ? bp-\*[Gt]b_flags \*[Am] B_READ : 0); - mutex_exit(\*[Am]sc-\*[Gt]sc_dk_mtx); + disk_unbusy(&sc->sc_dk, nbytes, + bp != NULL ? bp->b_flags & B_READ : 0); + mutex_exit(&sc->sc_dk_mtx); [ . . . ] } Index: src/share/man/man9/pci.9 diff -u src/share/man/man9/pci.9:1.45 src/share/man/man9/pci.9:1.46 --- src/share/man/man9/pci.9:1.45 Tue Jul 12 09:50:36 2016 +++ src/share/man/man9/pci.9 Mon Jul 3 21:28:48 2017 @@ -1,4 +1,4 @@ -.\" $NetBSD: pci.9,v 1.45 2016/07/12 09:50:36 wiz Exp $ +.\" $NetBSD: pci.9,v 1.46 2017/07/03 21:28:48 wiz Exp $ .\" .\" Copyright (c) 2001, 2003 The NetBSD Foundation, Inc. .\" All rights reserved. @@ -843,7 +843,7 @@ The PCI subsystem itself is implemented and .Pa sys/dev/pci/pciconf.c . Machine-dependent portions are implemented within the file -.Pa sys/arch/\*[Lt]arch\*[Gt]/pci/pci_machdep.c . +.Pa sys/arch/<arch>/pci/pci_machdep.c . .Pp The database of known devices exists within the file .Pa sys/dev/pci/pcidevs_data.h Index: src/share/man/man9/sysmon_envsys.9 diff -u src/share/man/man9/sysmon_envsys.9:1.45 src/share/man/man9/sysmon_envsys.9:1.46 --- src/share/man/man9/sysmon_envsys.9:1.45 Wed Mar 29 08:09:51 2017 +++ src/share/man/man9/sysmon_envsys.9 Mon Jul 3 21:28:48 2017 @@ -1,4 +1,4 @@ -.\" $NetBSD: sysmon_envsys.9,v 1.45 2017/03/29 08:09:51 abhinav Exp $ +.\" $NetBSD: sysmon_envsys.9,v 1.46 2017/07/03 21:28:48 wiz Exp $ .\" .\" Copyright (c) 2007, 2008 The NetBSD Foundation, Inc. .\" All rights reserved. @@ -193,7 +193,7 @@ This can be used to set the state and ot sensor depending on the data returned by the driver. .Em NOTE : .Em You don't have to refresh all sensors, only the sensor specified by the -.Sy edata-\*[Gt]sensor +.Sy edata->sensor .Em index . If this member is not specified, the device driver will be totally responsible for all updates of this sensor; the @@ -644,33 +644,33 @@ mydriver_initialize_sensors(struct mysof { ... /* sensor is initialized with a valid state */ - sc-\*[Gt]sc_sensor[0].state = ENVSYS_SVALID; + sc->sc_sensor[0].state = ENVSYS_SVALID; /* * the monitor member must be true to enable * automatic monitoring. */ - sc-\*[Gt]sc_sensor[0].monitor = true; + sc->sc_sensor[0].monitor = true; /* and now we specify the type of the monitoring event */ - sc-\*[Gt]sc_sensor[0].flags |= ENVSYS_FMONCRITICAL; + sc->sc_sensor[0].flags |= ENVSYS_FMONCRITICAL; ... } int mydriver_refresh(struct sysmon_envsys *sme, envsys_data_t *edata) { - struct mysoftc *sc = sme-\*[Gt]sme_cookie; + struct mysoftc *sc = sme->sme_cookie; /* we get current data from the driver */ - edata-\*[Gt]value_cur = sc-\*[Gt]sc_getdata(); + edata->value_cur = sc->sc_getdata(); /* * if value is too high, mark the sensor in * critical state. */ - if (edata-\*[Gt]value_cur \*[Gt] MYDRIVER_SENSOR0_HIWAT) { - edata-\*[Gt]state = ENVSYS_SCRITICAL; + if (edata->value_cur > MYDRIVER_SENSOR0_HIWAT) { + edata->state = ENVSYS_SCRITICAL; /* a critical event will be sent now automatically */ } else { /* @@ -678,7 +678,7 @@ mydriver_refresh(struct sysmon_envsys *s * a critical state make sure to change sensor's state * to valid. */ - edata-\*[Gt]state = ENVSYS_SVALID; + edata->state = ENVSYS_SVALID; } ... } Index: src/share/man/man9/evcnt.9 diff -u src/share/man/man9/evcnt.9:1.21 src/share/man/man9/evcnt.9:1.22 --- src/share/man/man9/evcnt.9:1.21 Fri Jan 14 18:34:44 2011 +++ src/share/man/man9/evcnt.9 Mon Jul 3 21:28:48 2017 @@ -1,4 +1,4 @@ -.\" $NetBSD: evcnt.9,v 1.21 2011/01/14 18:34:44 dyoung Exp $ +.\" $NetBSD: evcnt.9,v 1.22 2017/07/03 21:28:48 wiz Exp $ .\" .\" Copyright (c) 2000 Christopher G. Demetriou .\" All rights reserved. @@ -247,12 +247,12 @@ fooattach(device_t parent, device_t self [ . . . ] /* Initialize and attach event counters. */ - evcnt_attach_dynamic(\*[Am]sc-\*[Gt]sc_ev, EVCNT_TYPE_INTR, + evcnt_attach_dynamic(&sc->sc_ev, EVCNT_TYPE_INTR, NULL, device_xname(self), "intr"); - evcnt_attach_dynamic(\*[Am]sc-\*[Gt]sc_ev_rd, EVCNT_TYPE_INTR, - \*[Am]sc-\*[Gt]sc_ev, device_xname(self), "intr rd"); - evcnt_attach_dynamic(\*[Am]sc-\*[Gt]sc_ev_wr, EVCNT_TYPE_INTR, - \*[Am]sc-\*[Gt]sc_ev, device_xname(self), "intr wr"); + evcnt_attach_dynamic(&sc->sc_ev_rd, EVCNT_TYPE_INTR, + &sc->sc_ev, device_xname(self), "intr rd"); + evcnt_attach_dynamic(&sc->sc_ev_wr, EVCNT_TYPE_INTR, + &sc->sc_ev, device_xname(self), "intr wr"); [ . . . ] } @@ -274,7 +274,7 @@ event counter (in this example, one used .Pp To attach this event counter, code like the following could be used: .Bd -literal - evcnt_attach_static(\*[Am]aligntrap_ev); + evcnt_attach_static(&aligntrap_ev); .Ed .Sh CODE REFERENCES The event counter framework itself is implemented within the file Index: src/share/man/man9/secmodel.9 diff -u src/share/man/man9/secmodel.9:1.21 src/share/man/man9/secmodel.9:1.22 --- src/share/man/man9/secmodel.9:1.21 Sat Mar 18 19:01:01 2017 +++ src/share/man/man9/secmodel.9 Mon Jul 3 21:28:48 2017 @@ -1,4 +1,4 @@ -.\" $NetBSD: secmodel.9,v 1.21 2017/03/18 19:01:01 riastradh Exp $ +.\" $NetBSD: secmodel.9,v 1.22 2017/07/03 21:28:48 wiz Exp $ .\" .\" Copyright (c) 2006 Elad Efrat <e...@netbsd.org> .\" All rights reserved. @@ -42,7 +42,7 @@ .Ft int .Fn secmodel_eval "const char *id" "const char *what" "void *arg" "void *ret" .Ft static int -.Fn secmodel_\*[Lt]model\*[Gt]_eval "const char *what" "void *arg" \ +.Fn secmodel_<model>_eval "const char *what" "void *arg" \ "void *ret" .Sh DESCRIPTION .Nx @@ -106,14 +106,14 @@ that declares the behavior of this secur .Do copy credentials on fork . Dc .It Fa sm_eval (optional) the -.Fn secmodel_\*[Lt]model\*[Gt]_eval +.Fn secmodel_<model>_eval callback used by a .Nm to register an evaluation routine that can be queried later by another security model. .It Fa sm_setinfo (optional) the -.Fn secmodel_\*[Lt]model\*[Gt]_setinfo +.Fn secmodel_<model>_setinfo callback used by a .Nm to register a routine that permits other security models to @@ -193,7 +193,7 @@ It is composed of (code-wise) the follow routines, especially a .Fn MODULE declaration and a -.Fn secmodel_\*[Lt]model\*[Gt]_modcmd +.Fn secmodel_<model>_modcmd function used to start .Po through Dv MODULE_CMD_INIT Pc and stop @@ -202,12 +202,12 @@ the .Nm . .It Entry routines, named -.Fn secmodel_\*[Lt]model\*[Gt]_init +.Fn secmodel_<model>_init and -.Fn secmodel_\*[Lt]model\*[Gt]_start , +.Fn secmodel_<model>_start , used to initialize and start the security model, and another function called -.Fn secmodel_\*[Lt]model\*[Gt]_stop , +.Fn secmodel_<model>_stop , to stop the security model in case the module is to be unloaded. .It A @@ -215,7 +215,7 @@ A setup routine for the model. This should create an entry for the model in the .Xr sysctl 7 -namespace, under the "security.models.\*[Lt]model\*[Gt]" hierarchy. +namespace, under the "security.models.<model>" hierarchy. .Pp All "knobs" for the model should be located under the new node, as well as a mandatory @@ -235,7 +235,7 @@ the credentials scope, is required. .It Optionally, internal data-structures used by the model. -These must all be prefixed with "secmodel_\*[Lt]model\*[Gt]_". +These must all be prefixed with "secmodel_<model>_". .It A set of listeners, attached to various scopes, used to enforce the policy the model intends to implement. @@ -276,7 +276,7 @@ secmodel_jenna_network_cb(kauth_cred_t c * indicate a "reserved" user-id, allow the * request. */ - if (kauth_cred_geteuid(cred) \*[Lt] 1000) + if (kauth_cred_geteuid(cred) < 1000) result = KAUTH_RESULT_ALLOW; } break; @@ -353,7 +353,7 @@ the fall-back security model. .Pp Here is example code that implements the above: .Bd -literal -#include \*[Lt]secmodel/bsd44/bsd44.h\*[Gt] +#include <secmodel/bsd44/bsd44.h> /* * Internal fall-back scope for the network scope. @@ -398,7 +398,7 @@ secmodel_jenna_network_cb(kauth_cred_t c * ports. */ if ((u_long)arg0 == KAUTH_REQ_NETWORK_BIND_PRIVPORT) { - if (kauth_cred_geteuid(cred) \*[Lt] 1000) + if (kauth_cred_geteuid(cred) < 1000) result = KAUTH_RESULT_ALLOW; } break; @@ -436,7 +436,7 @@ secmodel_jenna_network_cb(kauth_cred_t c * ports. */ if ((u_long)arg0 == KAUTH_REQ_NETWORK_BIND_PRIVPORT) { - if (kauth_cred_geteuid(cred) \*[Lt] 1000) + if (kauth_cred_geteuid(cred) < 1000) result = KAUTH_RESULT_ALLOW; } break; Index: src/share/man/man9/extent.9 diff -u src/share/man/man9/extent.9:1.33 src/share/man/man9/extent.9:1.34 --- src/share/man/man9/extent.9:1.33 Thu Apr 6 10:42:14 2017 +++ src/share/man/man9/extent.9 Mon Jul 3 21:28:48 2017 @@ -1,4 +1,4 @@ -.\" $NetBSD: extent.9,v 1.33 2017/04/06 10:42:14 abhinav Exp $ +.\" $NetBSD: extent.9,v 1.34 2017/07/03 21:28:48 wiz Exp $ .\" .\" Copyright (c) 1996, 1998 The NetBSD Foundation, Inc. .\" All rights reserved. @@ -343,7 +343,7 @@ func() * 128k, and 192k) within the extent. */ error = extent_alloc(foo_ex, 0x2000, 0x1000, 0x10000, - EX_NOWAIT, \*[Am]region_start); + EX_NOWAIT, ®ion_start); if (error) panic("you lose"); Index: src/share/man/man9/fstrans.9 diff -u src/share/man/man9/fstrans.9:1.25 src/share/man/man9/fstrans.9:1.26 --- src/share/man/man9/fstrans.9:1.25 Sun Jun 4 08:05:41 2017 +++ src/share/man/man9/fstrans.9 Mon Jul 3 21:28:48 2017 @@ -1,4 +1,4 @@ -.\" $NetBSD: fstrans.9,v 1.25 2017/06/04 08:05:41 hannken Exp $ +.\" $NetBSD: fstrans.9,v 1.26 2017/07/03 21:28:48 wiz Exp $ .\" .\" Copyright (c) 2007 The NetBSD Foundation, Inc. .\" All rights reserved. @@ -261,7 +261,7 @@ int xxx_create(void *v) { struct vop_create_args *ap = v; - struct mount *mp = ap-\*[Gt]a_dvp-\*[Gt]v_mount; + struct mount *mp = ap->a_dvp->v_mount; int error; fstrans_start(mp); Index: src/share/man/man9/ieee80211_radiotap.9 diff -u src/share/man/man9/ieee80211_radiotap.9:1.16 src/share/man/man9/ieee80211_radiotap.9:1.17 --- src/share/man/man9/ieee80211_radiotap.9:1.16 Tue Feb 21 19:53:49 2017 +++ src/share/man/man9/ieee80211_radiotap.9 Mon Jul 3 21:28:48 2017 @@ -1,4 +1,4 @@ -.\" $NetBSD: ieee80211_radiotap.9,v 1.16 2017/02/21 19:53:49 dyoung Exp $ +.\" $NetBSD: ieee80211_radiotap.9,v 1.17 2017/07/03 21:28:48 wiz Exp $ .\" .\" Copyright (c) 2004 Bruce M. Simpson <b...@spc.org>, .\" Darron Broad <dar...@kewl.org>. @@ -244,11 +244,11 @@ struct an_rx_radiotap_header { Bitmap indicating which fields are present in the above structure: .Bd -literal -offset indent #define AN_RX_RADIOTAP_PRESENT \e - ((1 \*[Gt]\*[Gt] IEEE80211_RADIOTAP_FLAGS) | \e - (1 \*[Gt]\*[Gt] IEEE80211_RADIOTAP_RATE) | \e - (1 \*[Gt]\*[Gt] IEEE80211_RADIOTAP_CHANNEL) | \e - (1 \*[Gt]\*[Gt] IEEE80211_RADIOTAP_DBM_ANTSIGNAL) | \e - (1 \*[Gt]\*[Gt] IEEE80211_RADIOTAP_DBM_ANTNOISE)) + ((1 >> IEEE80211_RADIOTAP_FLAGS) | \e + (1 >> IEEE80211_RADIOTAP_RATE) | \e + (1 >> IEEE80211_RADIOTAP_CHANNEL) | \e + (1 >> IEEE80211_RADIOTAP_DBM_ANTSIGNAL) | \e + (1 >> IEEE80211_RADIOTAP_DBM_ANTNOISE)) .Ed .Sh SEE ALSO .Xr bpf 4 , Index: src/share/man/man9/opencrypto.9 diff -u src/share/man/man9/opencrypto.9:1.16 src/share/man/man9/opencrypto.9:1.17 --- src/share/man/man9/opencrypto.9:1.16 Fri May 26 08:09:08 2017 +++ src/share/man/man9/opencrypto.9 Mon Jul 3 21:28:48 2017 @@ -1,5 +1,5 @@ .\" $OpenBSD: crypto.9,v 1.25 2003/07/11 13:47:41 jmc Exp $ -.\" $NetBSD: opencrypto.9,v 1.16 2017/05/26 08:09:08 wiz Exp $ +.\" $NetBSD: opencrypto.9,v 1.17 2017/07/03 21:28:48 wiz Exp $ .\" .\" The author of this man page is Angelos D. Keromytis (ange...@cis.upenn.edu) .\" @@ -483,12 +483,12 @@ do asymmetric crypto requests. .It kern.cryptodevallowsoft Enable/disable access to hardware versus software operations: .Bl -tag -width xxx -.It \*[Lt] 0 +.It < 0 Force userlevel requests to use software operations, always. .It = 0 Use hardware if present, grant userlevel requests for non-accelerated operations (handling the latter in software). -.It \*[Gt] 0 +.It > 0 Allow user requests only for operations which are hardware-accelerated. .El .It opencrypto.crypto_ret_q.maxlen Index: src/share/man/man9/pci_configure_bus.9 diff -u src/share/man/man9/pci_configure_bus.9:1.16 src/share/man/man9/pci_configure_bus.9:1.17 --- src/share/man/man9/pci_configure_bus.9:1.16 Sat Jul 14 05:32:17 2012 +++ src/share/man/man9/pci_configure_bus.9 Mon Jul 3 21:28:48 2017 @@ -1,4 +1,4 @@ -.\" $NetBSD: pci_configure_bus.9,v 1.16 2012/07/14 05:32:17 rkujawa Exp $ +.\" $NetBSD: pci_configure_bus.9,v 1.17 2017/07/03 21:28:48 wiz Exp $ .\" .\" Copyright 2001 Wasabi Systems, Inc. .\" All rights reserved. @@ -219,14 +219,14 @@ pci_conf_hook(pci_chipset_tag_t pc, int pcireg_t id) { - if ((PCI_VENDOR(id) == PCI_VENDOR_IBM \*[Am]\*[Am] + if ((PCI_VENDOR(id) == PCI_VENDOR_IBM && PCI_PRODUCT(id) == PCI_PRODUCT_IBM_405GP) || - (PCI_VENDOR(id) == PCI_VENDOR_INTEL \*[Am]\*[Am] + (PCI_VENDOR(id) == PCI_VENDOR_INTEL && PCI_PRODUCT(id) == PCI_PRODUCT_INTEL_80960_RP)) { /* Don't configure the bridge and PCI probe. */ return 0; } - return (PCI_CONF_ALL \*[Am] ~PCI_CONF_MAP_ROM); + return (PCI_CONF_ALL & ~PCI_CONF_MAP_ROM); } .Ed .Pp @@ -242,7 +242,7 @@ pci_conf_interrupt(pci_chipset_tag_t pc, if (bus == 0) { *iline = dev; } else { - *iline = 13 + ((swiz + dev + 3) \*[Am] 3); + *iline = 13 + ((swiz + dev + 3) & 3); } } .Ed Index: src/share/man/man9/rasops.9 diff -u src/share/man/man9/rasops.9:1.16 src/share/man/man9/rasops.9:1.17 --- src/share/man/man9/rasops.9:1.16 Fri Jan 13 23:12:32 2012 +++ src/share/man/man9/rasops.9 Mon Jul 3 21:28:48 2017 @@ -1,4 +1,4 @@ -.\" $NetBSD: rasops.9,v 1.16 2012/01/13 23:12:32 wiz Exp $ +.\" $NetBSD: rasops.9,v 1.17 2017/07/03 21:28:48 wiz Exp $ .\" .\" Copyright (c) 2001 The NetBSD Foundation, Inc. .\" All rights reserved. @@ -109,7 +109,7 @@ struct rasops_info { u_char *ri_origbits; /* where screen bits actually start */ int ri_xorigin; /* where ri_bits begins (x) */ int ri_yorigin; /* where ri_bits begins (y) */ - int32_t ri_devcmap[16]; /* color -\*[Gt] framebuffer data */ + int32_t ri_devcmap[16]; /* color -> framebuffer data */ /* * The emulops you need to use, and the screen caps for wscons Index: src/share/man/man9/vmem.9 diff -u src/share/man/man9/vmem.9:1.16 src/share/man/man9/vmem.9:1.17 --- src/share/man/man9/vmem.9:1.16 Mon Feb 29 00:34:17 2016 +++ src/share/man/man9/vmem.9 Mon Jul 3 21:28:48 2017 @@ -1,4 +1,4 @@ -.\" $NetBSD: vmem.9,v 1.16 2016/02/29 00:34:17 chs Exp $ +.\" $NetBSD: vmem.9,v 1.17 2017/07/03 21:28:48 wiz Exp $ .\" .\" Copyright (c)2006 YAMAMOTO Takashi, .\" All rights reserved. @@ -113,7 +113,7 @@ calls .Fa arg .Fa size .Fa flags -.Fa "\*[Am]addrp" +.Fa "&addrp" .Fc to import a span of size at least .Fa size . @@ -214,9 +214,9 @@ calls .Fo "(*allocfn)" .Fa arg .Fa size -.Fa "\*[Am]actualsize" +.Fa "&actualsize" .Fa flags -.Fa "\*[Am]addrp" +.Fa "&addrp" .Fc to import a span of size at least .Fa size . Index: src/share/man/man9/ioasic.9 diff -u src/share/man/man9/ioasic.9:1.12 src/share/man/man9/ioasic.9:1.13 --- src/share/man/man9/ioasic.9:1.12 Fri Jul 1 17:34:44 2011 +++ src/share/man/man9/ioasic.9 Mon Jul 3 21:28:48 2017 @@ -1,4 +1,4 @@ -.\" $NetBSD: ioasic.9,v 1.12 2011/07/01 17:34:44 dyoung Exp $ +.\" $NetBSD: ioasic.9,v 1.13 2017/07/03 21:28:48 wiz Exp $ .\" .\" Copyright (c) 2000 The NetBSD Foundation, Inc. .\" All rights reserved. @@ -205,7 +205,7 @@ the second DMA block, otherwise a DMA ov The IOASIC subsystem itself is implemented within the file .Pa sys/dev/tc/ioasic_subr.c . Machine-dependent portions can be found in -.Pa sys/arch/\*[Lt]arch\*[Gt]/tc/ioasic.c . +.Pa sys/arch/<arch>/tc/ioasic.c . .Sh SEE ALSO .Xr ioasic 4 , .Xr autoconf 9 , Index: src/share/man/man9/pserialize.9 diff -u src/share/man/man9/pserialize.9:1.12 src/share/man/man9/pserialize.9:1.13 --- src/share/man/man9/pserialize.9:1.12 Tue Jan 26 01:09:56 2016 +++ src/share/man/man9/pserialize.9 Mon Jul 3 21:28:48 2017 @@ -1,4 +1,4 @@ -.\" $NetBSD: pserialize.9,v 1.12 2016/01/26 01:09:56 riastradh Exp $ +.\" $NetBSD: pserialize.9,v 1.13 2017/07/03 21:28:48 wiz Exp $ .\" .\" Copyright (c) 2011 The NetBSD Foundation, Inc. .\" All rights reserved. @@ -90,12 +90,12 @@ Given a global database of frotz records .Pp Create a frotz and publish it, as a writer: .Bd -literal - struct frotz *f = pool_get(\*[Am]frotz_pool, PR_WAITOK); + struct frotz *f = pool_get(&frotz_pool, PR_WAITOK); /* Initialize f. */ ... - mutex_enter(\*[Am]frobbotzim.lock); + mutex_enter(&frobbotzim.lock); f->f_next = frobbotzim.first; /* * Publish the contents of f->f_next before we publish the @@ -103,7 +103,7 @@ Create a frotz and publish it, as a writ */ membar_producer(); frobbotzim.first = f; - mutex_exit(\*[Am]frobbotzim.lock); + mutex_exit(&frobbotzim.lock); .Ed .Pp Find a frotz, as a reader: @@ -139,8 +139,8 @@ readers: .Bd -literal struct frotz **fp, *f; - mutex_enter(\*[Am]frobbotzim.lock); - for (fp = \*[Am]frobbotzim.first; (f = *fp) != NULL; fp = &f->f_next) { + mutex_enter(&frobbotzim.lock); + for (fp = &frobbotzim.first; (f = *fp) != NULL; fp = &f->f_next) { if (f->f_... == key) { /* * Unhook it from the list. Readers may still @@ -158,10 +158,10 @@ readers: */ pserialize_perform(frobbotzim.psz); /* Now nobody else can be touching f, so it is safe to free. */ - mutex_exit(\*[Am]frobbotzim.lock); + mutex_exit(&frobbotzim.lock); if (f != NULL) - pool_put(\*[Am]frotz_pool, f); + pool_put(&frotz_pool, f); .Ed .\" ----- .Sh CODE REFERENCES Index: src/share/man/man9/tc.9 diff -u src/share/man/man9/tc.9:1.12 src/share/man/man9/tc.9:1.13 --- src/share/man/man9/tc.9:1.12 Fri Jul 1 17:34:44 2011 +++ src/share/man/man9/tc.9 Mon Jul 3 21:28:48 2017 @@ -1,4 +1,4 @@ -.\" $NetBSD: tc.9,v 1.12 2011/07/01 17:34:44 dyoung Exp $ +.\" $NetBSD: tc.9,v 1.13 2017/07/03 21:28:48 wiz Exp $ .\" .\" Copyright (c) 2001 The NetBSD Foundation, Inc. .\" All rights reserved. @@ -173,7 +173,7 @@ interface. The TURBOchannel subsystem itself is implemented within the file .Pa sys/dev/tc/tc_subr.c . Machine-dependent portions can be found in -.Pa sys/arch/\*[Lt]arch\*[Gt]/tc/tcbus.c . +.Pa sys/arch/<arch>/tc/tcbus.c . .Sh SEE ALSO .Xr tc 4 , .Xr autoconf 9 , Index: src/share/man/man9/ioctl.9 diff -u src/share/man/man9/ioctl.9:1.31 src/share/man/man9/ioctl.9:1.32 --- src/share/man/man9/ioctl.9:1.31 Wed Mar 6 22:07:54 2013 +++ src/share/man/man9/ioctl.9 Mon Jul 3 21:28:48 2017 @@ -1,4 +1,4 @@ -.\" $NetBSD: ioctl.9,v 1.31 2013/03/06 22:07:54 wiz Exp $ +.\" $NetBSD: ioctl.9,v 1.32 2017/07/03 21:28:48 wiz Exp $ .\" .\" Copyright (c) 1999 The NetBSD Foundation, Inc. .\" All rights reserved. @@ -296,7 +296,7 @@ notification to the application. #define FOOIOCTL _IOWR('i', 23, int) int a = 3; -error = ioctl(s, FOOICTL, \*[Am]a); +error = ioctl(s, FOOICTL, &a); .Ed .Pp Within the Index: src/share/man/man9/kauth.9 diff -u src/share/man/man9/kauth.9:1.107 src/share/man/man9/kauth.9:1.108 --- src/share/man/man9/kauth.9:1.107 Sat Mar 18 19:01:01 2017 +++ src/share/man/man9/kauth.9 Mon Jul 3 21:28:48 2017 @@ -1,4 +1,4 @@ -.\" $NetBSD: kauth.9,v 1.107 2017/03/18 19:01:01 riastradh Exp $ +.\" $NetBSD: kauth.9,v 1.108 2017/07/03 21:28:48 wiz Exp $ .\" .\" Copyright (c) 2005, 2006 Elad Efrat <e...@netbsd.org> .\" All rights reserved. @@ -1152,8 +1152,8 @@ Keep in mind that it is the responsibili check whether the underlying device is a disk or the system memory, using .Fn iskmemdev : .Bd -literal -offset indent -if ((vp-\*[Gt]v_type == VCHR) \*[Am]\*[Am] - iskmemdev(vp-\*[Gt]v_un.vu_specinfo-\*[Gt]si_rdev)) +if ((vp->v_type == VCHR) && + iskmemdev(vp->v_un.vu_specinfo->si_rdev)) /* system memory access */ .Ed .Pp @@ -1979,7 +1979,7 @@ wrapper. Older code had no abstraction of the security model, so most privilege checks looked like this: .Bd -literal -offset indent -if (suser(cred, \*[Am]acflag) == 0) +if (suser(cred, &acflag) == 0) /* allow privileged operation */ .Ed .Pp Index: src/share/man/man9/kmem.9 diff -u src/share/man/man9/kmem.9:1.20 src/share/man/man9/kmem.9:1.21 --- src/share/man/man9/kmem.9:1.20 Mon Feb 29 00:34:17 2016 +++ src/share/man/man9/kmem.9 Mon Jul 3 21:28:48 2017 @@ -1,4 +1,4 @@ -.\" $NetBSD: kmem.9,v 1.20 2016/02/29 00:34:17 chs Exp $ +.\" $NetBSD: kmem.9,v 1.21 2017/07/03 21:28:48 wiz Exp $ .\" .\" Copyright (c)2006 YAMAMOTO Takashi, .\" All rights reserved. @@ -286,8 +286,8 @@ option, which causes the debugger to be boot process. Issue commands such as the following: .Bd -literal -db\*[Gt] w kmem_guard_depth 0t30000 -db\*[Gt] c +db> w kmem_guard_depth 0t30000 +db> c .Ed .Pp This instructs Index: src/share/man/man9/malloc.9 diff -u src/share/man/man9/malloc.9:1.53 src/share/man/man9/malloc.9:1.54 --- src/share/man/man9/malloc.9:1.53 Fri Aug 7 13:56:48 2015 +++ src/share/man/man9/malloc.9 Mon Jul 3 21:28:48 2017 @@ -1,4 +1,4 @@ -.\" $NetBSD: malloc.9,v 1.53 2015/08/07 13:56:48 maxv Exp $ +.\" $NetBSD: malloc.9,v 1.54 2017/07/03 21:28:48 wiz Exp $ .\" .\" Copyright (c) 1996, 2003 The NetBSD Foundation, Inc. .\" All rights reserved. @@ -205,12 +205,12 @@ code which needs to use the malloc type, extern declaration. .Pp Code which includes -\*[Lt]sys/malloc.h\*[Gt] +<sys/malloc.h> does not need to include -\*[Lt]sys/mallocvar.h\*[Gt] +<sys/mallocvar.h> to get these macro definitions. The -\*[Lt]sys/mallocvar.h\*[Gt] +<sys/mallocvar.h> header file is intended for other header files which need to use the .Fn MALLOC_DECLARE macro. Index: src/share/man/man9/mca.9 diff -u src/share/man/man9/mca.9:1.11 src/share/man/man9/mca.9:1.12 --- src/share/man/man9/mca.9:1.11 Fri Mar 15 19:32:31 2013 +++ src/share/man/man9/mca.9 Mon Jul 3 21:28:48 2017 @@ -1,4 +1,4 @@ -.\" $NetBSD: mca.9,v 1.11 2013/03/15 19:32:31 njoly Exp $ +.\" $NetBSD: mca.9,v 1.12 2017/07/03 21:28:48 wiz Exp $ .\" .\" Copyright (c) 2001 The NetBSD Foundation, Inc. .\" All rights reserved. @@ -164,7 +164,7 @@ Currently, no machine-independent suppor The MCA subsystem itself is implemented within the file .Pa sys/dev/mca/mca_subr.c . Machine-dependent portions can be found in -.Pa sys/arch/\*[Lt]arch\*[Gt]/mca/mca_machdep.c . +.Pa sys/arch/<arch>/mca/mca_machdep.c . The database of known devices exists within the file .Pa sys/dev/mca/mcadevs_data.h and is generated automatically from the file Index: src/share/man/man9/ratecheck.9 diff -u src/share/man/man9/ratecheck.9:1.11 src/share/man/man9/ratecheck.9:1.12 --- src/share/man/man9/ratecheck.9:1.11 Wed Apr 30 13:10:58 2008 +++ src/share/man/man9/ratecheck.9 Mon Jul 3 21:28:48 2017 @@ -1,4 +1,4 @@ -.\" $NetBSD: ratecheck.9,v 1.11 2008/04/30 13:10:58 martin Exp $ +.\" $NetBSD: ratecheck.9,v 1.12 2017/07/03 21:28:48 wiz Exp $ .\" .\" Copyright (c) 2000 The NetBSD Foundation, Inc. .\" All rights reserved. @@ -105,8 +105,8 @@ drv_errhandler(int err1, int err2) ... drv_err1count++; - if (ratecheck(\*[Am]drv_lasterr1notice, - \*[Am]drv_errinterval)) { + if (ratecheck(&drv_lasterr1notice, + &drv_errinterval)) { printf("drv: %ld err1 errors occurred", drv_err1count); drv_err1count = 0; @@ -117,8 +117,8 @@ drv_errhandler(int err1, int err2) ... drv_err2count++; - if (ratecheck(\*[Am]drv_lasterr2notice, - \*[Am]drv_errinterval)) { + if (ratecheck(&drv_lasterr2notice, + &drv_errinterval)) { printf("drv: %ld err2 errors occurred", drv_err2count); drv_err2count = 0; Index: src/share/man/man9/mi_switch.9 diff -u src/share/man/man9/mi_switch.9:1.3 src/share/man/man9/mi_switch.9:1.4 --- src/share/man/man9/mi_switch.9:1.3 Mon May 4 19:48:15 2009 +++ src/share/man/man9/mi_switch.9 Mon Jul 3 21:28:48 2017 @@ -1,4 +1,4 @@ -.\" $NetBSD: mi_switch.9,v 1.3 2009/05/04 19:48:15 wiz Exp $ +.\" $NetBSD: mi_switch.9,v 1.4 2017/07/03 21:28:48 wiz Exp $ .\" .\" Copyright (c) 1996, 2002 The NetBSD Foundation, Inc. .\" All rights reserved. @@ -77,7 +77,7 @@ cause a .Dv SIGKILL . .Pp Unless -.Fa l-\*[Gt]l_switchto +.Fa l->l_switchto is not .Dv NULL , .Fn mi_switch Index: src/share/man/man9/mutex.9 diff -u src/share/man/man9/mutex.9:1.28 src/share/man/man9/mutex.9:1.29 --- src/share/man/man9/mutex.9:1.28 Tue May 2 08:20:20 2017 +++ src/share/man/man9/mutex.9 Mon Jul 3 21:28:48 2017 @@ -1,4 +1,4 @@ -.\" $NetBSD: mutex.9,v 1.28 2017/05/02 08:20:20 wiz Exp $ +.\" $NetBSD: mutex.9,v 1.29 2017/07/03 21:28:48 wiz Exp $ .\" .\" Copyright (c) 2007, 2009 The NetBSD Foundation, Inc. .\" All rights reserved. @@ -206,7 +206,7 @@ Otherwise, return zero. is provided for making diagnostic checks to verify that a lock is held. For example: .Bd -literal - KASSERT(mutex_owned(\*[Am]driver_lock)); + KASSERT(mutex_owned(&driver_lock)); .Ed .Pp It should not be used to make locking decisions at run time. @@ -244,13 +244,13 @@ must be acquired before the following can be used to optimistically lock in reverse order: .Bd -literal /* We hold second_lock, but not first_lock. */ - KASSERT(mutex_owned(\*[Am]second_lock)); + KASSERT(mutex_owned(&second_lock)); - if (!mutex_tryenter(\*[Am]first_lock)) { + if (!mutex_tryenter(&first_lock)) { /* Failed to get it - lock in the correct order. */ - mutex_exit(\*[Am]second_lock); - mutex_enter(\*[Am]first_lock); - mutex_enter(\*[Am]second_lock); + mutex_exit(&second_lock); + mutex_enter(&first_lock); + mutex_enter(&second_lock); /* * We may need to recheck any conditions the code Index: src/share/man/man9/namei.9 diff -u src/share/man/man9/namei.9:1.49 src/share/man/man9/namei.9:1.50 --- src/share/man/man9/namei.9:1.49 Wed May 3 17:28:42 2017 +++ src/share/man/man9/namei.9 Mon Jul 3 21:28:48 2017 @@ -1,4 +1,4 @@ -.\" $NetBSD: namei.9,v 1.49 2017/05/03 17:28:42 abhinav Exp $ +.\" $NetBSD: namei.9,v 1.50 2017/07/03 21:28:48 wiz Exp $ .\" .\" Copyright (c) 2001, 2005, 2006, 2017 The NetBSD Foundation, Inc. .\" All rights reserved. @@ -560,7 +560,7 @@ sets the credentials using .Xr kauth_cred_get 9 . In the rare case that another set of credentials is required for the namei operation, -.Em ndp-\*[Gt]ni_cnd.cn_cred +.Em ndp->ni_cnd.cn_cred must be set manually after .Fn NDINIT . .It Fn NDAT "ndp" "dvp" @@ -586,9 +586,9 @@ Direct initialization of members of stru supported and may (will) break silently in the future. .Pp The vnode for the pathname is returned in -.Em ndp-\*[Gt]ni_vp . +.Em ndp->ni_vp . The parent directory is returned locked in -.Em ndp-\*[Gt]ni_dvp +.Em ndp->ni_dvp iff .Dv LOCKPARENT is specified. Index: src/share/man/man9/ppi.9 diff -u src/share/man/man9/ppi.9:1.4 src/share/man/man9/ppi.9:1.5 --- src/share/man/man9/ppi.9:1.4 Mon Dec 26 19:48:12 2005 +++ src/share/man/man9/ppi.9 Mon Jul 3 21:28:48 2017 @@ -1,4 +1,4 @@ -.\" $NetBSD: ppi.9,v 1.4 2005/12/26 19:48:12 perry Exp $ +.\" $NetBSD: ppi.9,v 1.5 2017/07/03 21:28:48 wiz Exp $ .\" .\" Copyright (c) 1997 .\" Michael Smith @@ -79,12 +79,12 @@ then high again, the following code frag uint8_t val; val = 0x5a; - ioctl(fd, PPISDATA, \*[Am]val); - ioctl(fd, PPIGCTRL, \*[Am]val); + ioctl(fd, PPISDATA, &val); + ioctl(fd, PPIGCTRL, &val); val |= STROBE; - ioctl(fd, PPISCTRL, \*[Am]val); - val \*[Am]= ~STROBE; - ioctl(fd, PPISCTRL, \*[Am]val); + ioctl(fd, PPISCTRL, &val); + val &= ~STROBE; + ioctl(fd, PPISCTRL, &val); .Ed .Sh SEE ALSO Index: src/share/man/man9/pslist.9 diff -u src/share/man/man9/pslist.9:1.17 src/share/man/man9/pslist.9:1.18 --- src/share/man/man9/pslist.9:1.17 Thu Jul 7 06:56:24 2016 +++ src/share/man/man9/pslist.9 Mon Jul 3 21:28:48 2017 @@ -1,4 +1,4 @@ -.\" $NetBSD: pslist.9,v 1.17 2016/07/07 06:56:24 ozaki-r Exp $ +.\" $NetBSD: pslist.9,v 1.18 2017/07/03 21:28:48 wiz Exp $ .\" .\" Copyright (c) 2016 The NetBSD Foundation, Inc. .\" All rights reserved. @@ -350,10 +350,10 @@ Example frotz structure and global state .Pp Initialize the global state: .Bd -literal - mutex_init(\*[Am]frobnitzem.lock, MUTEX_DEFAULT, IPL_NONE); + mutex_init(&frobnitzem.lock, MUTEX_DEFAULT, IPL_NONE); frobnitzem.psz = pserialize_create(); - PSLIST_INIT(\*[Am]frobnitzem.list); - pool_init(\*[Am]frobnitzem.pool, sizeof(struct frotz), ...); + PSLIST_INIT(&frobnitzem.list); + pool_init(&frobnitzem.pool, sizeof(struct frotz), ...); .Ed .Pp Create and publish a frotz: @@ -361,7 +361,7 @@ Create and publish a frotz: uint64_t key = ...; uint64_t datum = ...; - struct frotz *f = pool_get(\*[Am]frobnitzem.pool, PR_WAITOK); + struct frotz *f = pool_get(&frobnitzem.pool, PR_WAITOK); /* Initialize f. */ f->f_key = key; @@ -369,9 +369,9 @@ Create and publish a frotz: PSLIST_ENTRY_INIT(f, f_entry); /* Publish it. */ - mutex_enter(\*[Am]frobnitzem.lock); - PSLIST_WRITER_INSERT_HEAD(\*[Am]frobnitzem.list, f, f_entry); - mutex_exit(\*[Am]frobnitzem.lock); + mutex_enter(&frobnitzem.lock); + PSLIST_WRITER_INSERT_HEAD(&frobnitzem.list, f, f_entry); + mutex_exit(&frobnitzem.lock); .Ed .Pp Look up a frotz and return its associated datum: @@ -382,7 +382,7 @@ Look up a frotz and return its associate int s; s = pserialize_read_enter(); - PSLIST_READER_FOREACH(f, \*[Am]frobnitzem.list, struct frotz, f_entry) { + PSLIST_READER_FOREACH(f, &frobnitzem.list, struct frotz, f_entry) { if (f->f_key == key) { *datump = f->f_datum; error = 0; @@ -398,13 +398,13 @@ the memory allocated for it: .Bd -literal struct frotz *f = ...; - mutex_enter(\*[Am]frobnitzem.lock); + mutex_enter(&frobnitzem.lock); PSLIST_WRITER_REMOVE(f, f_entry); - pserialize_perform(\*[Am]frobnitzem.psz); - mutex_exit(\*[Am]frobnitzem.lock); + pserialize_perform(&frobnitzem.psz); + mutex_exit(&frobnitzem.lock); PSLIST_ENTRY_DESTROY(f, f_entry); - pool_put(\*[Am]frobnitzem.pool, f); + pool_put(&frobnitzem.pool, f); .Ed .\""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" .Sh CODE REFERENCES Index: src/share/man/man9/uiomove.9 diff -u src/share/man/man9/uiomove.9:1.17 src/share/man/man9/uiomove.9:1.18 --- src/share/man/man9/uiomove.9:1.17 Mon Apr 26 07:51:36 2010 +++ src/share/man/man9/uiomove.9 Mon Jul 3 21:28:48 2017 @@ -1,4 +1,4 @@ -.\" $NetBSD: uiomove.9,v 1.17 2010/04/26 07:51:36 jruoho Exp $ +.\" $NetBSD: uiomove.9,v 1.18 2017/07/03 21:28:48 wiz Exp $ .\" .\" Copyright (c) 1996 The NetBSD Foundation, Inc. .\" All rights reserved. @@ -114,7 +114,7 @@ A pointer to the address space which is .El .Pp The value of -.Va uio-\*[Gt]uio_rw +.Va uio->uio_rw controls whether .Fn uiomove copies data from @@ -126,16 +126,16 @@ or vice versa. The lesser of .Fa n or -.Va uio-\*[Gt]uio_resid +.Va uio->uio_resid bytes are copied. .Pp .Fn uiomove changes fields of the structure pointed to by .Fa uio , such that -.Va uio-\*[Gt]uio_resid +.Va uio->uio_resid is decremented by the amount of data moved, -.Va uio-\*[Gt]uio_offset +.Va uio->uio_offset is incremented by the same amount, and the array of iovecs is adjusted to point that much farther into the region described. This allows multiple calls to Index: src/share/man/man9/rssadapt.9 diff -u src/share/man/man9/rssadapt.9:1.9 src/share/man/man9/rssadapt.9:1.10 --- src/share/man/man9/rssadapt.9:1.9 Tue Mar 18 18:20:40 2014 +++ src/share/man/man9/rssadapt.9 Mon Jul 3 21:28:48 2017 @@ -1,4 +1,4 @@ -.\" $NetBSD: rssadapt.9,v 1.9 2014/03/18 18:20:40 riastradh Exp $ +.\" $NetBSD: rssadapt.9,v 1.10 2017/07/03 21:28:48 wiz Exp $ .\" .\" Copyright (c) 2004 David Young. All rights reserved. .\" @@ -99,7 +99,7 @@ state object belonging to the node which However, if the destination is a broadcast/multicast address, then .Fa ra belongs to the BSS node, -.Va ic-\*[Gt]ic_bss . +.Va ic->ic_bss . .It Fa rs A list of eligible data rates for the node; for example, the rates negotiated when the node associated with the network. @@ -287,7 +287,7 @@ is the exponential-average RSS at the ti transmitted. .Fa id_rateidx is an index into the destination-neighbor's rate-set, -.Fa id_node-\*[Gt]ni_rates , +.Fa id_node->ni_rates , indicating the transmit data rate for the packet. .Pp An Index: src/share/man/man9/scsipi.9 diff -u src/share/man/man9/scsipi.9:1.30 src/share/man/man9/scsipi.9:1.31 --- src/share/man/man9/scsipi.9:1.30 Sun Nov 20 16:59:11 2016 +++ src/share/man/man9/scsipi.9 Mon Jul 3 21:28:48 2017 @@ -1,4 +1,4 @@ -.\" $NetBSD: scsipi.9,v 1.30 2016/11/20 16:59:11 wiz Exp $ +.\" $NetBSD: scsipi.9,v 1.31 2017/07/03 21:28:48 wiz Exp $ .\" .\" .\" Copyright (c) 2001 Manuel Bouyer. @@ -410,7 +410,7 @@ Disable the adapter if .Va enable is zero, or enable it if non-zero. Returns 0 if operation is successful, or error from -.Pa \*[Lt]sys/errno.h\*[Gt] . +.Pa <sys/errno.h> . This callback is optional, and is useful mostly for hot-plug devices. For example, this callback would power on or off the relevant PCMCIA socket for a PCMCIA controller. @@ -527,7 +527,7 @@ set. will call the .Fn adapt_request callback again only if called with -.Fa xs-\*[Gt]error +.Fa xs->error set to .Dv XS_NOERROR , and Index: src/share/man/man9/signal.9 diff -u src/share/man/man9/signal.9:1.23 src/share/man/man9/signal.9:1.24 --- src/share/man/man9/signal.9:1.23 Thu Apr 29 16:31:11 2010 +++ src/share/man/man9/signal.9 Mon Jul 3 21:28:48 2017 @@ -1,4 +1,4 @@ -.\" $NetBSD: signal.9,v 1.23 2010/04/29 16:31:11 jruoho Exp $ +.\" $NetBSD: signal.9,v 1.24 2017/07/03 21:28:48 wiz Exp $ .\" .\" Copyright (c) 1996, 2002 The NetBSD Foundation, Inc. .\" All rights reserved. @@ -228,7 +228,7 @@ which is described below. .It Fn kpgsignal "pgrp" "ks" "data" "checkctty" .Pp Schedule the signal -.Fa ks-\*[Gt]ksi_signo +.Fa ks->ksi_signo to be delivered to all members of the process group .Fa pgrp . If @@ -243,14 +243,14 @@ function below. .It Fn trapsignal "l" "ks" .Pp Sends the signal -.Fa ks-\*[Gt]ksi_signo +.Fa ks->ksi_signo caused by a hardware trap to the current process. .\" .\" XXX: Check for reality in 2010. .\" .\" This function is meant to be called by machine-dependent trap handling .\" code, through the -.\" .Dv p-\*[Gt]p_emul-\*[Gt]e_trapsignal +.\" .Dv p->p_emul->e_trapsignal .\" function pointer because some emulations define their own trapsignal .\" functions that remap the signal information to what the emulation .\" expects. @@ -262,7 +262,7 @@ which is described below. .It Fn kpsignal "p" "ks" "data" .Pp Schedule the signal -.Fa ks-\*[Gt]ksi_signo +.Fa ks->ksi_signo to be delivered to the process .Fa p . The @@ -453,7 +453,7 @@ debuggers to determine the characteristi and its arguments. Trampoline functions are named like so: .Bd -literal -offset indent -__sigtramp_\*[Lt]flavor\*[Gt]_\*[Lt]version\*[Gt] +__sigtramp_<flavor>_<version> .Ed .Pp where: Index: src/share/man/man9/sysctl.9 diff -u src/share/man/man9/sysctl.9:1.19 src/share/man/man9/sysctl.9:1.20 --- src/share/man/man9/sysctl.9:1.19 Sat Mar 18 19:01:01 2017 +++ src/share/man/man9/sysctl.9 Mon Jul 3 21:28:48 2017 @@ -1,4 +1,4 @@ -.\" $NetBSD: sysctl.9,v 1.19 2017/03/18 19:01:01 riastradh Exp $ +.\" $NetBSD: sysctl.9,v 1.20 2017/07/03 21:28:48 wiz Exp $ .\" .\" Copyright (c) 2004 The NetBSD Foundation, Inc. .\" All rights reserved. @@ -505,18 +505,18 @@ sysctl_helper(SYSCTLFN_ARGS) struct sysctlnode node; int t, error; - t = *(int *)rnode-\*[Gt]sysctl_data; + t = *(int *)rnode->sysctl_data; node = *rnode; - node.sysctl_data = \*[Am]t; - error = sysctl_lookup(SYSCTLFN_CALL(\*[Am]node)); + node.sysctl_data = &t; + error = sysctl_lookup(SYSCTLFN_CALL(&node)); if (error || newp == NULL) return (error); - if (t \*[Lt] 0 || t \*[Gt] 20) + if (t < 0 || t > 20) return (EINVAL); - *(int *)rnode-\*[Gt]sysctl_data = t; + *(int *)rnode->sysctl_data = t; return (0); } .Ed Index: src/share/man/man9/uvm.9 diff -u src/share/man/man9/uvm.9:1.113 src/share/man/man9/uvm.9:1.114 --- src/share/man/man9/uvm.9:1.113 Sat Mar 18 19:01:01 2017 +++ src/share/man/man9/uvm.9 Mon Jul 3 21:28:48 2017 @@ -1,4 +1,4 @@ -.\" $NetBSD: uvm.9,v 1.113 2017/03/18 19:01:01 riastradh Exp $ +.\" $NetBSD: uvm.9,v 1.114 2017/07/03 21:28:48 wiz Exp $ .\" .\" Copyright (c) 1998 Matthew R. Green .\" All rights reserved. @@ -210,7 +210,7 @@ frees the physical page If the content of the page is known to be zero-filled, caller should set .Dv PG_ZERO -in pg-\*[Gt]flags so that the page allocator will use +in pg->flags so that the page allocator will use the page to serve future .Dv UVM_PGA_ZERO requests efficiently. @@ -252,7 +252,7 @@ frees the list of pages pointed to by If the content of the page is known to be zero-filled, caller should set .Dv PG_ZERO -in pg-\*[Gt]flags so that the page allocator will use +in pg->flags so that the page allocator will use the page to serve future .Dv UVM_PGA_ZERO requests efficiently. Index: src/share/man/man9/vfsops.9 diff -u src/share/man/man9/vfsops.9:1.47 src/share/man/man9/vfsops.9:1.48 --- src/share/man/man9/vfsops.9:1.47 Sun Jul 12 08:11:27 2015 +++ src/share/man/man9/vfsops.9 Mon Jul 3 21:28:48 2017 @@ -1,4 +1,4 @@ -.\" $NetBSD: vfsops.9,v 1.47 2015/07/12 08:11:27 hannken Exp $ +.\" $NetBSD: vfsops.9,v 1.48 2017/07/03 21:28:48 wiz Exp $ .\" .\" Copyright (c) 2001 The NetBSD Foundation, Inc. .\" All rights reserved. @@ -246,7 +246,7 @@ attributes of an existing file system. If the flag .Dv MNT_UPDATE is set in -.Va mp-\*[Gt]mnt_flag , +.Va mp->mnt_flag , the file system should update its state. This can be used, for instance, to convert a read-only file system to read-write. Index: src/share/man/man9/vfssubr.9 diff -u src/share/man/man9/vfssubr.9:1.27 src/share/man/man9/vfssubr.9:1.28 --- src/share/man/man9/vfssubr.9:1.27 Mon Apr 17 18:57:23 2017 +++ src/share/man/man9/vfssubr.9 Mon Jul 3 21:28:48 2017 @@ -1,4 +1,4 @@ -.\" $NetBSD: vfssubr.9,v 1.27 2017/04/17 18:57:23 wiz Exp $ +.\" $NetBSD: vfssubr.9,v 1.28 2017/07/03 21:28:48 wiz Exp $ .\" .\" Copyright (c) 2003, 2005, 2006 The NetBSD Foundation, Inc. .\" All rights reserved. @@ -115,7 +115,7 @@ Get a new unique file system id type for the mount structure .Fa mp . The file system id type is stored in -.Em mp-\*[Gt]mnt_stat.f_fsidx . +.Em mp->mnt_stat.f_fsidx . .It Fn vfs_getvfs "fsid" Lookup a mount point with the file system identifier .Fa fsid . Index: src/share/man/man9/vnode.9 diff -u src/share/man/man9/vnode.9:1.80 src/share/man/man9/vnode.9:1.81 --- src/share/man/man9/vnode.9:1.80 Sun May 28 16:39:41 2017 +++ src/share/man/man9/vnode.9 Mon Jul 3 21:28:48 2017 @@ -1,4 +1,4 @@ -.\" $NetBSD: vnode.9,v 1.80 2017/05/28 16:39:41 hannken Exp $ +.\" $NetBSD: vnode.9,v 1.81 2017/07/03 21:28:48 wiz Exp $ .\" .\" Copyright (c) 2001, 2005, 2006 The NetBSD Foundation, Inc. .\" All rights reserved. @@ -531,7 +531,7 @@ directly. Mark the vnode .Fa vp as active by incrementing -.Em vp-\*[Gt]v_holdcnt . +.Em vp->v_holdcnt . Once held, the vnode will not be recycled until it is released with .Fn holdrele . @@ -539,7 +539,7 @@ released with Mark the vnode .Fa vp as inactive by decrementing -.Em vp-\*[Gt]v_holdcnt . +.Em vp->v_holdcnt . .It Fn vcache_get "mp" "key" "key_len" "vpp" Allocate a new vnode. The new vnode is returned referenced in the address specified by @@ -698,11 +698,11 @@ to .Fa maj . .It Fn vwakeup "bp" Update outstanding I/O count -.Em vp-\*[Gt]v_numoutput +.Em vp->v_numoutput for the vnode -.Em bp-\*[Gt]b_vp +.Em bp->b_vp and do a wakeup if requested and -.Em vp-\*[Gt]vflag +.Em vp->vflag has .Dv VBWAIT set. @@ -714,9 +714,9 @@ The argument specifies whether the I/O should be synchronous and .Fn vflushbuf will sleep until -.Em vp-\*[Gt]v_numoutput +.Em vp->v_numoutput is zero and -.Em vp-\*[Gt]v_dirtyblkhd +.Em vp->v_dirtyblkhd is empty. .It Fn vinvalbuf "vp" "flags" "cred" "l" "slpflag" "slptimeo" Flush out and invalidate all buffers associated with locked vnode Index: src/share/man/man9/vnodeops.9 diff -u src/share/man/man9/vnodeops.9:1.98 src/share/man/man9/vnodeops.9:1.99 --- src/share/man/man9/vnodeops.9:1.98 Tue Apr 11 14:25:02 2017 +++ src/share/man/man9/vnodeops.9 Mon Jul 3 21:28:48 2017 @@ -1,4 +1,4 @@ -.\" $NetBSD: vnodeops.9,v 1.98 2017/04/11 14:25:02 riastradh Exp $ +.\" $NetBSD: vnodeops.9,v 1.99 2017/07/03 21:28:48 wiz Exp $ .\" .\" Copyright (c) 2001, 2005, 2006 The NetBSD Foundation, Inc. .\" All rights reserved. @@ -336,7 +336,7 @@ mask for operation .El .Pp Valid values for -.Em cn-\*[Gt]cn_flags +.Em cn->cn_flags are: .Pp .Bl -tag -offset indent -width LOCKPARENT -compact @@ -378,7 +378,7 @@ If the pathname component is found, the unlocked vnode is returned in .Fa vpp . The operation specified in -.Em cnp-\*[Gt]cn_nameiop +.Em cnp->cn_nameiop indicates .Fn VOP_LOOKUP the reason for requesting the lookup and uses it to cache @@ -440,15 +440,15 @@ when a file is being created. Normally, .Fn VOP_LOOKUP will have set the SAVENAME flag in -.Em cnp-\*[Gt]cn_flags +.Em cnp->cn_flags to keep the memory pointed to by -.Em cnp-\*[Gt]cn_pnbuf +.Em cnp->cn_pnbuf valid. If an error is detected when creating the file, this memory is released. If the file is created successfully it will be released unless the SAVESTART flags in specified in -.Em cnp-\*[Gt]cn_flags . +.Em cnp->cn_flags . .It Fn VOP_MKNOD "dvp" "vpp" "cnp" "vap" Make a new device-special file in a given directory. The argument @@ -472,15 +472,15 @@ when a device-special file is being crea Normally, .Fn VOP_LOOKUP will have set the SAVENAME flag in -.Em cnp-\*[Gt]cn_flags +.Em cnp->cn_flags to keep the memory pointed to by -.Em cnp-\*[Gt]cn_pnbuf +.Em cnp->cn_pnbuf valid. If an error is detected when creating the device-special file, this memory is released. If the device-special file is created successfully it will be released unless the SAVESTART flags in specified in -.Em cnp-\*[Gt]cn_flags . +.Em cnp->cn_flags . .It Fn VOP_OPEN "vp" "mode" "cred" Open a file. The argument @@ -552,11 +552,11 @@ The argument specifies the calling credentials. .Fn VOP_GETATTR uses the file system type specific data object -.Em vp-\*[Gt]v_data +.Em vp->v_data to reference the underlying file attributes. .\" Attributes associated with the file are collected by setting the .\" required attribute bits in -.\" .Em vap-\*[Gt]va_mask . +.\" .Em vap->va_mask . The attributes are returned in .Fa vap . Attributes which are not available are set to the value VNOVAL. @@ -581,13 +581,13 @@ The argument specifies the calling credentials. .Fn VOP_SETATTR uses the file system type specific data object -.Em vp-\*[Gt]v_data +.Em vp->v_data to reference the underlying file attributes. The new attributes are defined in .Fa vap . .\" Attributes associated with the file are set by setting the required .\" attribute bits in -.\" .Em vap-\*[Gt]va_mask . +.\" .Em vap->va_mask . Attributes which are not being modified by .Fn VOP_SETATTR should be set to the value VNOVAL. @@ -941,15 +941,15 @@ when a directory is being created. Normally, .Fn VOP_LOOKUP will have set the SAVENAME flag in -.Em cnp-\*[Gt]cn_flags +.Em cnp->cn_flags to keep the memory pointed to by -.Em cnp-\*[Gt]cn_pnbuf +.Em cnp->cn_pnbuf valid. If an error is detected when creating the directory, this memory is released. If the directory is created successfully it will be released unless the SAVESTART flags in specified in -.Em cnp-\*[Gt]cn_flags . +.Em cnp->cn_flags . .It Fn VOP_RMDIR "dvp" "vp" "cnp" Remove a directory in a given directory. The argument @@ -991,15 +991,15 @@ when a symbolic link is being created. Normally, .Fn VOP_LOOKUP will have set the SAVENAME flag in -.Em cnp-\*[Gt]cn_flags +.Em cnp->cn_flags to keep the memory pointed to by -.Em cnp-\*[Gt]cn_pnbuf +.Em cnp->cn_pnbuf valid. If an error is detected when creating the symbolic link, this memory is released. If the symbolic link is created successfully it will be released unless the SAVESTART flags in specified in -.Em cnp-\*[Gt]cn_flags . +.Em cnp->cn_flags . .It Fn VOP_READDIR "vp" "uio" "cred" "eofflag" "cookies" "ncookies" Read directory entry. The argument @@ -1035,7 +1035,7 @@ should be if they aren't required to be returned by .Fn VOP_READDIR . The directory contents are read into struct dirent structures and -.Fa uio-\*[Gt]uio_offset +.Fa uio->uio_offset is set to the offset of the next unread directory entry. This offset may be used in a following invocation to continue a sequential read of the directory contents. @@ -1275,7 +1275,7 @@ is a description of the lock. In the case of .Dv SEEK_CUR , The caller should add the current file offset to -fl-\*[Gt]l_start beforehand. +fl->l_start beforehand. .Fn VOP_ADVLOCK treats .Dv SEEK_CUR @@ -1380,7 +1380,7 @@ The argument is the buffer to be read or written. .Fn VOP_STRATEGY will either read or write data to the file depending on the value of -.Em bp-\*[Gt]b_flags . +.Em bp->b_flags . If the operation is successful zero is returned, otherwise an appropriate error code is returned. .It Fn VOP_BWRITE "vp" "bp"