summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/amd64/amd64/pmap.c2
-rw-r--r--sys/amd64/include/_limits.h4
-rw-r--r--sys/amd64/include/limits.h4
-rw-r--r--sys/conf/NOTES4
-rw-r--r--sys/dev/acpica/acpi_pci_link.c2
-rw-r--r--sys/dev/aha/aha.c4
-rw-r--r--sys/dev/ar/if_arregs.h2
-rw-r--r--sys/dev/asr/asr.c2
-rw-r--r--sys/dev/asr/osd_util.h2
-rw-r--r--sys/dev/de/if_de.c4
-rw-r--r--sys/dev/ed/if_ed.c2
-rw-r--r--sys/dev/ed/if_ed_cbus.c2
-rw-r--r--sys/dev/em/if_em_hw.h2
-rw-r--r--sys/dev/hea/eni.h4
-rw-r--r--sys/dev/idt/idt.c4
-rw-r--r--sys/dev/idt/idtvar.h2
-rw-r--r--sys/dev/isp/Hardware.txt6
-rw-r--r--sys/dev/isp/isp.c2
-rw-r--r--sys/dev/lmc/if_lmc.c2
-rw-r--r--sys/dev/mse/mse.c2
-rw-r--r--sys/dev/pcf/pcf.c2
-rw-r--r--sys/dev/pst/pst-iop.c14
-rw-r--r--sys/dev/raidframe/rf_freebsdkintf.c2
-rw-r--r--sys/dev/ray/if_ray.c4
-rw-r--r--sys/dev/sound/isa/mss.c2
-rw-r--r--sys/dev/sound/pci/als4000.c2
-rw-r--r--sys/dev/sound/pci/cmi.c2
-rw-r--r--sys/dev/sym/sym_hipd.c4
-rw-r--r--sys/dev/ubsec/ubsec.c4
-rw-r--r--sys/dev/usb/uhci.c2
-rw-r--r--sys/dev/usb/ulpt.c2
-rw-r--r--sys/dev/usb/umass.c2
-rw-r--r--sys/dev/wl/if_wl.c2
-rw-r--r--sys/gnu/ext2fs/ext2_vfsops.c4
-rw-r--r--sys/gnu/fs/ext2fs/ext2_vfsops.c4
-rw-r--r--sys/i386/i386/pmap.c2
-rw-r--r--sys/i386/ibcs2/ibcs2_misc.c4
-rw-r--r--sys/i386/include/_limits.h4
-rw-r--r--sys/i386/include/limits.h4
-rw-r--r--sys/i386/isa/if_el.c2
-rw-r--r--sys/i386/isa/mse.c2
-rw-r--r--sys/i386/isa/pcf.c2
-rw-r--r--sys/i4b/layer3/i4b_q931.h2
-rw-r--r--sys/i4b/layer4/i4b_l4mgmt.c46
-rw-r--r--sys/ia64/include/_limits.h4
-rw-r--r--sys/ia64/include/limits.h4
-rw-r--r--sys/kern/imgact_gzip.c2
-rw-r--r--sys/kern/imgact_shell.c2
-rw-r--r--sys/kern/subr_bus.c4
-rw-r--r--sys/kern/subr_clist.c2
-rw-r--r--sys/kern/tty_subr.c2
-rw-r--r--sys/kern/vfs_bio.c2
-rw-r--r--sys/libkern/ia64/__moddi3.S2
-rw-r--r--sys/libkern/ia64/__umoddi3.S2
-rw-r--r--sys/net/if_iso88025subr.c2
-rw-r--r--sys/net/if_var.h4
-rw-r--r--sys/netatm/atm_cm.c2
-rw-r--r--sys/netatm/spans/spans_kxdr.h2
-rw-r--r--sys/netatm/uni/unisig_print.c2
-rw-r--r--sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c4
-rw-r--r--sys/netgraph/ng_base.c2
-rw-r--r--sys/netgraph/ng_socket.c4
-rw-r--r--sys/netinet/in.h2
-rw-r--r--sys/netinet/ip_dummynet.c2
-rw-r--r--sys/netinet/ip_output.c2
-rw-r--r--sys/netinet/libalias/alias_nbt.c2
-rw-r--r--sys/netinet/libalias/alias_proxy.c2
-rw-r--r--sys/netinet6/in6_cksum.c2
-rw-r--r--sys/netinet6/ipsec.c4
-rw-r--r--sys/netinet6/nd6_rtr.c2
-rw-r--r--sys/netipsec/ipsec.c2
-rw-r--r--sys/netipsec/key.c10
-rw-r--r--sys/netipx/ipx_pcb.h2
-rw-r--r--sys/netkey/key.c8
-rw-r--r--sys/netsmb/smb.h2
-rw-r--r--sys/nfsserver/nfs_serv.c4
-rw-r--r--sys/pc98/cbus/sio.c2
-rw-r--r--sys/pc98/pc98/mse.c2
-rw-r--r--sys/pc98/pc98/sio.c2
-rw-r--r--sys/pccard/pcic_isa.c4
-rw-r--r--sys/pci/if_de.c4
-rw-r--r--sys/pci/if_xl.c2
-rw-r--r--sys/powerpc/include/_limits.h4
-rw-r--r--sys/powerpc/include/limits.h4
-rw-r--r--sys/sparc64/include/_limits.h4
-rw-r--r--sys/sparc64/include/limits.h4
-rw-r--r--sys/sparc64/sparc64/cache.c6
-rw-r--r--sys/sparc64/sparc64/interrupt.S2
-rw-r--r--sys/sys/protosw.h2
-rw-r--r--sys/sys/soundcard.h4
-rw-r--r--sys/ufs/ffs/ffs_softdep.c2
-rw-r--r--sys/ufs/ufs/dirhash.h2
-rw-r--r--sys/vm/uma_core.c2
-rw-r--r--sys/vm/vm_object.c2
94 files changed, 163 insertions, 163 deletions
diff --git a/sys/amd64/amd64/pmap.c b/sys/amd64/amd64/pmap.c
index f9f102c..76ae738 100644
--- a/sys/amd64/amd64/pmap.c
+++ b/sys/amd64/amd64/pmap.c
@@ -1164,7 +1164,7 @@ _pmap_unwire_pte_hold(pmap_t pmap, vm_page_t m)
if ((pmap->pm_pdir[PTDPTDI] & PG_FRAME) ==
(PTDpde & PG_FRAME)) {
/*
- * Do a invltlb to make the invalidated mapping
+ * Do an invltlb to make the invalidated mapping
* take effect immediately.
*/
pteva = VM_MAXUSER_ADDRESS + i386_ptob(m->pindex);
diff --git a/sys/amd64/include/_limits.h b/sys/amd64/include/_limits.h
index 4f3afe1..e740acf 100644
--- a/sys/amd64/include/_limits.h
+++ b/sys/amd64/include/_limits.h
@@ -82,8 +82,8 @@
#if !defined(_POSIX_SOURCE) && !defined(_XOPEN_SOURCE)
#define SIZE_T_MAX ULONG_MAX /* max value for a size_t */
-#define OFF_MAX LONG_MAX /* max value for a off_t */
-#define OFF_MIN LONG_MIN /* min value for a off_t */
+#define OFF_MAX LONG_MAX /* max value for an off_t */
+#define OFF_MIN LONG_MIN /* min value for an off_t */
/* Quads and longs are the same on the alpha. Ensure they stay in sync. */
#define UQUAD_MAX (ULONG_MAX) /* max value for a uquad_t */
diff --git a/sys/amd64/include/limits.h b/sys/amd64/include/limits.h
index 4f3afe1..e740acf 100644
--- a/sys/amd64/include/limits.h
+++ b/sys/amd64/include/limits.h
@@ -82,8 +82,8 @@
#if !defined(_POSIX_SOURCE) && !defined(_XOPEN_SOURCE)
#define SIZE_T_MAX ULONG_MAX /* max value for a size_t */
-#define OFF_MAX LONG_MAX /* max value for a off_t */
-#define OFF_MIN LONG_MIN /* min value for a off_t */
+#define OFF_MAX LONG_MAX /* max value for an off_t */
+#define OFF_MIN LONG_MIN /* min value for an off_t */
/* Quads and longs are the same on the alpha. Ensure they stay in sync. */
#define UQUAD_MAX (ULONG_MAX) /* max value for a uquad_t */
diff --git a/sys/conf/NOTES b/sys/conf/NOTES
index 56810ce..1bfdf3f 100644
--- a/sys/conf/NOTES
+++ b/sys/conf/NOTES
@@ -415,7 +415,7 @@ device musycc # LMC/SBE LMC1504 quad T1/E1
# Network interfaces:
# The `loop' device is MANDATORY when networking is enabled.
# The `ether' device provides generic code to handle
-# Ethernets; it is MANDATORY when a Ethernet device driver is
+# Ethernets; it is MANDATORY when an Ethernet device driver is
# configured or token-ring is enabled.
# The `fddi' device provides generic code to support FDDI.
# The `arcnet' device provides generic code to support Arcnet.
@@ -1978,7 +1978,7 @@ device iicsmb # smb over i2c bridge
options PPC_PROBE_CHIPSET # Enable chipset specific detection
# (see flags in ppc(4))
options DEBUG_1284 # IEEE1284 signaling protocol debug
-options PERIPH_1284 # Makes your computer act as a IEEE1284
+options PERIPH_1284 # Makes your computer act as an IEEE1284
# compliant peripheral
options DONTPROBE_1284 # Avoid boot detection of PnP parallel devices
options VP0_DEBUG # ZIP/ZIP+ debug
diff --git a/sys/dev/acpica/acpi_pci_link.c b/sys/dev/acpica/acpi_pci_link.c
index 66bfe12..7027cc7 100644
--- a/sys/dev/acpica/acpi_pci_link.c
+++ b/sys/dev/acpica/acpi_pci_link.c
@@ -846,7 +846,7 @@ acpi_pci_link_set_bootdisabled_priority(void)
TAILQ_INIT(&sorted_list);
while (!TAILQ_EMPTY(&acpi_pci_link_entries)) {
link = TAILQ_FIRST(&acpi_pci_link_entries);
- /* find a entry which have the highest priority. */
+ /* find an entry which has the highest priority. */
TAILQ_FOREACH(link_pri, &acpi_pci_link_entries, links) {
if (link->priority < link_pri->priority) {
link = link_pri;
diff --git a/sys/dev/aha/aha.c b/sys/dev/aha/aha.c
index f43a41f..b4dc58b 100644
--- a/sys/dev/aha/aha.c
+++ b/sys/dev/aha/aha.c
@@ -306,7 +306,7 @@ aha_probe(struct aha_softc* aha)
/*
* Get the board ID. We use this to see if we're dealing with
- * a buslogic card or a aha card (or clone).
+ * a buslogic card or an aha card (or clone).
*/
error = aha_cmd(aha, AOP_INQUIRE_BOARD_ID, NULL, /*parmlen*/0,
(u_int8_t*)&board_id, sizeof(board_id),
@@ -806,7 +806,7 @@ ahaaction(struct cam_sim *sim, union ccb *ccb)
struct aha_hccb *hccb;
/*
- * get a accb to use.
+ * Get an accb to use.
*/
if ((accb = ahagetccb(aha)) == NULL) {
int s;
diff --git a/sys/dev/ar/if_arregs.h b/sys/dev/ar/if_arregs.h
index 552d20e..fe5150a 100644
--- a/sys/dev/ar/if_arregs.h
+++ b/sys/dev/ar/if_arregs.h
@@ -31,7 +31,7 @@
#define _IF_ARREGS_H_
#define NCHAN 2 /* A HD64570 chip have 2 channels */
-#define NPORT 4 /* A ArNet board can have 4 ports or */
+#define NPORT 4 /* An ArNet board can have 4 ports or */
/* channels */
#define AR_BUF_SIZ 512
diff --git a/sys/dev/asr/asr.c b/sys/dev/asr/asr.c
index c9a2959..4e1c284 100644
--- a/sys/dev/asr/asr.c
+++ b/sys/dev/asr/asr.c
@@ -988,7 +988,7 @@ ASR_queue_s (
} /* ASR_queue_s */
/*
- * Send a message synchronously to a Asr_softc_t
+ * Send a message synchronously to an Asr_softc_t.
*/
STATIC int
ASR_queue_c (
diff --git a/sys/dev/asr/osd_util.h b/sys/dev/asr/osd_util.h
index ff2f589..a243c04 100644
--- a/sys/dev/asr/osd_util.h
+++ b/sys/dev/asr/osd_util.h
@@ -325,7 +325,7 @@ uSHORT osdDestroySemaphore(SEMAPHORE_T);
uLONG osdRequestSemaphore(SEMAPHORE_T,uLONG);
/* Release access to the specified mutually exclusive semaphore */
uSHORT osdReleaseSemaphore(SEMAPHORE_T);
- /* wait for a event to happen */
+ /* wait for an event to happen */
uLONG osdWaitForEventSemaphore(SEMAPHORE_T, uLONG);
/* signal an event */
uLONG osdSignalEventSemaphore(SEMAPHORE_T);
diff --git a/sys/dev/de/if_de.c b/sys/dev/de/if_de.c
index 88280d1..d186586 100644
--- a/sys/dev/de/if_de.c
+++ b/sys/dev/de/if_de.c
@@ -3417,7 +3417,7 @@ tulip_rx_intr(
* those buffers and chain to the starting mbuf. All buffers but
* the last buffer have the same length so we can set that now.
* (we add to last_offset instead of multiplying since we normally
- * won't go into the loop and thereby saving a ourselves from
+ * won't go into the loop and thereby saving ourselves from
* doing a multiplication by 0 in the normal case).
*/
_IF_DEQUEUE(&sc->tulip_rxq, ms);
@@ -3918,7 +3918,7 @@ tulip_intr_handler(
#if defined(TULIP_USE_SOFTINTR)
/*
- * This is a experimental idea to alleviate problems due to interrupt
+ * This is an experimental idea to alleviate problems due to interrupt
* livelock. What is interrupt livelock? It's when you spend all your
* time servicing device interrupts and never drop below device ipl
* to do "useful" work.
diff --git a/sys/dev/ed/if_ed.c b/sys/dev/ed/if_ed.c
index 5ad04e3..8d1c849 100644
--- a/sys/dev/ed/if_ed.c
+++ b/sys/dev/ed/if_ed.c
@@ -936,7 +936,7 @@ ed_probe_Novell_generic(dev, flags)
/*
* I don't know if this is necessary; probably cruft leftover from
* Clarkson packet driver code. Doesn't do a thing on the boards I've
- * tested. -DG [note that a outb(0x84, 0) seems to work here, and is
+ * tested. -DG [note that an outb(0x84, 0) seems to work here, and is
* non-invasive...but some boards don't seem to reset and I don't have
* complete documentation on what the 'right' thing to do is...so we
* do the invasive thing for now. Yuck.]
diff --git a/sys/dev/ed/if_ed_cbus.c b/sys/dev/ed/if_ed_cbus.c
index 307323f..c447530 100644
--- a/sys/dev/ed/if_ed_cbus.c
+++ b/sys/dev/ed/if_ed_cbus.c
@@ -754,7 +754,7 @@ ed98_probe_Novell(dev, port_rid, flags)
/*
* I don't know if this is necessary; probably cruft leftover from
* Clarkson packet driver code. Doesn't do a thing on the boards I've
- * tested. -DG [note that a outb(0x84, 0) seems to work here, and is
+ * tested. -DG [note that an outb(0x84, 0) seems to work here, and is
* non-invasive...but some boards don't seem to reset and I don't have
* complete documentation on what the 'right' thing to do is...so we
* do the invasive thing for now. Yuck.]
diff --git a/sys/dev/em/if_em_hw.h b/sys/dev/em/if_em_hw.h
index 9e6172d..6f1874c 100644
--- a/sys/dev/em/if_em_hw.h
+++ b/sys/dev/em/if_em_hw.h
@@ -280,7 +280,7 @@ void em_write_reg_io(struct em_hw *hw, uint32_t offset, uint32_t value);
#define HALF_DUPLEX 1
#define FULL_DUPLEX 2
-/* The sizes (in bytes) of a ethernet packet */
+/* The sizes (in bytes) of an ethernet packet */
#define ENET_HEADER_SIZE 14
#define MAXIMUM_ETHERNET_FRAME_SIZE 1518 /* With FCS */
#define MINIMUM_ETHERNET_FRAME_SIZE 64 /* With FCS */
diff --git a/sys/dev/hea/eni.h b/sys/dev/hea/eni.h
index e3fd644..0133458 100644
--- a/sys/dev/hea/eni.h
+++ b/sys/dev/hea/eni.h
@@ -365,7 +365,7 @@ typedef volatile struct vci_table VCI_Table;
/*
* Access to Serial EEPROM [as opposed to expansion (E)PROM].
*
- * This is a ATMEL AT24C01 serial EEPROM part.
+ * This is an ATMEL AT24C01 serial EEPROM part.
* See http://www.atmel.com/atmel/products/prod162.htm for timimg diagrams
* for START/STOP/ACK/READ cycles.
*/
@@ -387,7 +387,7 @@ typedef volatile struct vci_table VCI_Table;
* Device VCC Entry
*
* Contains the common and ENI-specific information for each VCC
- * which is opened through a ENI device.
+ * which is opened through an ENI device.
*/
struct eni_vcc {
struct cmn_vcc ev_cmn; /* Common VCC stuff */
diff --git a/sys/dev/idt/idt.c b/sys/dev/idt/idt.c
index 9fc3cab..dd08b75 100644
--- a/sys/dev/idt/idt.c
+++ b/sys/dev/idt/idt.c
@@ -951,8 +951,8 @@ idt_connect_opencls(IDT * idt, CONNECTION * connection, int opflag)
* the DMA address.
*
* returns -1 if queue is full, the address is not word aligned, or
- * a invalid queue is specified
- * returns 0 if parameters were acceptable
+ * an invalid queue is specified.
+ * returns 0 if parameters were acceptable.
*/
int
diff --git a/sys/dev/idt/idtvar.h b/sys/dev/idt/idtvar.h
index 16e0c45..6761a00 100644
--- a/sys/dev/idt/idtvar.h
+++ b/sys/dev/idt/idtvar.h
@@ -196,7 +196,7 @@ typedef struct idt_softc IDT;
* Device VCC Entry
*
* Contains the common and IDT-specific information for each VCC
- * which is opened through a IDT device.
+ * which is opened through an IDT device.
*/
struct nidt_vcc {
struct cmn_vcc iv_cmn; /* Common VCC stuff */
diff --git a/sys/dev/isp/Hardware.txt b/sys/dev/isp/Hardware.txt
index dfdc0e7..75f01bf 100644
--- a/sys/dev/isp/Hardware.txt
+++ b/sys/dev/isp/Hardware.txt
@@ -147,7 +147,7 @@ JMR 4-Bay
JMR Fortra
- I rather like this box. The blue LEDs are a very nice touch- you
+ I rather like this box. The blue LEDs are a very nice touch- you
can see them very clearly from 50 feet away.
I paid 2000$ for one used.
@@ -159,7 +159,7 @@ Sun A5X00
code in /usr/share/examples) for power/thermal/slot monitoring.
Approx Cost: The last I saw for a price list item on this was 22K$
- for a unpopulated (no disk drive) A5X00.
+ for an unpopulated (no disk drive) A5X00.
DataDirect E1000 RAID
@@ -175,7 +175,7 @@ DataDirect E1000 RAID
Veritas ServPoint
This is a software storage virtualization engine that
- runs on Sparc/Solaris in target mode for frontend
+ runs on Sparc/Solaris in target mode for frontend
and with other FC or SCSI as the backend storage. FreeBSD
has been used extensively to test it.
diff --git a/sys/dev/isp/isp.c b/sys/dev/isp/isp.c
index 531af30..431c85b 100644
--- a/sys/dev/isp/isp.c
+++ b/sys/dev/isp/isp.c
@@ -790,7 +790,7 @@ again:
* It turns out that even for QLogic 2100s with ROM 1.10 and above
* we do get a firmware attributes word returned in mailbox register 6.
*
- * Because the lun is in a a different position in the Request Queue
+ * Because the lun is in a different position in the Request Queue
* Entry structure for Fibre Channel with expanded lun firmware, we
* can only support one lun (lun zero) when we don't know what kind
* of firmware we're running.
diff --git a/sys/dev/lmc/if_lmc.c b/sys/dev/lmc/if_lmc.c
index 5d71cd9..83250cf 100644
--- a/sys/dev/lmc/if_lmc.c
+++ b/sys/dev/lmc/if_lmc.c
@@ -563,7 +563,7 @@ lmc_rx_intr(lmc_softc_t * const sc)
* length so we can set that now. (we add to
* last_offset instead of multiplying since we
* normally won't go into the loop and thereby
- * saving a ourselves from doing a multiplication
+ * saving ourselves from doing a multiplication
* by 0 in the normal case).
*/
_IF_DEQUEUE(&sc->lmc_rxq, ms);
diff --git a/sys/dev/mse/mse.c b/sys/dev/mse/mse.c
index 317b6cc..3887ba1 100644
--- a/sys/dev/mse/mse.c
+++ b/sys/dev/mse/mse.c
@@ -850,7 +850,7 @@ mse_getlogi(tag, handle, dx, dy, but)
* Routines for the ATI Inport bus mouse.
*/
/*
- * Test for a ATI Inport bus mouse and return 1 if it is.
+ * Test for an ATI Inport bus mouse and return 1 if it is.
* (do not enable interrupts)
*/
static int
diff --git a/sys/dev/pcf/pcf.c b/sys/dev/pcf/pcf.c
index 7412435..8c1d488 100644
--- a/sys/dev/pcf/pcf.c
+++ b/sys/dev/pcf/pcf.c
@@ -285,7 +285,7 @@ static int pcf_stop(device_t pcfdev)
/*
* Send STOP condition iff the START condition was previously sent.
- * STOP is sent only once even if a iicbus_stop() is called after
+ * STOP is sent only once even if an iicbus_stop() is called after
* an iicbus_read()... see pcf_read(): the pcf needs to send the stop
* before the last char is read.
*/
diff --git a/sys/dev/pst/pst-iop.c b/sys/dev/pst/pst-iop.c
index bbc41a9..98c2f1d 100644
--- a/sys/dev/pst/pst-iop.c
+++ b/sys/dev/pst/pst-iop.c
@@ -76,7 +76,7 @@ iop_init(struct iop_softc *sc)
/* register iop_attach to be run when interrupts are enabled */
if (!(sc->iop_delayed_attach = (struct intr_config_hook *)
- malloc(sizeof(struct intr_config_hook),
+ malloc(sizeof(struct intr_config_hook),
M_PSTIOP, M_NOWAIT | M_ZERO))) {
printf("pstiop: malloc of delayed attach hook failed\n");
return 0;
@@ -162,9 +162,9 @@ iop_intr(void *data)
reply = (struct i2o_single_reply *)(sc->obase + (mfa - sc->phys_obase));
- /* if this is a event register reply, shout! */
+ /* If this is an event register reply, shout! */
if (reply->function == I2O_UTIL_EVENT_REGISTER) {
- struct i2o_util_event_reply_message *event =
+ struct i2o_util_event_reply_message *event =
(struct i2o_util_event_reply_message *)reply;
printf("pstiop: EVENT!! idx=%08x data=%08x\n",
@@ -175,7 +175,7 @@ iop_intr(void *data)
/* if reply is a failurenotice we need to free the original mfa */
if (reply->message_flags & I2O_MESSAGE_FLAGS_FAIL)
iop_free_mfa(sc,((struct i2o_fault_reply *)(reply))->preserved_mfa);
-
+
/* reply->initiator_context points to the service routine */
((void (*)(struct iop_softc *, u_int32_t, struct i2o_single_reply *))
(reply->initiator_context))(sc, mfa, reply);
@@ -255,7 +255,7 @@ iop_init_outqueue(struct iop_softc *sc)
/* wait for init to complete */
while (--timeout && reply != I2O_EXEC_OUTBOUND_INIT_COMPLETE)
DELAY(1000);
-
+
if (!timeout) {
printf("pstiop: timeout waiting for init-complete response\n");
iop_free_mfa(sc, mfa);
@@ -309,7 +309,7 @@ iop_get_lct(struct iop_softc *sc)
contigfree(reply, ALLOCSIZE, M_PSTIOP);
return 0;
}
- bcopy(&reply->entry[0], sc->lct,
+ bcopy(&reply->entry[0], sc->lct,
reply->table_size * sizeof(struct i2o_lct_entry));
sc->lct_count = reply->table_size;
contigfree(reply, ALLOCSIZE, M_PSTIOP);
@@ -432,7 +432,7 @@ iop_create_sgl(struct i2o_basic_message *msg, caddr_t data, int count, int dir)
printf("pstiop: zero length DMA transfer attempted\n");
return 0;
}
-
+
sgl_count = min(count, (PAGE_SIZE - ((uintptr_t)data & PAGE_MASK)));
sgl_phys = vtophys(data);
sgl->flags = dir | I2O_SGL_PAGELIST | I2O_SGL_EOB | I2O_SGL_END;
diff --git a/sys/dev/raidframe/rf_freebsdkintf.c b/sys/dev/raidframe/rf_freebsdkintf.c
index 1a06659..5e134d7 100644
--- a/sys/dev/raidframe/rf_freebsdkintf.c
+++ b/sys/dev/raidframe/rf_freebsdkintf.c
@@ -1660,7 +1660,7 @@ rf_DispatchKernelIO(queue, req)
/* splx(s); */ /* want to test this */
return (0);
}
-/* this is the callback function associated with a I/O invoked from
+/* This is the callback function associated with an I/O invoked from
kernel code.
*/
static void
diff --git a/sys/dev/ray/if_ray.c b/sys/dev/ray/if_ray.c
index fd4731f74..1c92d50 100644
--- a/sys/dev/ray/if_ray.c
+++ b/sys/dev/ray/if_ray.c
@@ -774,8 +774,8 @@ ray_init_user(struct ray_softc *sc)
* init_download - download the network to the card
* init_mcast - reset multicast list
* init_sj - find or start a BSS
- * init_auth - authenticate with a ESSID if needed
- * init_assoc - associate with a ESSID if needed
+ * init_auth - authenticate with an ESSID if needed
+ * init_assoc - associate with an ESSID if needed
*
* They are only actually executed if the card is not running.
* We may enter this routine from a simple change of IP
diff --git a/sys/dev/sound/isa/mss.c b/sys/dev/sound/isa/mss.c
index 42d52a7..b7e1dab 100644
--- a/sys/dev/sound/isa/mss.c
+++ b/sys/dev/sound/isa/mss.c
@@ -1376,7 +1376,7 @@ mss_detect(device_t dev, struct mss_info *mss)
if ((tmp = io_rd(mss, MSS_INDEX)) & MSS_IDXBUSY) DELAY(10000);
else break;
- if (i >= 10) { /* Not a AD1848 */
+ if (i >= 10) { /* Not an AD1848 */
BVDDB(printf("mss_detect, busy still set (0x%02x)\n", tmp));
goto no;
}
diff --git a/sys/dev/sound/pci/als4000.c b/sys/dev/sound/pci/als4000.c
index 0e1cb76..517bf7e 100644
--- a/sys/dev/sound/pci/als4000.c
+++ b/sys/dev/sound/pci/als4000.c
@@ -27,7 +27,7 @@
/*
* als4000.c - driver for the Avance Logic ALS 4000 chipset.
*
- * The ALS4000 is a effectively an SB16 with a PCI interface.
+ * The ALS4000 is effectively an SB16 with a PCI interface.
*
* This driver derives from ALS4000a.PDF, Bart Hartgers alsa driver, and
* SB16 register descriptions.
diff --git a/sys/dev/sound/pci/cmi.c b/sys/dev/sound/pci/cmi.c
index 4afdd9e..866d984 100644
--- a/sys/dev/sound/pci/cmi.c
+++ b/sys/dev/sound/pci/cmi.c
@@ -27,7 +27,7 @@
* Much of register handling is based on NetBSD CMI8x38 audio driver
* by Takuya Shiozaki <AoiMoe@imou.to>. Chen-Li Tien
* <cltien@cmedia.com.tw> clarified points regarding the DMA related
- * registers and the 8738 mixer devices. His Linux was driver a also
+ * registers and the 8738 mixer devices. His Linux driver was also a
* useful reference point.
*
* TODO: MIDI
diff --git a/sys/dev/sym/sym_hipd.c b/sys/dev/sym/sym_hipd.c
index d15a1ff..689ce89 100644
--- a/sys/dev/sym/sym_hipd.c
+++ b/sys/dev/sym/sym_hipd.c
@@ -5387,9 +5387,9 @@ static void sym_sir_task_recovery(hcb_p np, int num)
/*
* If we want to abort an untagged command, we
- * will send a IDENTIFY + M_ABORT.
+ * will send an IDENTIFY + M_ABORT.
* Otherwise (tagged command), we will send
- * a IDENTITFY + task attributes + ABORT TAG.
+ * an IDENTIFY + task attributes + ABORT TAG.
*/
if (cp->tag == NO_TAG) {
np->abrt_msg[1] = M_ABORT;
diff --git a/sys/dev/ubsec/ubsec.c b/sys/dev/ubsec/ubsec.c
index f8df5c9..89b9cbc 100644
--- a/sys/dev/ubsec/ubsec.c
+++ b/sys/dev/ubsec/ubsec.c
@@ -1935,8 +1935,8 @@ ubsec_cleanchip(struct ubsec_softc *sc)
}
/*
- * free a ubsec_q
- * It is assumed that the caller is within spimp()
+ * Free an ubsec_q.
+ * It is assumed that the caller is within spimp().
*/
static int
ubsec_free_q(struct ubsec_softc *sc, struct ubsec_q *q)
diff --git a/sys/dev/usb/uhci.c b/sys/dev/usb/uhci.c
index 0f57724..68a8070 100644
--- a/sys/dev/usb/uhci.c
+++ b/sys/dev/usb/uhci.c
@@ -1310,7 +1310,7 @@ uhci_check_intr(uhci_softc_t *sc, uhci_intr_info_t *ii)
#endif
/*
* If the last TD is still active we need to check whether there
- * is a an error somewhere in the middle, or whether there was a
+ * is an error somewhere in the middle, or whether there was a
* short packet (SPD and not ACTIVE).
*/
if (le32toh(lstd->td.td_status) & UHCI_TD_ACTIVE) {
diff --git a/sys/dev/usb/ulpt.c b/sys/dev/usb/ulpt.c
index d030293..726669a 100644
--- a/sys/dev/usb/ulpt.c
+++ b/sys/dev/usb/ulpt.c
@@ -739,7 +739,7 @@ ulptioctl(dev_t dev, u_long cmd, caddr_t data, int flag, usb_proc_ptr p)
#if 0
/* XXX This does not belong here. */
/*
- * Print select parts of a IEEE 1284 device ID.
+ * Print select parts of an IEEE 1284 device ID.
*/
void
ieee1284_print_id(char *str)
diff --git a/sys/dev/usb/umass.c b/sys/dev/usb/umass.c
index db3c936..4fce190 100644
--- a/sys/dev/usb/umass.c
+++ b/sys/dev/usb/umass.c
@@ -2943,7 +2943,7 @@ Static int
umass_atapi_transform(struct umass_softc *sc, unsigned char *cmd, int cmdlen,
unsigned char **rcmd, int *rcmdlen)
{
- /* A ATAPI command is always 12 bytes in length */
+ /* An ATAPI command is always 12 bytes in length. */
KASSERT(*rcmdlen >= ATAPI_COMMAND_LENGTH,
("rcmdlen = %d < %d, buffer too small",
*rcmdlen, ATAPI_COMMAND_LENGTH));
diff --git a/sys/dev/wl/if_wl.c b/sys/dev/wl/if_wl.c
index f3b29ce..dfaca89 100644
--- a/sys/dev/wl/if_wl.c
+++ b/sys/dev/wl/if_wl.c
@@ -52,7 +52,7 @@
* i.e., it uses MAC addresses. This should not be a surprise since
* it uses an ethernet controller as a major hw item.
* It can broadcast, unicast or apparently multicast in a base cell
- * using a omni-directional antennae that is
+ * using an omni-directional antennae that is
* about 800 feet around the base cell barring walls and metal.
* With directional antennae, it can be used point to point over a mile
* or so apparently (haven't tried that).
diff --git a/sys/gnu/ext2fs/ext2_vfsops.c b/sys/gnu/ext2fs/ext2_vfsops.c
index 8f27bdb..d91a92e 100644
--- a/sys/gnu/ext2fs/ext2_vfsops.c
+++ b/sys/gnu/ext2fs/ext2_vfsops.c
@@ -686,7 +686,7 @@ ext2_mountfs(devvp, mp, td)
ump = bsd_malloc(sizeof *ump, M_EXT2MNT, M_WAITOK);
bzero((caddr_t)ump, sizeof *ump);
/* I don't know whether this is the right strategy. Note that
- we dynamically allocate both a ext2_sb_info and a ext2_super_block
+ we dynamically allocate both an ext2_sb_info and an ext2_super_block
while Linux keeps the super block in a locked buffer
*/
ump->um_e2fs = bsd_malloc(sizeof(struct ext2_sb_info),
@@ -955,7 +955,7 @@ loop:
}
/*
- * Look up a EXT2FS dinode number to find its incore vnode, otherwise read it
+ * Look up an EXT2FS dinode number to find its incore vnode, otherwise read it
* in from disk. If it is in core, wait for the lock bit to clear, then
* return the inode locked. Detection and handling of mount points must be
* done by the calling routine.
diff --git a/sys/gnu/fs/ext2fs/ext2_vfsops.c b/sys/gnu/fs/ext2fs/ext2_vfsops.c
index 8f27bdb..d91a92e 100644
--- a/sys/gnu/fs/ext2fs/ext2_vfsops.c
+++ b/sys/gnu/fs/ext2fs/ext2_vfsops.c
@@ -686,7 +686,7 @@ ext2_mountfs(devvp, mp, td)
ump = bsd_malloc(sizeof *ump, M_EXT2MNT, M_WAITOK);
bzero((caddr_t)ump, sizeof *ump);
/* I don't know whether this is the right strategy. Note that
- we dynamically allocate both a ext2_sb_info and a ext2_super_block
+ we dynamically allocate both an ext2_sb_info and an ext2_super_block
while Linux keeps the super block in a locked buffer
*/
ump->um_e2fs = bsd_malloc(sizeof(struct ext2_sb_info),
@@ -955,7 +955,7 @@ loop:
}
/*
- * Look up a EXT2FS dinode number to find its incore vnode, otherwise read it
+ * Look up an EXT2FS dinode number to find its incore vnode, otherwise read it
* in from disk. If it is in core, wait for the lock bit to clear, then
* return the inode locked. Detection and handling of mount points must be
* done by the calling routine.
diff --git a/sys/i386/i386/pmap.c b/sys/i386/i386/pmap.c
index f9f102c..76ae738 100644
--- a/sys/i386/i386/pmap.c
+++ b/sys/i386/i386/pmap.c
@@ -1164,7 +1164,7 @@ _pmap_unwire_pte_hold(pmap_t pmap, vm_page_t m)
if ((pmap->pm_pdir[PTDPTDI] & PG_FRAME) ==
(PTDpde & PG_FRAME)) {
/*
- * Do a invltlb to make the invalidated mapping
+ * Do an invltlb to make the invalidated mapping
* take effect immediately.
*/
pteva = VM_MAXUSER_ADDRESS + i386_ptob(m->pindex);
diff --git a/sys/i386/ibcs2/ibcs2_misc.c b/sys/i386/ibcs2/ibcs2_misc.c
index 8b8f536..b909140 100644
--- a/sys/i386/ibcs2/ibcs2_misc.c
+++ b/sys/i386/ibcs2/ibcs2_misc.c
@@ -411,7 +411,7 @@ again:
break;
}
/*
- * Massage in place to make a iBCS2-shaped dirent (otherwise
+ * Massage in place to make an iBCS2-shaped dirent (otherwise
* we have to worry about touching user memory outside of
* the copyout() call).
*/
@@ -574,7 +574,7 @@ again:
break;
}
/*
- * Massage in place to make a iBCS2-shaped dirent (otherwise
+ * Massage in place to make an iBCS2-shaped dirent (otherwise
* we have to worry about touching user memory outside of
* the copyout() call).
*
diff --git a/sys/i386/include/_limits.h b/sys/i386/include/_limits.h
index b5e3bd1..13ea139 100644
--- a/sys/i386/include/_limits.h
+++ b/sys/i386/include/_limits.h
@@ -92,8 +92,8 @@
#if !defined(_POSIX_SOURCE)
#define SIZE_T_MAX UINT_MAX /* max value for a size_t */
-#define OFF_MAX LLONG_MAX /* max value for a off_t */
-#define OFF_MIN LLONG_MIN /* min value for a off_t */
+#define OFF_MAX LLONG_MAX /* max value for an off_t */
+#define OFF_MIN LLONG_MIN /* min value for an off_t */
/* Quads and long longs are the same size. Ensure they stay in sync. */
#define UQUAD_MAX ULLONG_MAX /* max value for a uquad_t */
diff --git a/sys/i386/include/limits.h b/sys/i386/include/limits.h
index b5e3bd1..13ea139 100644
--- a/sys/i386/include/limits.h
+++ b/sys/i386/include/limits.h
@@ -92,8 +92,8 @@
#if !defined(_POSIX_SOURCE)
#define SIZE_T_MAX UINT_MAX /* max value for a size_t */
-#define OFF_MAX LLONG_MAX /* max value for a off_t */
-#define OFF_MIN LLONG_MIN /* min value for a off_t */
+#define OFF_MAX LLONG_MAX /* max value for an off_t */
+#define OFF_MIN LLONG_MIN /* min value for an off_t */
/* Quads and long longs are the same size. Ensure they stay in sync. */
#define UQUAD_MAX ULLONG_MAX /* max value for a uquad_t */
diff --git a/sys/i386/isa/if_el.c b/sys/i386/isa/if_el.c
index 6096549..dd62365 100644
--- a/sys/i386/isa/if_el.c
+++ b/sys/i386/isa/if_el.c
@@ -653,7 +653,7 @@ elintr(void *xsc)
}
/*
- * Pull read data off a interface.
+ * Pull read data off an interface.
* Len is length of data, with local net header stripped.
*/
static struct mbuf *
diff --git a/sys/i386/isa/mse.c b/sys/i386/isa/mse.c
index 317b6cc..3887ba1 100644
--- a/sys/i386/isa/mse.c
+++ b/sys/i386/isa/mse.c
@@ -850,7 +850,7 @@ mse_getlogi(tag, handle, dx, dy, but)
* Routines for the ATI Inport bus mouse.
*/
/*
- * Test for a ATI Inport bus mouse and return 1 if it is.
+ * Test for an ATI Inport bus mouse and return 1 if it is.
* (do not enable interrupts)
*/
static int
diff --git a/sys/i386/isa/pcf.c b/sys/i386/isa/pcf.c
index 7412435..8c1d488 100644
--- a/sys/i386/isa/pcf.c
+++ b/sys/i386/isa/pcf.c
@@ -285,7 +285,7 @@ static int pcf_stop(device_t pcfdev)
/*
* Send STOP condition iff the START condition was previously sent.
- * STOP is sent only once even if a iicbus_stop() is called after
+ * STOP is sent only once even if an iicbus_stop() is called after
* an iicbus_read()... see pcf_read(): the pcf needs to send the stop
* before the last char is read.
*/
diff --git a/sys/i4b/layer3/i4b_q931.h b/sys/i4b/layer3/i4b_q931.h
index e09f023b..ed5898f 100644
--- a/sys/i4b/layer3/i4b_q931.h
+++ b/sys/i4b/layer3/i4b_q931.h
@@ -117,7 +117,7 @@
/* ALERT */
-#define MSG_ALERT_LEN 4 /* length of a alert message */
+#define MSG_ALERT_LEN 4 /* length of an alert message */
#endif /* _I4B_Q931_H_ */
diff --git a/sys/i4b/layer4/i4b_l4mgmt.c b/sys/i4b/layer4/i4b_l4mgmt.c
index 8556e37..3f0e6ea 100644
--- a/sys/i4b/layer4/i4b_l4mgmt.c
+++ b/sys/i4b/layer4/i4b_l4mgmt.c
@@ -67,12 +67,12 @@ get_cdid(void)
int i;
int x;
- x = SPLI4B();
+ x = SPLI4B();
/* get next id */
-
+
cdid_count++;
-
+
again:
if(cdid_count == CDID_UNUSED) /* zero is invalid */
cdid_count++;
@@ -80,7 +80,7 @@ again:
cdid_count = 1;
/* check if id already in use */
-
+
for(i=0; i < N_CALL_DESC; i++)
{
if(call_desc[i].cdid == cdid_count)
@@ -91,7 +91,7 @@ again:
}
splx(x);
-
+
return(cdid_count);
}
@@ -113,7 +113,7 @@ reserve_cd(void)
x = SPLI4B();
cd = NULL;
-
+
for(i=0; i < N_CALL_DESC; i++)
{
if(call_desc[i].cdid == CDID_UNUSED)
@@ -140,7 +140,7 @@ reserve_cd(void)
/*---------------------------------------------------------------------------*
* free a calldescriptor
* ---------------------
- * free a unused calldescriptor by giving address of calldescriptor
+ * free an unused calldescriptor by giving address of calldescriptor
* and writing a 0 into the cdid field marking it as unused.
*---------------------------------------------------------------------------*/
void
@@ -148,7 +148,7 @@ freecd_by_cd(call_desc_t *cd)
{
int i;
int x = SPLI4B();
-
+
for(i=0; i < N_CALL_DESC; i++)
{
if( (call_desc[i].cdid != CDID_UNUSED) &&
@@ -164,7 +164,7 @@ freecd_by_cd(call_desc_t *cd)
if(i == N_CALL_DESC)
panic("freecd_by_cd: ERROR, cd not found, cr = %d\n", cd->cr);
- splx(x);
+ splx(x);
}
/*---------------------------------------------------------------------------*
@@ -234,13 +234,13 @@ get_rand_cr(int unit)
register int i, j;
static u_char val, retval;
static int called = 42;
-
+
val += ++called;
-
+
for(i=0; i < 50 ; i++, val++)
{
int found = 1;
-
+
#ifdef RANDOMDEV
read_random((char *)&val, sizeof(val));
#else
@@ -248,7 +248,7 @@ get_rand_cr(int unit)
#endif /* RANDOMDEV */
retval = val & 0x7f;
-
+
if(retval == 0 || retval == 0x7f)
continue;
@@ -291,13 +291,13 @@ i4b_init_callout(call_desc_t *cd)
/*---------------------------------------------------------------------------*
* daemon is attached
*---------------------------------------------------------------------------*/
-void
+void
i4b_l4_daemon_attached(void)
{
int i;
int x = SPLI4B();
-
+
for(i=0; i < nctrl; i++)
{
/*XXX*/ if(ctrl_desc[i].ctrl_type == CTRL_PASSIVE)
@@ -312,7 +312,7 @@ i4b_l4_daemon_attached(void)
/*---------------------------------------------------------------------------*
* daemon is detached
*---------------------------------------------------------------------------*/
-void
+void
i4b_l4_daemon_detached(void)
{
int i;
@@ -338,11 +338,11 @@ void i4b_print_cdp(call_desc_t *cdp);
void i4b_print_cdx(int index);
void i4b_print_cda(void);
void i4b_print_cdaa(void);
-
+
/*---------------------------------------------------------------------------*
* print a call descriptor by cd-pointer
*---------------------------------------------------------------------------*/
-void
+void
i4b_print_cdp(call_desc_t *cdp)
{
if((cdp > &(call_desc[N_CALL_DESC])) || (cdp < &(call_desc[0])))
@@ -359,12 +359,12 @@ i4b_print_cdp(call_desc_t *cdp)
ctrl_desc[cdp->controller].unit,
ctrl_desc[cdp->controller].dl_est,
ctrl_desc[cdp->controller].bch_state[CHAN_B1],
- ctrl_desc[cdp->controller].bch_state[CHAN_B2]);
+ ctrl_desc[cdp->controller].bch_state[CHAN_B2]);
printf(" cr = 0x%02x\n", cdp->cr);
printf(" crflag = %d\n", cdp->crflag);
printf(" channelid = %d\n", cdp->channelid);
printf(" bprot = %d\n", cdp->bprot);
- printf(" bcap = %d\n", cdp->bcap);
+ printf(" bcap = %d\n", cdp->bcap);
printf(" driver = %d\n", cdp->driver);
printf(" driver_unit = %d\n", cdp->driver_unit);
printf(" call_state = %d\n", cdp->call_state);
@@ -386,7 +386,7 @@ i4b_print_cdp(call_desc_t *cdp)
/*---------------------------------------------------------------------------*
* print a call descriptor by index
*---------------------------------------------------------------------------*/
-void
+void
i4b_print_cdx(int index)
{
if(index >= N_CALL_DESC)
@@ -400,7 +400,7 @@ i4b_print_cdx(int index)
/*---------------------------------------------------------------------------*
* print all call descriptors
*---------------------------------------------------------------------------*/
-void
+void
i4b_print_cda(void)
{
int i;
@@ -414,7 +414,7 @@ i4b_print_cda(void)
/*---------------------------------------------------------------------------*
* print all active call descriptors
*---------------------------------------------------------------------------*/
-void
+void
i4b_print_cdaa(void)
{
int i;
diff --git a/sys/ia64/include/_limits.h b/sys/ia64/include/_limits.h
index 2f9d6ed..b694386 100644
--- a/sys/ia64/include/_limits.h
+++ b/sys/ia64/include/_limits.h
@@ -79,8 +79,8 @@
#if !defined(_POSIX_SOURCE) && !defined(_XOPEN_SOURCE)
#define SIZE_T_MAX ULONG_MAX /* max value for a size_t */
-#define OFF_MAX LONG_MAX /* max value for a off_t */
-#define OFF_MIN LONG_MIN /* min value for a off_t */
+#define OFF_MAX LONG_MAX /* max value for an off_t */
+#define OFF_MIN LONG_MIN /* min value for an off_t */
/* Quads and longs are the same. Ensure they stay in sync. */
#define UQUAD_MAX (ULONG_MAX) /* max value for a uquad_t */
diff --git a/sys/ia64/include/limits.h b/sys/ia64/include/limits.h
index 2f9d6ed..b694386 100644
--- a/sys/ia64/include/limits.h
+++ b/sys/ia64/include/limits.h
@@ -79,8 +79,8 @@
#if !defined(_POSIX_SOURCE) && !defined(_XOPEN_SOURCE)
#define SIZE_T_MAX ULONG_MAX /* max value for a size_t */
-#define OFF_MAX LONG_MAX /* max value for a off_t */
-#define OFF_MIN LONG_MIN /* min value for a off_t */
+#define OFF_MAX LONG_MAX /* max value for an off_t */
+#define OFF_MIN LONG_MIN /* min value for an off_t */
/* Quads and longs are the same. Ensure they stay in sync. */
#define UQUAD_MAX (ULONG_MAX) /* max value for a uquad_t */
diff --git a/sys/kern/imgact_gzip.c b/sys/kern/imgact_gzip.c
index 1ea1ad4..4e0d6bc 100644
--- a/sys/kern/imgact_gzip.c
+++ b/sys/kern/imgact_gzip.c
@@ -329,7 +329,7 @@ Flush(void *vp, u_char * ptr, u_long siz)
u_char *p = ptr, *q;
int i;
- /* First, find a a.out-header */
+ /* First, find an a.out-header. */
if (gz->output < sizeof gz->a_out) {
q = (u_char *) & gz->a_out;
i = min(siz, sizeof gz->a_out - gz->output);
diff --git a/sys/kern/imgact_shell.c b/sys/kern/imgact_shell.c
index 3df4890..7151f6c 100644
--- a/sys/kern/imgact_shell.c
+++ b/sys/kern/imgact_shell.c
@@ -40,7 +40,7 @@
#endif
/*
- * Shell interpreter image activator. A interpreter name beginning
+ * Shell interpreter image activator. An interpreter name beginning
* at imgp->stringbase is the minimal successful exit requirement.
*/
int
diff --git a/sys/kern/subr_bus.c b/sys/kern/subr_bus.c
index dddea788..7444a00 100644
--- a/sys/kern/subr_bus.c
+++ b/sys/kern/subr_bus.c
@@ -193,8 +193,8 @@ void print_devclass_list(void);
* Also note: we specifically do not attach a device to the device_t tree
* to avoid potential chicken and egg problems. One could argue that all
* of this belongs to the root node. One could also further argue that the
- * sysctl interface that we have not might more properly be a ioctl
- * interface, but at this stage of the game, I'm not inclinde to rock that
+ * sysctl interface that we have not might more properly be an ioctl
+ * interface, but at this stage of the game, I'm not inclined to rock that
* boat.
*
* I'm also not sure that the SIGIO support is done correctly or not, as
diff --git a/sys/kern/subr_clist.c b/sys/kern/subr_clist.c
index 78bb231..165f628 100644
--- a/sys/kern/subr_clist.c
+++ b/sys/kern/subr_clist.c
@@ -149,7 +149,7 @@ cblock_alloc_cblocks(number)
}
/*
- * Set the cblock allocation policy for a a clist.
+ * Set the cblock allocation policy for a clist.
* Must be called in process context at spltty().
*/
void
diff --git a/sys/kern/tty_subr.c b/sys/kern/tty_subr.c
index 78bb231..165f628 100644
--- a/sys/kern/tty_subr.c
+++ b/sys/kern/tty_subr.c
@@ -149,7 +149,7 @@ cblock_alloc_cblocks(number)
}
/*
- * Set the cblock allocation policy for a a clist.
+ * Set the cblock allocation policy for a clist.
* Must be called in process context at spltty().
*/
void
diff --git a/sys/kern/vfs_bio.c b/sys/kern/vfs_bio.c
index c44e1c6..336ca3f 100644
--- a/sys/kern/vfs_bio.c
+++ b/sys/kern/vfs_bio.c
@@ -2932,7 +2932,7 @@ bioq_remove(struct bio_queue_head *head, struct bio *bp)
* bufwait:
*
* Wait for buffer I/O completion, returning error status. The buffer
- * is left locked and B_DONE on return. B_EINTR is converted into a EINTR
+ * is left locked and B_DONE on return. B_EINTR is converted into an EINTR
* error and cleared.
*/
int
diff --git a/sys/libkern/ia64/__moddi3.S b/sys/libkern/ia64/__moddi3.S
index 0eedf4f..a1e330a 100644
--- a/sys/libkern/ia64/__moddi3.S
+++ b/sys/libkern/ia64/__moddi3.S
@@ -55,7 +55,7 @@ __moddi3:
// floating-point registers used: f6, f7, f8, f9, f10, f11, f12
// predicate registers used: p6
- setf.sig f12=r32 // holds a in integer form
+ setf.sig f12=r32 // holds an in integer form
setf.sig f7=r33
nop.b 0
} { .mlx
diff --git a/sys/libkern/ia64/__umoddi3.S b/sys/libkern/ia64/__umoddi3.S
index 3c56677..a4d8a0b 100644
--- a/sys/libkern/ia64/__umoddi3.S
+++ b/sys/libkern/ia64/__umoddi3.S
@@ -54,7 +54,7 @@ __umoddi3:
// floating-point registers used: f6, f7, f8, f9, f10, f11, f12
// predicate registers used: p6
- setf.sig f12=r32 // holds a in integer form
+ setf.sig f12=r32 // holds an in integer form
setf.sig f7=r33
nop.b 0;;
} { .mfi
diff --git a/sys/net/if_iso88025subr.c b/sys/net/if_iso88025subr.c
index e55bf45..acb1147 100644
--- a/sys/net/if_iso88025subr.c
+++ b/sys/net/if_iso88025subr.c
@@ -321,7 +321,7 @@ iso88025_output(ifp, m, dst, rt0)
* full mac, llc, and source routing function to be controlled.
* llc and source routing information must already be in the
* mbuf provided, ac/fc are set in sa_data. sockaddr.sa_data
- * should be a iso88025_sockaddr_data structure see iso88025.h
+ * should be an iso88025_sockaddr_data structure see iso88025.h
*/
loop_copy = -1;
sd = (struct iso88025_sockaddr_data *)dst->sa_data;
diff --git a/sys/net/if_var.h b/sys/net/if_var.h
index 6bfc844..4c95804 100644
--- a/sys/net/if_var.h
+++ b/sys/net/if_var.h
@@ -52,12 +52,12 @@
* and then transmits it on its medium.
*
* On input, each interface unwraps the data received by it, and either
- * places it on the input queue of a internetwork datagram routine
+ * places it on the input queue of an internetwork datagram routine
* and posts the associated software interrupt, or passes the datagram to a raw
* packet input routine.
*
* Routines exist for locating interfaces by their addresses
- * or for locating a interface on a certain network, as well as more general
+ * or for locating an interface on a certain network, as well as more general
* routing and gateway routines maintaining information used to locate
* interfaces. These routines live in the files if.c and route.c
*/
diff --git a/sys/netatm/atm_cm.c b/sys/netatm/atm_cm.c
index 851ce4b..b101abf 100644
--- a/sys/netatm/atm_cm.c
+++ b/sys/netatm/atm_cm.c
@@ -2118,7 +2118,7 @@ atm_cm_match(ap, pcop)
/*
* Find Shareable LLC VCC
*
- * Given a endpoint-supplied connection attribute using LLC multiplexing,
+ * Given an endpoint-supplied connection attribute using LLC multiplexing,
* this function will attempt to locate an existing connection which meets
* the requirements of the supplied attributes.
*
diff --git a/sys/netatm/spans/spans_kxdr.h b/sys/netatm/spans/spans_kxdr.h
index c6f80c5..6ffead7 100644
--- a/sys/netatm/spans/spans_kxdr.h
+++ b/sys/netatm/spans/spans_kxdr.h
@@ -252,7 +252,7 @@ xdr_putint32(XDR *xdrs, int32_t *ip)
/*
* Support struct for discriminated unions.
* You create an array of xdrdiscrim structures, terminated with
- * a entry with a null procedure pointer. The xdr_union routine gets
+ * an entry with a null procedure pointer. The xdr_union routine gets
* the discriminant value and then searches the array of structures
* for a matching value. If a match is found the associated xdr routine
* is called to handle that part of the union. If there is
diff --git a/sys/netatm/uni/unisig_print.c b/sys/netatm/uni/unisig_print.c
index 8db5bd6..d3ad342 100644
--- a/sys/netatm/uni/unisig_print.c
+++ b/sys/netatm/uni/unisig_print.c
@@ -178,7 +178,7 @@ find_type(tbl, type)
* Print an ATM address
*
* Arguments:
- * p pointer to a Atm_address
+ * p pointer to an Atm_address
*
* Returns:
* none
diff --git a/sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c b/sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c
index 00bd663..603d722 100644
--- a/sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c
+++ b/sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c
@@ -1355,7 +1355,7 @@ ubt_isoc_in_start(ubt_softc_p sc)
usbd_status status;
int i;
- /* Initialize a isoc-in USB transfer and then schedule it */
+ /* Initialize an isoc-in USB transfer and then schedule it. */
for (i = 0; i < sc->sc_isoc_nframes; i++)
sc->sc_isoc_in_frlen[i] = sc->sc_isoc_size;
@@ -1576,7 +1576,7 @@ ubt_isoc_out_start(ubt_softc_p sc, struct mbuf *m)
NG_FREE_M(m);
- /* Initialize a isoc-out USB transfer and then schedule it */
+ /* Initialize an isoc-out USB transfer and then schedule it. */
usbd_setup_isoc_xfer(
sc->sc_isoc_out_xfer,
diff --git a/sys/netgraph/ng_base.c b/sys/netgraph/ng_base.c
index 3956b93..eb5a8eb 100644
--- a/sys/netgraph/ng_base.c
+++ b/sys/netgraph/ng_base.c
@@ -885,7 +885,7 @@ ng_name2noderef(node_p here, const char *name)
}
/*
- * Decode a ID name, eg. "[f03034de]". Returns 0 if the
+ * Decode an ID name, eg. "[f03034de]". Returns 0 if the
* string is not valid, otherwise returns the value.
*/
static ng_ID_t
diff --git a/sys/netgraph/ng_socket.c b/sys/netgraph/ng_socket.c
index 357c2a9..d5f24b8 100644
--- a/sys/netgraph/ng_socket.c
+++ b/sys/netgraph/ng_socket.c
@@ -562,7 +562,7 @@ ng_detach_common(struct ngpcb *pcbp, int which)
#ifdef NOTYET
/*
- * File descriptors can be passed into a AF_NETGRAPH socket.
+ * File descriptors can be passed into an AF_NETGRAPH socket.
* Note, that file descriptors cannot be passed OUT.
* Only character device descriptors are accepted.
* Character devices are useful to connect a graph to a device,
@@ -597,7 +597,7 @@ ng_internalize(struct mbuf *control, struct thread *td)
return (error);
/* Depending on what kind of resource it is, act differently. For
- * devices, we treat it as a file. For a AF_NETGRAPH socket,
+ * devices, we treat it as a file. For an AF_NETGRAPH socket,
* shortcut straight to the node. */
switch (fp->f_type) {
case DTYPE_VNODE:
diff --git a/sys/netinet/in.h b/sys/netinet/in.h
index c974bc5..83eeae7 100644
--- a/sys/netinet/in.h
+++ b/sys/netinet/in.h
@@ -273,7 +273,7 @@ __END_DECLS
* sysctl(3). (net.inet.ip.port{hi,low}{first,last}_auto)
*
* Changing those values has bad security implications if you are
- * using a a stateless firewall that is allowing packets outside of that
+ * using a stateless firewall that is allowing packets outside of that
* range in order to allow transparent outgoing connections.
*
* Such a firewall configuration will generally depend on the use of these
diff --git a/sys/netinet/ip_dummynet.c b/sys/netinet/ip_dummynet.c
index 9cd2d6f..abee7d6 100644
--- a/sys/netinet/ip_dummynet.c
+++ b/sys/netinet/ip_dummynet.c
@@ -1094,7 +1094,7 @@ dummynet_io(struct mbuf *m, int pipe_nr, int dir, struct ip_fw_args *fwa)
pipe_nr &= 0xffff ;
/*
- * this is a dummynet rule, so we expect a O_PIPE or O_QUEUE rule
+ * This is a dummynet rule, so we expect an O_PIPE or O_QUEUE rule.
*/
fs = locate_flowset(pipe_nr, fwa->rule);
if (fs == NULL)
diff --git a/sys/netinet/ip_output.c b/sys/netinet/ip_output.c
index 4c19090..3484905 100644
--- a/sys/netinet/ip_output.c
+++ b/sys/netinet/ip_output.c
@@ -874,7 +874,7 @@ spd_done:
* initiated packets) If we used the loopback inteface,
* we would not be able to control what happens
* as the packet runs through ip_input() as
- * it is done through a ISR.
+ * it is done through an ISR.
*/
LIST_FOREACH(ia,
INADDR_HASH(dst->sin_addr.s_addr), ia_hash) {
diff --git a/sys/netinet/libalias/alias_nbt.c b/sys/netinet/libalias/alias_nbt.c
index 4bc41bc..508bf51 100644
--- a/sys/netinet/libalias/alias_nbt.c
+++ b/sys/netinet/libalias/alias_nbt.c
@@ -239,7 +239,7 @@ int AliasHandleUdpNbt(
#ifdef DEBUG
printf("%s:%d-->", inet_ntoa(ndh->source_ip), ntohs(ndh->source_port) );
#endif
- /* Doing a IP address and Port number Translation */
+ /* Doing an IP address and Port number Translation */
if ( uh->uh_sum != 0 ) {
int acc;
u_short *sptr;
diff --git a/sys/netinet/libalias/alias_proxy.c b/sys/netinet/libalias/alias_proxy.c
index 6c95ea9..b9a9798 100644
--- a/sys/netinet/libalias/alias_proxy.c
+++ b/sys/netinet/libalias/alias_proxy.c
@@ -37,7 +37,7 @@ __FBSDID("$FreeBSD$");
modified. In certain cases, it is necessary to somehow encode
the original address/port info into the packet. Two methods are
presently supported: addition of a [DEST addr port] string at the
- beginning a of tcp stream, or inclusion of an optional field
+ beginning of a tcp stream, or inclusion of an optional field
in the IP header.
There is one public API function:
diff --git a/sys/netinet6/in6_cksum.c b/sys/netinet6/in6_cksum.c
index cd49b88..170fe2e 100644
--- a/sys/netinet6/in6_cksum.c
+++ b/sys/netinet6/in6_cksum.c
@@ -85,7 +85,7 @@
/*
* m MUST contain a continuous IP6 header.
- * off is a offset where TCP/UDP/ICMP6 header starts.
+ * off is an offset where TCP/UDP/ICMP6 header starts.
* len is a total length of a transport segment.
* (e.g. TCP header + TCP payload)
*/
diff --git a/sys/netinet6/ipsec.c b/sys/netinet6/ipsec.c
index c25b1bf..000ab1b 100644
--- a/sys/netinet6/ipsec.c
+++ b/sys/netinet6/ipsec.c
@@ -418,7 +418,7 @@ ipsec4_getpolicybyaddr(m, dir, flag, error)
bzero(&spidx, sizeof(spidx));
- /* make a index to look for a policy */
+ /* Make an index to look for a policy. */
*error = ipsec_setspidx_mbuf(&spidx, dir, AF_INET, m,
(flag & IP_FORWARDING) ? 0 : 1);
@@ -635,7 +635,7 @@ ipsec6_getpolicybyaddr(m, dir, flag, error)
bzero(&spidx, sizeof(spidx));
- /* make a index to look for a policy */
+ /* Make an index to look for a policy. */
*error = ipsec_setspidx_mbuf(&spidx, dir, AF_INET6, m,
(flag & IP_FORWARDING) ? 0 : 1);
diff --git a/sys/netinet6/nd6_rtr.c b/sys/netinet6/nd6_rtr.c
index 338a00c..dde4714 100644
--- a/sys/netinet6/nd6_rtr.c
+++ b/sys/netinet6/nd6_rtr.c
@@ -1611,7 +1611,7 @@ in6_ifadd(pr, ifid)
* of DAD. we omitted DAD for this reason in the past.
* (3) a user can prevent autoconfiguration of global address
* by removing link-local address by hand (this is partly because we
- * don't have other way to control the use of IPv6 on a interface.
+ * don't have other way to control the use of IPv6 on an interface.
* this has been our design choice - cf. NRL's "ifconfig auto").
* (4) it is easier to manage when an interface has addresses
* with the same interface identifier, than to have multiple addresses
diff --git a/sys/netipsec/ipsec.c b/sys/netipsec/ipsec.c
index 9f126c5..2e765e0 100644
--- a/sys/netipsec/ipsec.c
+++ b/sys/netipsec/ipsec.c
@@ -409,7 +409,7 @@ ipsec_getpolicybyaddr(m, dir, flag, error)
sp = NULL;
if (key_havesp(dir)) {
- /* make a index to look for a policy */
+ /* Make an index to look for a policy. */
*error = ipsec_setspidx(m, &spidx,
(flag & IP_FORWARDING) ? 0 : 1);
if (*error != 0) {
diff --git a/sys/netipsec/key.c b/sys/netipsec/key.c
index 8fc161c..ff6bae1 100644
--- a/sys/netipsec/key.c
+++ b/sys/netipsec/key.c
@@ -137,7 +137,7 @@ static LIST_HEAD(_spacqtree, secspacq) spacqtree; /* SP acquiring list */
static u_int saorder_state_valid[] = {
SADB_SASTATE_DYING, SADB_SASTATE_MATURE,
/*
- * This order is important because we must select a oldest SA
+ * This order is important because we must select the oldest SA
* for outbound processing. For inbound, This is not important.
*/
};
@@ -1673,7 +1673,7 @@ fail:
/*
* SADB_X_SPDADD, SADB_X_SPDSETIDX or SADB_X_SPDUPDATE processing
- * add a entry to SP database, when received
+ * add an entry to SP database, when received
* <base, address(SD), (lifetime(H),) policy>
* from the user(?).
* Adding to SP database,
@@ -2201,7 +2201,7 @@ key_spdacquire(sp)
if (sp->policy != IPSEC_POLICY_IPSEC)
panic("key_spdacquire: policy mismathed. IPsec is expected.\n");
- /* get a entry to check whether sent message or not. */
+ /* Get an entry to check whether sent message or not. */
if ((newspacq = key_getspacq(&sp->spidx)) != NULL) {
if (key_blockacq_count < newspacq->count) {
/* reset counter and do send message. */
@@ -4822,7 +4822,7 @@ key_getsavbyseq(sah, seq)
/*
* SADB_ADD processing
- * add a entry to SA database, when received
+ * add an entry to SA database, when received
* <base, SA, (SA2), (lifetime(HSC),) address(SD), (address(P),)
* key(AE), (identity(SD),) (sensitivity)>
* from the ikmpd,
@@ -5647,7 +5647,7 @@ key_acquire(const struct secasindex *saidx, struct secpolicy *sp)
* getting something message from IKEd. In later case, to be
* managed with ACQUIRING list.
*/
- /* get a entry to check whether sending message or not. */
+ /* Get an entry to check whether sending message or not. */
if ((newacq = key_getacq(saidx)) != NULL) {
if (key_blockacq_count < newacq->count) {
/* reset counter and do send message. */
diff --git a/sys/netipx/ipx_pcb.h b/sys/netipx/ipx_pcb.h
index cd1bfe5..32adcc88 100644
--- a/sys/netipx/ipx_pcb.h
+++ b/sys/netipx/ipx_pcb.h
@@ -74,7 +74,7 @@ struct ipxpcb {
#define sotoipxpcb(so) ((struct ipxpcb *)((so)->so_pcb))
/*
- * Nominal space allocated to a IPX socket.
+ * Nominal space allocated to an IPX socket.
*/
#define IPXSNDQ 16384
#define IPXRCVQ 40960
diff --git a/sys/netkey/key.c b/sys/netkey/key.c
index 25f7858..dbc0a2a 100644
--- a/sys/netkey/key.c
+++ b/sys/netkey/key.c
@@ -1708,7 +1708,7 @@ fail:
/*
* SADB_X_SPDADD, SADB_X_SPDSETIDX or SADB_X_SPDUPDATE processing
- * add a entry to SP database, when received
+ * add an entry to SP database, when received
* <base, address(SD), (lifetime(H),) policy>
* from the user(?).
* Adding to SP database,
@@ -2239,7 +2239,7 @@ key_spdacquire(sp)
if (sp->policy != IPSEC_POLICY_IPSEC)
panic("key_spdacquire: policy mismathed. IPsec is expected.\n");
- /* get a entry to check whether sent message or not. */
+ /* Get an entry to check whether sent message or not. */
if ((newspacq = key_getspacq(&sp->spidx)) != NULL) {
if (key_blockacq_count < newspacq->count) {
/* reset counter and do send message. */
@@ -5004,7 +5004,7 @@ key_getsavbyseq(sah, seq)
/*
* SADB_ADD processing
- * add a entry to SA database, when received
+ * add an entry to SA database, when received
* <base, SA, (SA2), (lifetime(HSC),) address(SD), (address(P),)
* key(AE), (identity(SD),) (sensitivity)>
* from the ikmpd,
@@ -5818,7 +5818,7 @@ key_acquire(saidx, sp)
* getting something message from IKEd. In later case, to be
* managed with ACQUIRING list.
*/
- /* get a entry to check whether sending message or not. */
+ /* Get an entry to check whether sending message or not. */
if ((newacq = key_getacq(saidx)) != NULL) {
if (key_blockacq_count < newacq->count) {
/* reset counter and do send message. */
diff --git a/sys/netsmb/smb.h b/sys/netsmb/smb.h
index 56cfbcc..a6dc8ee 100644
--- a/sys/netsmb/smb.h
+++ b/sys/netsmb/smb.h
@@ -432,7 +432,7 @@ enum smb_dialects {
#define ERRwrite 29 /* Write fault */
#define ERRread 30 /* Read fault */
#define ERRgeneral 31 /* General failure */
-#define ERRbadshare 32 /* A open conflicts with an existing open */
+#define ERRbadshare 32 /* An open conflicts with an existing open */
#define ERRlock 33 /* lock/unlock conflict */
#define ERRwrongdisk 34 /* The wrong disk was found in a drive */
#define ERRFCBunavail 35 /* No FCBs available */
diff --git a/sys/nfsserver/nfs_serv.c b/sys/nfsserver/nfs_serv.c
index 19fc992..1d953cd 100644
--- a/sys/nfsserver/nfs_serv.c
+++ b/sys/nfsserver/nfs_serv.c
@@ -3212,7 +3212,7 @@ again:
if (xfer > 0)
cp += tsiz;
}
- /* And null pad to a int32_t boundary */
+ /* And null pad to an int32_t boundary. */
for (i = 0; i < rem; i++)
*bp++ = '\0';
nfsm_clget;
@@ -3539,7 +3539,7 @@ again:
if (xfer > 0)
cp += tsiz;
}
- /* And null pad to a int32_t boundary */
+ /* And null pad to an int32_t boundary. */
for (i = 0; i < rem; i++)
*bp++ = '\0';
diff --git a/sys/pc98/cbus/sio.c b/sys/pc98/cbus/sio.c
index 3aa3101..d866963 100644
--- a/sys/pc98/cbus/sio.c
+++ b/sys/pc98/cbus/sio.c
@@ -304,7 +304,7 @@ struct com_s {
Port_t sts_port;
Port_t in_modem_port;
Port_t intr_ctrl_port;
- Port_t rsabase; /* iobase address of a I/O-DATA RSA board */
+ Port_t rsabase; /* Iobase address of an I/O-DATA RSA board. */
int intr_enable;
int pc98_prev_modem_status;
int pc98_modem_delta;
diff --git a/sys/pc98/pc98/mse.c b/sys/pc98/pc98/mse.c
index ac3a1da..52bd373 100644
--- a/sys/pc98/pc98/mse.c
+++ b/sys/pc98/pc98/mse.c
@@ -912,7 +912,7 @@ mse_getlogi(tag, handle, dx, dy, but)
* Routines for the ATI Inport bus mouse.
*/
/*
- * Test for a ATI Inport bus mouse and return 1 if it is.
+ * Test for an ATI Inport bus mouse and return 1 if it is.
* (do not enable interrupts)
*/
static int
diff --git a/sys/pc98/pc98/sio.c b/sys/pc98/pc98/sio.c
index 3aa3101..d866963 100644
--- a/sys/pc98/pc98/sio.c
+++ b/sys/pc98/pc98/sio.c
@@ -304,7 +304,7 @@ struct com_s {
Port_t sts_port;
Port_t in_modem_port;
Port_t intr_ctrl_port;
- Port_t rsabase; /* iobase address of a I/O-DATA RSA board */
+ Port_t rsabase; /* Iobase address of an I/O-DATA RSA board. */
int intr_enable;
int pc98_prev_modem_status;
int pc98_modem_delta;
diff --git a/sys/pccard/pcic_isa.c b/sys/pccard/pcic_isa.c
index a35dc01..92db4e5 100644
--- a/sys/pccard/pcic_isa.c
+++ b/sys/pccard/pcic_isa.c
@@ -143,7 +143,7 @@ pcic_isa_probe(device_t dev)
* offset we set after we assume it's broken.
*
* Note: because of this, we may incorrectly detect a single
- * slot vlsi chip as a i82365sl step D. I cannot find a
+ * slot vlsi chip as an i82365sl step D. I cannot find a
* datasheet for the affected chip, so that's the best we can
* do for now.
*/
@@ -224,7 +224,7 @@ pcic_isa_probe(device_t dev)
/*
* Intel i82365sl-DF step or maybe a vlsi 82c146
* we detected the vlsi case earlier, so if the controller
- * isn't set, we know it is a i82365sl step D.
+ * isn't set, we know it is an i82365sl step D.
*/
case PCIC_INTEL2:
if (sp->controller == -1)
diff --git a/sys/pci/if_de.c b/sys/pci/if_de.c
index 88280d1..d186586 100644
--- a/sys/pci/if_de.c
+++ b/sys/pci/if_de.c
@@ -3417,7 +3417,7 @@ tulip_rx_intr(
* those buffers and chain to the starting mbuf. All buffers but
* the last buffer have the same length so we can set that now.
* (we add to last_offset instead of multiplying since we normally
- * won't go into the loop and thereby saving a ourselves from
+ * won't go into the loop and thereby saving ourselves from
* doing a multiplication by 0 in the normal case).
*/
_IF_DEQUEUE(&sc->tulip_rxq, ms);
@@ -3918,7 +3918,7 @@ tulip_intr_handler(
#if defined(TULIP_USE_SOFTINTR)
/*
- * This is a experimental idea to alleviate problems due to interrupt
+ * This is an experimental idea to alleviate problems due to interrupt
* livelock. What is interrupt livelock? It's when you spend all your
* time servicing device interrupts and never drop below device ipl
* to do "useful" work.
diff --git a/sys/pci/if_xl.c b/sys/pci/if_xl.c
index 8a693df..95bcf77 100644
--- a/sys/pci/if_xl.c
+++ b/sys/pci/if_xl.c
@@ -78,7 +78,7 @@
* (3c59x) also supported a bus master mode, however for those chips
* you could only DMA packets to/from a contiguous memory buffer. For
* transmission this would mean copying the contents of the queued mbuf
- * chain into a an mbuf cluster and then DMAing the cluster. This extra
+ * chain into an mbuf cluster and then DMAing the cluster. This extra
* copy would sort of defeat the purpose of the bus master support for
* any packet that doesn't fit into a single mbuf.
*
diff --git a/sys/powerpc/include/_limits.h b/sys/powerpc/include/_limits.h
index b5e3bd1..13ea139 100644
--- a/sys/powerpc/include/_limits.h
+++ b/sys/powerpc/include/_limits.h
@@ -92,8 +92,8 @@
#if !defined(_POSIX_SOURCE)
#define SIZE_T_MAX UINT_MAX /* max value for a size_t */
-#define OFF_MAX LLONG_MAX /* max value for a off_t */
-#define OFF_MIN LLONG_MIN /* min value for a off_t */
+#define OFF_MAX LLONG_MAX /* max value for an off_t */
+#define OFF_MIN LLONG_MIN /* min value for an off_t */
/* Quads and long longs are the same size. Ensure they stay in sync. */
#define UQUAD_MAX ULLONG_MAX /* max value for a uquad_t */
diff --git a/sys/powerpc/include/limits.h b/sys/powerpc/include/limits.h
index b5e3bd1..13ea139 100644
--- a/sys/powerpc/include/limits.h
+++ b/sys/powerpc/include/limits.h
@@ -92,8 +92,8 @@
#if !defined(_POSIX_SOURCE)
#define SIZE_T_MAX UINT_MAX /* max value for a size_t */
-#define OFF_MAX LLONG_MAX /* max value for a off_t */
-#define OFF_MIN LLONG_MIN /* min value for a off_t */
+#define OFF_MAX LLONG_MAX /* max value for an off_t */
+#define OFF_MIN LLONG_MIN /* min value for an off_t */
/* Quads and long longs are the same size. Ensure they stay in sync. */
#define UQUAD_MAX ULLONG_MAX /* max value for a uquad_t */
diff --git a/sys/sparc64/include/_limits.h b/sys/sparc64/include/_limits.h
index 4620e36..be8cf0d 100644
--- a/sys/sparc64/include/_limits.h
+++ b/sys/sparc64/include/_limits.h
@@ -73,8 +73,8 @@
#if !defined(_POSIX_SOURCE) && !defined(_XOPEN_SOURCE)
#define SIZE_T_MAX ULONG_MAX /* max value for a size_t */
-#define OFF_MAX LONG_MAX /* max value for a off_t */
-#define OFF_MIN LONG_MIN /* min value for a off_t */
+#define OFF_MAX LONG_MAX /* max value for an off_t */
+#define OFF_MIN LONG_MIN /* min value for an off_t */
/* Quads and longs are the same on the alpha. Ensure they stay in sync. */
#define UQUAD_MAX (ULONG_MAX) /* max value for a uquad_t */
diff --git a/sys/sparc64/include/limits.h b/sys/sparc64/include/limits.h
index 4620e36..be8cf0d 100644
--- a/sys/sparc64/include/limits.h
+++ b/sys/sparc64/include/limits.h
@@ -73,8 +73,8 @@
#if !defined(_POSIX_SOURCE) && !defined(_XOPEN_SOURCE)
#define SIZE_T_MAX ULONG_MAX /* max value for a size_t */
-#define OFF_MAX LONG_MAX /* max value for a off_t */
-#define OFF_MIN LONG_MIN /* min value for a off_t */
+#define OFF_MAX LONG_MAX /* max value for an off_t */
+#define OFF_MIN LONG_MIN /* min value for an off_t */
/* Quads and longs are the same on the alpha. Ensure they stay in sync. */
#define UQUAD_MAX (ULONG_MAX) /* max value for a uquad_t */
diff --git a/sys/sparc64/sparc64/cache.c b/sys/sparc64/sparc64/cache.c
index 6b27f14..227577e 100644
--- a/sys/sparc64/sparc64/cache.c
+++ b/sys/sparc64/sparc64/cache.c
@@ -328,7 +328,7 @@ icache_flush(vm_offset_t start, vm_offset_t end)
}
/*
- * Invalidate a I$ physical range using diagnostic accesses.
+ * Invalidate an I$ physical range using diagnostic accesses.
* NOTE: there is a race between checking the tag and invalidating it. It
* cannot be closed by disabling interrupts, since the fetch for the next
* instruction may be in that line, so we don't even bother.
@@ -454,7 +454,7 @@ dcache_blast()
stxa_sync(dca, ASI_DCACHE_TAG, 0);
}
-/* Flush a E$ physical range using block commit stores. */
+/* Flush an E$ physical range using block commit stores. */
void
ecache_flush(vm_offset_t start, vm_offset_t end)
{
@@ -480,7 +480,7 @@ ecache_flush(vm_offset_t start, vm_offset_t end)
#if 0
/*
- * Invalidate a E$ range using diagnostic accesses.
+ * Invalidate an E$ range using diagnostic accesses.
* This is disabled: it suffers from the same races as dcache_blast() and
* icache_blast_phys(), but they may be fatal here because blasting an E$ line
* can discard modified data.
diff --git a/sys/sparc64/sparc64/interrupt.S b/sys/sparc64/sparc64/interrupt.S
index 971de31..11c1753 100644
--- a/sys/sparc64/sparc64/interrupt.S
+++ b/sys/sparc64/sparc64/interrupt.S
@@ -110,7 +110,7 @@ ENTRY(intr_vector)
lduw [%g2 + IV_PRI], %g6
/*
- * Get a intr_request from the free list. There should always be one
+ * Get an intr_request from the free list. There should always be one
* unless we are getting an interrupt storm from stray interrupts, in
* which case the we will deference a NULL pointer and panic.
*/
diff --git a/sys/sys/protosw.h b/sys/sys/protosw.h
index e8dd24e..01f3713 100644
--- a/sys/sys/protosw.h
+++ b/sys/sys/protosw.h
@@ -135,7 +135,7 @@ struct protosw {
* The arguments to usrreq are:
* (*protosw[].pr_usrreq)(up, req, m, nam, opt);
* where up is a (struct socket *), req is one of these requests,
- * m is a optional mbuf chain containing a message,
+ * m is an optional mbuf chain containing a message,
* nam is an optional mbuf chain containing an address,
* and opt is a pointer to a socketopt structure or nil.
* The protocol is responsible for disposal of the mbuf chain m,
diff --git a/sys/sys/soundcard.h b/sys/sys/soundcard.h
index 620d657..8733413 100644
--- a/sys/sys/soundcard.h
+++ b/sys/sys/soundcard.h
@@ -364,7 +364,7 @@ struct patch_info {
*
* The low_note and high_note fields define the minimum and maximum note
* frequencies for which this sample is valid. It is possible to define
- * more than one samples for a instrument number at the same time. The
+ * more than one samples for an instrument number at the same time. The
* low_note and high_note fields are used to select the most suitable one.
*
* The fields base_note, high_note and low_note should contain
@@ -446,7 +446,7 @@ struct patmgr_info { /* Note! size must be < 4k since kmalloc() is used */
u_long key; /* Don't worry. Reserved for communication
between the patch manager and the driver. */
#define PM_K_EVENT 1 /* Event from the /dev/sequencer driver */
-#define PM_K_COMMAND 2 /* Request from a application */
+#define PM_K_COMMAND 2 /* Request from an application */
#define PM_K_RESPONSE 3 /* From patmgr to application */
#define PM_ERROR 4 /* Error returned by the patmgr */
int device;
diff --git a/sys/ufs/ffs/ffs_softdep.c b/sys/ufs/ffs/ffs_softdep.c
index b6c3657..78383d6 100644
--- a/sys/ufs/ffs/ffs_softdep.c
+++ b/sys/ufs/ffs/ffs_softdep.c
@@ -992,7 +992,7 @@ static long num_inodedep; /* number of inodedep allocated */
static struct sema inodedep_in_progress;
/*
- * Look up a inodedep. Return 1 if found, 0 if not found.
+ * Look up an inodedep. Return 1 if found, 0 if not found.
* If not found, allocate if DEPALLOC flag is passed.
* Found or allocated entry is returned in inodedeppp.
* This routine must be called with splbio interrupts blocked.
diff --git a/sys/ufs/ufs/dirhash.h b/sys/ufs/ufs/dirhash.h
index 1acb4ef..7f3aef9 100644
--- a/sys/ufs/ufs/dirhash.h
+++ b/sys/ufs/ufs/dirhash.h
@@ -38,7 +38,7 @@
* long linear searches. Deleted entries that are not the last
* in a chain must be marked DIRHASH_DEL.
*
- * We also maintain a information about free space in each block
+ * We also maintain information about free space in each block
* to speed up creations.
*/
#define DIRHASH_EMPTY (-1) /* entry unused */
diff --git a/sys/vm/uma_core.c b/sys/vm/uma_core.c
index a3da677..76e345a 100644
--- a/sys/vm/uma_core.c
+++ b/sys/vm/uma_core.c
@@ -1036,7 +1036,7 @@ zone_ctor(void *mem, int size, void *udata)
/*
* If we're putting the slab header in the actual page we need to
* figure out where in each page it goes. This calculates a right
- * justified offset into the memory on a ALIGN_PTR boundary.
+ * justified offset into the memory on an ALIGN_PTR boundary.
*/
if (!(zone->uz_flags & UMA_ZFLAG_OFFPAGE)) {
int totsize;
diff --git a/sys/vm/vm_object.c b/sys/vm/vm_object.c
index ae26d19..6b0168b 100644
--- a/sys/vm/vm_object.c
+++ b/sys/vm/vm_object.c
@@ -384,7 +384,7 @@ vm_object_reference(vm_object_t object)
}
/*
- * handle deallocating a object of type OBJT_VNODE
+ * Handle deallocating an object of type OBJT_VNODE.
*/
void
vm_object_vndeallocate(vm_object_t object)
OpenPOWER on IntegriCloud