Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/share/man Generate <>& symbolically. I'm avoiding .../dist/....
details: https://anonhg.NetBSD.org/src/rev/8b261a28759b
branches: trunk
changeset: 522234:8b261a28759b
user: ross <ross%NetBSD.org@localhost>
date: Wed Feb 13 08:17:26 2002 +0000
description:
Generate <>& symbolically. I'm avoiding .../dist/... directories for now.
diffstat:
share/man/man1/cd.1 | 4 +-
share/man/man1/man1.x68k/bellctrl.1 | 4 +-
share/man/man1/wait.1 | 4 +-
share/man/man3/_DIAGASSERT.3 | 4 +-
share/man/man3/assert.3 | 4 +-
share/man/man3/bitstring.3 | 8 +-
share/man/man3/dlfcn.3 | 4 +-
share/man/man3/queue.3 | 102 ++++++++++++------------
share/man/man3/stdarg.3 | 4 +-
share/man/man4/agp.4 | 42 +++++-----
share/man/man4/ahc.4 | 6 +-
share/man/man4/ai.4 | 8 +-
share/man/man4/atalk.4 | 6 +-
share/man/man4/audio.4 | 8 +-
share/man/man4/bpf.4 | 118 +++++++++++++++---------------
share/man/man4/clnp.4 | 8 +-
share/man/man4/cltp.4 | 6 +-
share/man/man4/cmpci.4 | 36 ++++----
share/man/man4/ddb.4 | 50 ++++++------
share/man/man4/ec.4 | 6 +-
share/man/man4/edc.4 | 4 +-
share/man/man4/envsys.4 | 6 +-
share/man/man4/esis.4 | 6 +-
share/man/man4/gre.4 | 8 +-
share/man/man4/i4btel.4 | 14 +-
share/man/man4/icmp.4 | 6 +-
share/man/man4/icmp6.4 | 8 +-
share/man/man4/idp.4 | 8 +-
share/man/man4/ifmedia.4 | 8 +-
share/man/man4/inet.4 | 6 +-
share/man/man4/inet6.4 | 6 +-
share/man/man4/intersil7170.4 | 4 +-
share/man/man4/iop.4 | 4 +-
share/man/man4/ip.4 | 38 ++++----
share/man/man4/ip6.4 | 40 +++++-----
share/man/man4/ipip.4 | 6 +-
share/man/man4/ipsec.4 | 8 +-
share/man/man4/irframe.4 | 4 +-
share/man/man4/irframetty.4 | 4 +-
share/man/man4/isa.4 | 4 +-
share/man/man4/isic.4 | 12 +-
share/man/man4/iso.4 | 6 +-
share/man/man4/man4.alpha/ttwoga.4 | 4 +-
share/man/man4/man4.alpha/ttwopci.4 | 4 +-
share/man/man4/man4.amiga/mfcs.4 | 6 +-
share/man/man4/man4.arm26/podulebus.4 | 20 ++--
share/man/man4/man4.atari/rtc.4 | 4 +-
share/man/man4/man4.hp300/dcl.4 | 6 +-
share/man/man4/man4.hp300/dvbox.4 | 6 +-
share/man/man4/man4.hp300/gbox.4 | 6 +-
share/man/man4/man4.hp300/grf.4 | 10 +-
share/man/man4/man4.hp300/rbox.4 | 6 +-
share/man/man4/man4.hp300/rmp.4 | 10 +-
share/man/man4/man4.hp300/topcat.4 | 6 +-
share/man/man4/man4.i386/apm.4 | 4 +-
share/man/man4/man4.i386/busmouse.4 | 4 +-
share/man/man4/man4.i386/intro.4 | 4 +-
share/man/man4/man4.i386/pcibios.4 | 4 +-
share/man/man4/man4.mac68k/adb.4 | 4 +-
share/man/man4/man4.pc532/lpt.4 | 4 +-
share/man/man4/man4.pc532/plip.4 | 4 +-
share/man/man4/man4.pmax/fb.4 | 22 ++--
share/man/man4/man4.sparc/intro.4 | 6 +-
share/man/man4/man4.sparc/magma.4 | 10 +-
share/man/man4/man4.sparc/openprom.4 | 4 +-
share/man/man4/man4.sun2/leds.4 | 6 +-
share/man/man4/man4.sun3/leds.4 | 6 +-
share/man/man4/man4.vax/ad.4 | 6 +-
share/man/man4/man4.vax/cons.4 | 8 +-
share/man/man4/man4.vax/dl.4 | 4 +-
share/man/man4/man4.vax/dn.4 | 4 +-
share/man/man4/man4.vax/hy.4 | 6 +-
share/man/man4/man4.vax/ix.4 | 4 +-
share/man/man4/man4.vax/rx.4 | 4 +-
share/man/man4/man4.x68k/pow.4 | 26 +++---
share/man/man4/midi.4 | 8 +-
share/man/man4/mk48txx.4 | 4 +-
share/man/man4/mtio.4 | 8 +-
share/man/man4/netintro.4 | 10 +-
share/man/man4/nsip.4 | 4 +-
share/man/man4/options.4 | 10 +-
share/man/man4/radio.4 | 28 +++---
share/man/man4/rnd.4 | 4 +-
share/man/man4/route.4 | 10 +-
share/man/man4/sc.4 | 4 +-
share/man/man4/se.4 | 6 +-
share/man/man4/si.4 | 6 +-
share/man/man4/speaker.4 | 24 +++---
share/man/man4/spp.4 | 8 +-
share/man/man4/strip.4 | 4 +-
share/man/man4/tb.4 | 6 +-
share/man/man4/tcp.4 | 6 +-
share/man/man4/termios.4 | 16 ++--
share/man/man4/tp.4 | 10 +-
share/man/man4/tty.4 | 4 +-
share/man/man4/udp.4 | 6 +-
share/man/man4/ugen.4 | 6 +-
share/man/man4/unix.4 | 8 +-
share/man/man4/usb.4 | 8 +-
share/man/man4/userconf.4 | 8 +-
share/man/man4/we.4 | 8 +-
share/man/man4/ym.4 | 18 ++--
share/man/man5/a.out.5 | 6 +-
share/man/man5/acct.5 | 4 +-
share/man/man5/ar.5 | 8 +-
share/man/man5/core.5 | 10 +-
share/man/man5/dir.5 | 10 +-
share/man/man5/disktab.5 | 4 +-
share/man/man5/elf.5 | 4 +-
share/man/man5/fs.5 | 8 +-
share/man/man5/fstab.5 | 4 +-
share/man/man5/genassym.cf.5 | 12 +-
share/man/man5/ld.so.conf.5 | 4 +-
share/man/man5/link.5 | 6 +-
share/man/man5/mk.conf.5 | 6 +-
share/man/man5/nsswitch.conf.5 | 20 ++--
share/man/man5/passwd.5 | 6 +-
share/man/man5/passwd.conf.5 | 4 +-
share/man/man5/ranlib.5 | 6 +-
share/man/man5/stab.5 | 6 +-
share/man/man5/types.5 | 28 +++---
share/man/man5/utmp.5 | 4 +-
share/man/man5/wscons.conf.5 | 8 +-
share/man/man7/ascii.7 | 14 +-
share/man/man7/environ.7 | 4 +-
share/man/man7/hier.7 | 4 +-
share/man/man7/mdoc.7 | 8 +-
share/man/man7/operator.7 | 14 +-
share/man/man7/packages.7 | 4 +-
share/man/man7/release.7 | 48 ++++++------
share/man/man8/compat_freebsd.8 | 28 +++---
share/man/man8/compat_linux.8 | 38 ++++----
share/man/man8/compat_sunos.8 | 4 +-
share/man/man8/compat_svr4.8 | 16 ++--
share/man/man8/compat_ultrix.8 | 4 +-
share/man/man8/diskless.8 | 6 +-
share/man/man8/man8.alpha/installboot.8 | 4 +-
share/man/man8/man8.alpha/mkbootimage.8 | 4 +-
share/man/man8/man8.amiga/installboot.8 | 4 +-
share/man/man8/man8.arm26/boot26.8 | 20 ++--
share/man/man8/man8.atari/ahdilabel.8 | 10 +-
share/man/man8/man8.hp300/crash.8 | 6 +-
share/man/man8/man8.i386/boot.8 | 8 +-
share/man/man8/man8.i386/w95boot.8 | 8 +-
share/man/man8/man8.macppc/ofwboot.8 | 34 ++++----
share/man/man8/man8.mvme68k/boot.8 | 4 +-
share/man/man8/man8.pmax/installboot.8 | 4 +-
share/man/man8/man8.sparc/boot.8 | 8 +-
share/man/man8/man8.sun3/boot.8 | 4 +-
share/man/man8/man8.vax/MAKEDEV.8 | 8 +-
share/man/man8/man8.vax/boot.8 | 10 +-
share/man/man8/man8.vax/drtest.8 | 4 +-
share/man/man8/man8.vax/format.8 | 32 ++++----
share/man/man8/man8.vax/installboot.8 | 4 +-
share/man/man8/man8.x68k/poffd.8 | 4 +-
share/man/man8/man8.x68k/rtcalarm.8 | 4 +-
share/man/man8/rc.8 | 4 +-
share/man/man9/altq.9 | 88 +++++++++++-----------
share/man/man9/arp.9 | 4 +-
share/man/man9/autoconf.9 | 8 +-
share/man/man9/bcmp.9 | 4 +-
share/man/man9/bcopy.9 | 4 +-
share/man/man9/bitmask_snprintf.9 | 10 +-
share/man/man9/bus_dma.9 | 36 ++++----
share/man/man9/bus_space.9 | 4 +-
share/man/man9/bzero.9 | 4 +-
share/man/man9/callout.9 | 4 +-
share/man/man9/cardbus.9 | 8 +-
share/man/man9/cnmagic.9 | 8 +-
share/man/man9/config.9 | 14 +-
share/man/man9/cons.9 | 10 +-
share/man/man9/copy.9 | 6 +-
share/man/man9/cpu_reboot.9 | 4 +-
share/man/man9/disk.9 | 26 +++---
share/man/man9/driver.9 | 10 +-
share/man/man9/ethersubr.9 | 6 +-
share/man/man9/evcnt.9 | 20 ++--
share/man/man9/extent.9 | 14 +-
share/man/man9/fetch.9 | 6 +-
share/man/man9/fork1.9 | 6 +-
share/man/man9/hash.9 | 6 +-
share/man/man9/hz.9 | 4 +-
share/man/man9/ioasic.9 | 12 +-
share/man/man9/ioctl.9 | 12 +-
share/man/man9/isa.9 | 12 +-
share/man/man9/isapnp.9 | 14 +-
share/man/man9/itimerfix.9 | 6 +-
share/man/man9/kprintf.9 | 6 +-
share/man/man9/kthread.9 | 4 +-
share/man/man9/linedisc.9 | 6 +-
share/man/man9/lock.9 | 6 +-
share/man/man9/log.9 | 4 +-
share/man/man9/malloc.9 | 4 +-
share/man/man9/man9.i386/bios32_service.9 | 4 +-
share/man/man9/man9.i386/bioscall.9 | 10 +-
share/man/man9/man9.sun3/isr_add.9 | 4 +-
share/man/man9/mbuf.9 | 6 +-
share/man/man9/mca.9 | 10 +-
share/man/man9/memcmp.9 | 4 +-
share/man/man9/memcpy.9 | 4 +-
share/man/man9/memmove.9 | 4 +-
share/man/man9/memset.9 | 4 +-
share/man/man9/microtime.9 | 4 +-
share/man/man9/namecache.9 | 22 ++--
share/man/man9/namei.9 | 42 +++++-----
share/man/man9/panic.9 | 6 +-
share/man/man9/pci.9 | 12 +-
share/man/man9/pci_configure_bus.9 | 6 +-
share/man/man9/pci_intr.9 | 4 +-
share/man/man9/pcmcia.9 | 10 +-
share/man/man9/pfil.9 | 12 +-
share/man/man9/pmap.9 | 26 +++---
share/man/man9/pool.9 | 4 +-
share/man/man9/ppsratecheck.9 | 4 +-
share/man/man9/properties.9 | 4 +-
share/man/man9/rasops.9 | 10 +-
share/man/man9/ratecheck.9 | 12 +-
share/man/man9/rnd.9 | 6 +-
share/man/man9/rt_timer.9 | 4 +-
share/man/man9/scsipi.9 | 12 +-
share/man/man9/setrunqueue.9 | 4 +-
share/man/man9/sleep.9 | 6 +-
share/man/man9/softintr.9 | 6 +-
share/man/man9/spl.9 | 4 +-
share/man/man9/store.9 | 6 +-
share/man/man9/tc.9 | 10 +-
share/man/man9/todr.9 | 4 +-
share/man/man9/uiomove.9 | 12 +-
share/man/man9/usbdi.9 | 6 +-
share/man/man9/uvm.9 | 14 +-
share/man/man9/vattr.9 | 6 +-
share/man/man9/vfsops.9 | 14 +-
share/man/man9/vme.9 | 8 +-
share/man/man9/vnode.9 | 26 +++---
share/man/man9/vnodeops.9 | 66 ++++++++--------
share/man/man9/vnsubr.9 | 8 +-
share/man/man9/wdc.9 | 6 +-
share/man/man9/wsdisplay.9 | 10 +-
share/man/man9/wsfont.9 | 6 +-
share/man/man9/wskbd.9 | 10 +-
share/man/man9/wsmouse.9 | 6 +-
241 files changed, 1276 insertions(+), 1276 deletions(-)
diffs (truncated from 8308 to 300 lines):
diff -r b4be98a27ce7 -r 8b261a28759b share/man/man1/cd.1
--- a/share/man/man1/cd.1 Wed Feb 13 08:05:12 2002 +0000
+++ b/share/man/man1/cd.1 Wed Feb 13 08:17:26 2002 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: cd.1,v 1.3 1999/03/15 08:22:21 garbled Exp $
+.\" $NetBSD: cd.1,v 1.4 2002/02/13 08:17:26 ross Exp $
.\"
.\" Copyright (c) 1980, 1990, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -85,7 +85,7 @@
.Pp
The
.Nm cd
-utility exits 0 on success, and >0 if an error occurs.
+utility exits 0 on success, and \*[Gt]0 if an error occurs.
.Sh SEE ALSO
.Xr csh 1 ,
.Xr pwd 1 ,
diff -r b4be98a27ce7 -r 8b261a28759b share/man/man1/man1.x68k/bellctrl.1
--- a/share/man/man1/man1.x68k/bellctrl.1 Wed Feb 13 08:05:12 2002 +0000
+++ b/share/man/man1/man1.x68k/bellctrl.1 Wed Feb 13 08:17:26 2002 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: bellctrl.1,v 1.10 2001/09/11 00:10:16 wiz Exp $
+.\" $NetBSD: bellctrl.1,v 1.11 2002/02/13 08:17:27 ross Exp $
.\"
.\" Copyright (c) 1995 Takuya Harakawa.
.\" All rights reserved.
@@ -75,4 +75,4 @@
.El
.Sh AUTHORS
.Nm
-was written by Takuya Harakawa <ussy%int.titech.ac.jp@localhost>.
+was written by Takuya Harakawa \*[Lt]ussy%int.titech.ac.jp@localhost\*[Gt].
diff -r b4be98a27ce7 -r 8b261a28759b share/man/man1/wait.1
--- a/share/man/man1/wait.1 Wed Feb 13 08:05:12 2002 +0000
+++ b/share/man/man1/wait.1 Wed Feb 13 08:17:26 2002 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: wait.1,v 1.2 1994/11/30 08:35:03 jtc Exp $
+.\" $NetBSD: wait.1,v 1.3 2002/02/13 08:17:26 ross Exp $
.\"
.\" Copyright (c) 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -80,7 +80,7 @@
all of the existing background child processes have
terminated, or the process specified by the pid
operand exited normally with 0 as its exit status.
-.It \&>\&0
+.It \&\*[Gt]\&0
The specified process did not exist and its exit
status information was not available, or the specified
process existed or its exit status information
diff -r b4be98a27ce7 -r 8b261a28759b share/man/man3/_DIAGASSERT.3
--- a/share/man/man3/_DIAGASSERT.3 Wed Feb 13 08:05:12 2002 +0000
+++ b/share/man/man3/_DIAGASSERT.3 Wed Feb 13 08:17:26 2002 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: _DIAGASSERT.3,v 1.3 2001/06/24 01:32:29 wiz Exp $
+.\" $NetBSD: _DIAGASSERT.3,v 1.4 2002/02/13 08:17:28 ross Exp $
.\"
.\" Copyright (c) 2001 The NetBSD Foundation, Inc.
.\" All rights reserved.
@@ -41,7 +41,7 @@
.Nm _DIAGASSERT
.Nd expression verification macro
.Sh SYNOPSIS
-.Fd #include <assert.h>
+.Fd #include \*[Lt]assert.h\*[Gt]
.Fn _DIAGASSERT expression
.Sh DESCRIPTION
The
diff -r b4be98a27ce7 -r 8b261a28759b share/man/man3/assert.3
--- a/share/man/man3/assert.3 Wed Feb 13 08:05:12 2002 +0000
+++ b/share/man/man3/assert.3 Wed Feb 13 08:17:26 2002 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: assert.3,v 1.6 2000/12/19 14:33:00 kleink Exp $
+.\" $NetBSD: assert.3,v 1.7 2002/02/13 08:17:28 ross Exp $
.\"
.\" Copyright (c) 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -40,7 +40,7 @@
.Nm assert
.Nd expression verification macro
.Sh SYNOPSIS
-.Fd #include <assert.h>
+.Fd #include \*[Lt]assert.h\*[Gt]
.Fn assert expression
.Sh DESCRIPTION
The
diff -r b4be98a27ce7 -r 8b261a28759b share/man/man3/bitstring.3
--- a/share/man/man3/bitstring.3 Wed Feb 13 08:05:12 2002 +0000
+++ b/share/man/man3/bitstring.3 Wed Feb 13 08:17:26 2002 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: bitstring.3,v 1.8 2001/09/11 22:46:50 wiz Exp $
+.\" $NetBSD: bitstring.3,v 1.9 2002/02/13 08:17:28 ross Exp $
.\"
.\" Copyright (c) 1989, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -50,7 +50,7 @@
.Nm bit_test
.Nd bit-string manipulation macros
.Sh SYNOPSIS
-.Fd #include <bitstring.h>
+.Fd #include \*[Lt]bitstring.h\*[Gt]
.Ft bitstr_t *
.Fn bit_alloc "int nbits"
.Fn bit_decl "bit_str name" "int nbits"
@@ -149,8 +149,8 @@
have side effects.
.Sh EXAMPLES
.Bd -literal -offset indent
-#include <limits.h>
-#include <bitstring.h>
+#include \*[Lt]limits.h\*[Gt]
+#include \*[Lt]bitstring.h\*[Gt]
...
#define LPR_BUSY_BIT 0
diff -r b4be98a27ce7 -r 8b261a28759b share/man/man3/dlfcn.3
--- a/share/man/man3/dlfcn.3 Wed Feb 13 08:05:12 2002 +0000
+++ b/share/man/man3/dlfcn.3 Wed Feb 13 08:17:26 2002 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: dlfcn.3,v 1.14 2002/01/21 18:06:23 wiz Exp $
+.\" $NetBSD: dlfcn.3,v 1.15 2002/02/13 08:17:29 ross Exp $
.\"
.\" Copyright (c) 1998 The NetBSD Foundation, Inc.
.\" All rights reserved.
@@ -48,7 +48,7 @@
(These functions are not in a library. They are included in every
dynamically linked program automatically.)
.Sh SYNOPSIS
-.Fd #include <dlfcn.h>
+.Fd #include \*[Lt]dlfcn.h\*[Gt]
.Ft "void *"
.Fn dlopen "const char *path" "int mode"
.Ft "int"
diff -r b4be98a27ce7 -r 8b261a28759b share/man/man3/queue.3
--- a/share/man/man3/queue.3 Wed Feb 13 08:05:12 2002 +0000
+++ b/share/man/man3/queue.3 Wed Feb 13 08:17:26 2002 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: queue.3,v 1.21 2002/02/07 17:15:23 wiz Exp $
+.\" $NetBSD: queue.3,v 1.22 2002/02/13 08:17:29 ross Exp $
.\"
.\" Copyright (c) 2000 The NetBSD Foundation, Inc.
.\" All rights reserved.
@@ -136,7 +136,7 @@
.Nm CIRCLEQ_PREV
.Nd "implementations of singly-linked lists, lists, simple queues, tail queues, and circular queues"
.Sh SYNOPSIS
-.Fd #include <sys/queue.h>
+.Fd #include \*[Lt]sys/queue.h\*[Gt]
.sp
.Fn LIST_ENTRY "TYPE"
.Fn LIST_FOREACH "TYPE *var" "LIST_HEAD *head" "LIST_ENTRY NAME"
@@ -455,27 +455,27 @@
...
} *n1, *n2, *n3, *np;
-SLIST_INIT(&head); /* Initialize the list. */
+SLIST_INIT(\*[Am]head); /* Initialize the list. */
n1 = malloc(sizeof(struct entry)); /* Insert at the head. */
-SLIST_INSERT_HEAD(&head, n1, entries);
+SLIST_INSERT_HEAD(\*[Am]head, n1, entries);
n2 = malloc(sizeof(struct entry)); /* Insert after. */
SLIST_INSERT_AFTER(n1, n2, entries);
-SLIST_REMOVE(&head, n2, entry, entries);/* Deletion. */
+SLIST_REMOVE(\*[Am]head, n2, entry, entries);/* Deletion. */
free(n2);
-n3 = SLIST_FIRST(&head);
-SLIST_REMOVE_HEAD(&head, entries); /* Deletion from the head. */
+n3 = SLIST_FIRST(\*[Am]head);
+SLIST_REMOVE_HEAD(\*[Am]head, entries); /* Deletion from the head. */
free(n3);
/* Forward traversal. */
-SLIST_FOREACH(np, &head, entries)
- np-> ...
+SLIST_FOREACH(np, \*[Am]head, entries)
+ np-\*[Gt] ...
-while (!SLIST_EMPTY(&head)) { /* List Deletion. */
- n1 = SLIST_FIRST(&head);
- SLIST_REMOVE_HEAD(&head, entries);
+while (!SLIST_EMPTY(\*[Am]head)) { /* List Deletion. */
+ n1 = SLIST_FIRST(\*[Am]head);
+ SLIST_REMOVE_HEAD(\*[Am]head, entries);
free(n1);
}
.Ed
@@ -589,10 +589,10 @@
...
} *n1, *n2, *np;
-LIST_INIT(&head); /* Initialize the list. */
+LIST_INIT(\*[Am]head); /* Initialize the list. */
n1 = malloc(sizeof(struct entry)); /* Insert at the head. */
-LIST_INSERT_HEAD(&head, n1, entries);
+LIST_INSERT_HEAD(\*[Am]head, n1, entries);
n2 = malloc(sizeof(struct entry)); /* Insert after. */
LIST_INSERT_AFTER(n1, n2, entries);
@@ -600,12 +600,12 @@
n2 = malloc(sizeof(struct entry)); /* Insert before. */
LIST_INSERT_BEFORE(n1, n2, entries);
/* Forward traversal. */
-LIST_FOREACH(np, &head, entries)
- np-> ...
+LIST_FOREACH(np, \*[Am]head, entries)
+ np-\*[Gt] ...
/* Delete. */
-while (LIST_FIRST(&head) != NULL)
- LIST_REMOVE(LIST_FIRST(&head), entries);
-if (LIST_EMPTY(&head)) /* Test for emptiness. */
+while (LIST_FIRST(\*[Am]head) != NULL)
+ LIST_REMOVE(LIST_FIRST(\*[Am]head), entries);
+if (LIST_EMPTY(\*[Am]head)) /* Test for emptiness. */
printf("nothing to do\\n");
.Ed
.Sh SIMPLE QUEUES
@@ -715,23 +715,23 @@
...
} *n1, *n2, *np;
-SIMPLEQ_INIT(&head); /* Initialize the queue. */
+SIMPLEQ_INIT(\*[Am]head); /* Initialize the queue. */
n1 = malloc(sizeof(struct entry)); /* Insert at the head. */
-SIMPLEQ_INSERT_HEAD(&head, n1, entries);
+SIMPLEQ_INSERT_HEAD(\*[Am]head, n1, entries);
n1 = malloc(sizeof(struct entry)); /* Insert at the tail. */
-SIMPLEQ_INSERT_TAIL(&head, n1, entries);
+SIMPLEQ_INSERT_TAIL(\*[Am]head, n1, entries);
n2 = malloc(sizeof(struct entry)); /* Insert after. */
-SIMPLEQ_INSERT_AFTER(&head, n1, n2, entries);
+SIMPLEQ_INSERT_AFTER(\*[Am]head, n1, n2, entries);
/* Forward traversal. */
-SIMPLEQ_FOREACH(np, &head, entries)
- np-> ...
+SIMPLEQ_FOREACH(np, \*[Am]head, entries)
+ np-\*[Gt] ...
/* Delete. */
-while (SIMPLEQ_FIRST(&head) != NULL)
- SIMPLEQ_REMOVE_HEAD(&head, SIMPLEQ_FIRST(&head), entries);
-if (SIMPLEQ_EMPTY(&head)) /* Test for emptiness. */
+while (SIMPLEQ_FIRST(\*[Am]head) != NULL)
+ SIMPLEQ_REMOVE_HEAD(\*[Am]head, SIMPLEQ_FIRST(\*[Am]head), entries);
+if (SIMPLEQ_EMPTY(\*[Am]head)) /* Test for emptiness. */
printf("nothing to do\\n");
.Ed
.Sh TAIL QUEUES
@@ -859,29 +859,29 @@
...
} *n1, *n2, *np;
-TAILQ_INIT(&head); /* Initialize the queue. */
+TAILQ_INIT(\*[Am]head); /* Initialize the queue. */
n1 = malloc(sizeof(struct entry)); /* Insert at the head. */
-TAILQ_INSERT_HEAD(&head, n1, entries);
+TAILQ_INSERT_HEAD(\*[Am]head, n1, entries);
n1 = malloc(sizeof(struct entry)); /* Insert at the tail. */
-TAILQ_INSERT_TAIL(&head, n1, entries);
+TAILQ_INSERT_TAIL(\*[Am]head, n1, entries);
n2 = malloc(sizeof(struct entry)); /* Insert after. */
-TAILQ_INSERT_AFTER(&head, n1, n2, entries);
+TAILQ_INSERT_AFTER(\*[Am]head, n1, n2, entries);
n2 = malloc(sizeof(struct entry)); /* Insert before. */
TAILQ_INSERT_BEFORE(n1, n2, entries);
/* Forward traversal. */
-TAILQ_FOREACH(np, &head, entries)
- np-> ...
+TAILQ_FOREACH(np, \*[Am]head, entries)
+ np-\*[Gt] ...
/* Reverse traversal. */
-TAILQ_FOREACH_REVERSE(np, &head, tailhead, entries)
- np-> ...
+TAILQ_FOREACH_REVERSE(np, \*[Am]head, tailhead, entries)
+ np-\*[Gt] ...
/* Delete. */
-while (TAILQ_FIRST(&head) != NULL)
- TAILQ_REMOVE(&head, TAILQ_FIRST(&head), entries);
-if (TAILQ_EMPTY(&head)) /* Test for emptiness. */
+while (TAILQ_FIRST(\*[Am]head) != NULL)
+ TAILQ_REMOVE(\*[Am]head, TAILQ_FIRST(\*[Am]head), entries);
+if (TAILQ_EMPTY(\*[Am]head)) /* Test for emptiness. */
printf("nothing to do\\n");
.Ed
.Sh CIRCULAR QUEUES
@@ -1019,29 +1019,29 @@
...
} *n1, *n2, *np;
-CIRCLEQ_INIT(&head); /* Initialize the circular queue. */
Home |
Main Index |
Thread Index |
Old Index