summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2010-01-14 23:12:12 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2010-01-14 23:12:12 +0000
commitd29cfb532fb0ad63b53fe8169e8d797b3ca3dfde (patch)
tree38b2cc45ecdcbc4dd66055354bf3c52cf87e9ad3 /sys
parentc41efa71283b98a8b67da1f025518ffcba73d562 (diff)
fix typos in comments, no code changes;
from Brad Tilley <brad at 16systems dot com>; ok oga@
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/exec_elf.c8
-rw-r--r--sys/kern/kern_acct.c4
-rw-r--r--sys/kern/kern_clock.c4
-rw-r--r--sys/kern/kern_exec.c4
-rw-r--r--sys/kern/kern_fork.c4
-rw-r--r--sys/kern/kern_lkm.c4
-rw-r--r--sys/kern/kern_lock.c4
-rw-r--r--sys/kern/kern_prot.c4
-rw-r--r--sys/kern/kern_tc.c4
-rw-r--r--sys/kern/subr_disk.c4
-rw-r--r--sys/kern/subr_extent.c6
-rw-r--r--sys/kern/sys_pipe.c4
-rw-r--r--sys/kern/sysv_msg.c4
-rw-r--r--sys/kern/uipc_mbuf.c4
-rw-r--r--sys/kern/vfs_getcwd.c4
-rw-r--r--sys/kern/vfs_init.c6
16 files changed, 36 insertions, 36 deletions
diff --git a/sys/kern/exec_elf.c b/sys/kern/exec_elf.c
index 48b48c89a6a..31399169905 100644
--- a/sys/kern/exec_elf.c
+++ b/sys/kern/exec_elf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: exec_elf.c,v 1.71 2009/11/19 02:36:27 guenther Exp $ */
+/* $OpenBSD: exec_elf.c,v 1.72 2010/01/14 23:12:11 schwarze Exp $ */
/*
* Copyright (c) 1996 Per Fogelstrom
@@ -201,7 +201,7 @@ ELFNAME(check_header)(Elf_Ehdr *ehdr)
/*
* We need to check magic, class size, endianess, and version before
* we look at the rest of the Elf_Ehdr structure. These few elements
- * are represented in a machine independant fashion.
+ * are represented in a machine independent fashion.
*/
if (!IS_ELF(*ehdr) ||
ehdr->e_ident[EI_CLASS] != ELF_TARG_CLASS ||
@@ -209,7 +209,7 @@ ELFNAME(check_header)(Elf_Ehdr *ehdr)
ehdr->e_ident[EI_VERSION] != ELF_TARG_VER)
return (ENOEXEC);
- /* Now check the machine dependant header */
+ /* Now check the machine dependent header */
if (ehdr->e_machine != ELF_TARG_MACH ||
ehdr->e_version != ELF_TARG_VER)
return (ENOEXEC);
@@ -641,7 +641,7 @@ native:
pp, &addr, &size, &prot, flags);
/*
- * Update exe_base in case allignment was off.
+ * Update exe_base in case alignment was off.
* For PIE, addr is relative to exe_base so
* adjust it (non PIE exe_base is 0 so no change).
*/
diff --git a/sys/kern/kern_acct.c b/sys/kern/kern_acct.c
index 4a78715dcb7..52f002b1a29 100644
--- a/sys/kern/kern_acct.c
+++ b/sys/kern/kern_acct.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_acct.c,v 1.21 2007/04/12 22:14:15 tedu Exp $ */
+/* $OpenBSD: kern_acct.c,v 1.22 2010/01/14 23:12:11 schwarze Exp $ */
/* $NetBSD: kern_acct.c,v 1.42 1996/02/04 02:15:12 christos Exp $ */
/*-
@@ -193,7 +193,7 @@ acct_process(struct proc *p)
acct.ac_utime = encode_comp_t(ut.tv_sec, ut.tv_usec);
acct.ac_stime = encode_comp_t(st.tv_sec, st.tv_usec);
- /* (3) The elapsed time the commmand ran (and its starting time) */
+ /* (3) The elapsed time the command ran (and its starting time) */
acct.ac_btime = p->p_stats->p_start.tv_sec;
getmicrotime(&tmp);
timersub(&tmp, &p->p_stats->p_start, &tmp);
diff --git a/sys/kern/kern_clock.c b/sys/kern/kern_clock.c
index 48ee37f7de1..5f703f0cbda 100644
--- a/sys/kern/kern_clock.c
+++ b/sys/kern/kern_clock.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_clock.c,v 1.69 2009/11/04 19:14:10 kettenis Exp $ */
+/* $OpenBSD: kern_clock.c,v 1.70 2010/01/14 23:12:11 schwarze Exp $ */
/* $NetBSD: kern_clock.c,v 1.34 1996/06/09 04:51:03 briggs Exp $ */
/*-
@@ -280,7 +280,7 @@ hardclock(struct clockframe *frame)
* ntp_tick_permanent accumulates the clock correction each
* tick. The unit is ns per tick shifted left 32 bits. If we have
* accumulated more than 1us, we bump delta in the right
- * direction. Use a loop to avoid long long div; typicallly
+ * direction. Use a loop to avoid long long div; typically
* the loops will be executed 0 or 1 iteration.
*/
if (ntp_tick_permanent != 0) {
diff --git a/sys/kern/kern_exec.c b/sys/kern/kern_exec.c
index 4647db66fac..71989c132ed 100644
--- a/sys/kern/kern_exec.c
+++ b/sys/kern/kern_exec.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_exec.c,v 1.110 2009/07/09 22:29:56 thib Exp $ */
+/* $OpenBSD: kern_exec.c,v 1.111 2010/01/14 23:12:11 schwarze Exp $ */
/* $NetBSD: kern_exec.c,v 1.75 1996/02/09 18:59:28 christos Exp $ */
/*-
@@ -104,7 +104,7 @@ int stackgap_random = STACKGAP_RANDOM;
* EXEC SWITCH EXIT:
* ok: return 0, filled exec package, one locked vnode.
* error: destructive:
- * everything deallocated execept exec header.
+ * everything deallocated except exec header.
* non-destructive:
* error code, locked vnode, exec header unmodified
*/
diff --git a/sys/kern/kern_fork.c b/sys/kern/kern_fork.c
index 1d9fe52edc5..b701ee936cb 100644
--- a/sys/kern/kern_fork.c
+++ b/sys/kern/kern_fork.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_fork.c,v 1.107 2009/12/28 02:54:24 guenther Exp $ */
+/* $OpenBSD: kern_fork.c,v 1.108 2010/01/14 23:12:11 schwarze Exp $ */
/* $NetBSD: kern_fork.c,v 1.29 1996/02/09 18:59:34 christos Exp $ */
/*
@@ -461,7 +461,7 @@ fork1(struct proc *p1, int exitsig, int flags, void *stack, size_t stacksize,
KNOTE(&p1->p_klist, NOTE_FORK | p2->p_pid);
/*
- * Update stats now that we know the fork was successfull.
+ * Update stats now that we know the fork was successful.
*/
uvmexp.forks++;
if (flags & FORK_PPWAIT)
diff --git a/sys/kern/kern_lkm.c b/sys/kern/kern_lkm.c
index d2f640e416f..b971a7c4c43 100644
--- a/sys/kern/kern_lkm.c
+++ b/sys/kern/kern_lkm.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_lkm.c,v 1.45 2007/11/03 22:23:35 mikeb Exp $ */
+/* $OpenBSD: kern_lkm.c,v 1.46 2010/01/14 23:12:11 schwarze Exp $ */
/* $NetBSD: kern_lkm.c,v 1.31 1996/03/31 21:40:27 christos Exp $ */
/*
@@ -149,7 +149,7 @@ lkmopen(dev_t dev, int flag, int devtype, struct proc *p)
}
/*
- * Alocates new LKM table entry, fills module id, inserts in the list.
+ * Allocates new LKM table entry, fills module id, inserts into the list.
* Returns NULL on failure.
*
*/
diff --git a/sys/kern/kern_lock.c b/sys/kern/kern_lock.c
index 6e6e1b3cc5f..eaa427e5d27 100644
--- a/sys/kern/kern_lock.c
+++ b/sys/kern/kern_lock.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_lock.c,v 1.33 2009/03/25 21:20:26 oga Exp $ */
+/* $OpenBSD: kern_lock.c,v 1.34 2010/01/14 23:12:11 schwarze Exp $ */
/*
* Copyright (c) 1995
@@ -405,7 +405,7 @@ lockmgr(__volatile struct lock *lkp, u_int flags, struct simplelock *interlkp)
#ifdef DIAGNOSTIC
/*
* Print out information about state of a lock. Used by VOP_PRINT
- * routines to display ststus about contained locks.
+ * routines to display status about contained locks.
*/
void
lockmgr_printinfo(__volatile struct lock *lkp)
diff --git a/sys/kern/kern_prot.c b/sys/kern/kern_prot.c
index bd0c851e107..882a083656a 100644
--- a/sys/kern/kern_prot.c
+++ b/sys/kern/kern_prot.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_prot.c,v 1.39 2009/06/02 20:03:59 guenther Exp $ */
+/* $OpenBSD: kern_prot.c,v 1.40 2010/01/14 23:12:11 schwarze Exp $ */
/* $NetBSD: kern_prot.c,v 1.33 1996/02/09 18:59:42 christos Exp $ */
/*
@@ -891,7 +891,7 @@ proc_cansugid(struct proc *p)
if ((p->p_flag & P_TRACED) != 0)
return (0);
- /* proceses with shared filedescriptors shouldn't. */
+ /* processes with shared filedescriptors shouldn't. */
if (p->p_fd->fd_refcnt > 1)
return (0);
diff --git a/sys/kern/kern_tc.c b/sys/kern/kern_tc.c
index ae762d89ecd..55d8d70fbf5 100644
--- a/sys/kern/kern_tc.c
+++ b/sys/kern/kern_tc.c
@@ -6,7 +6,7 @@
* this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp
* ----------------------------------------------------------------------------
*
- * $OpenBSD: kern_tc.c,v 1.12 2008/11/24 16:38:05 deraadt Exp $
+ * $OpenBSD: kern_tc.c,v 1.13 2010/01/14 23:12:11 schwarze Exp $
* $FreeBSD: src/sys/kern/kern_tc.c,v 1.148 2003/03/18 08:45:23 phk Exp $
*/
@@ -516,7 +516,7 @@ inittimecounter(void)
* Set the initial timeout to
* max(1, <approx. number of hardclock ticks in a millisecond>).
* People should probably not use the sysctl to set the timeout
- * to smaller than its inital value, since that value is the
+ * to smaller than its initial value, since that value is the
* smallest reasonable one. If they want better timestamps they
* should use the non-"get"* functions.
*/
diff --git a/sys/kern/subr_disk.c b/sys/kern/subr_disk.c
index 2b14e8d54ec..659a401c795 100644
--- a/sys/kern/subr_disk.c
+++ b/sys/kern/subr_disk.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: subr_disk.c,v 1.98 2010/01/11 05:37:28 krw Exp $ */
+/* $OpenBSD: subr_disk.c,v 1.99 2010/01/14 23:12:11 schwarze Exp $ */
/* $NetBSD: subr_disk.c,v 1.17 1996/03/16 23:17:08 christos Exp $ */
/*
@@ -254,7 +254,7 @@ checkdisklabel(void *rlp, struct disklabel *lp,
return (error);
/*
- * Need a byte-swap aware dkcksum varient
+ * Need a byte-swap aware dkcksum variant
* inlined, because dkcksum uses a sub-field
*/
start = (u_int16_t *)dlp;
diff --git a/sys/kern/subr_extent.c b/sys/kern/subr_extent.c
index b56fc8a35a3..700414d42b7 100644
--- a/sys/kern/subr_extent.c
+++ b/sys/kern/subr_extent.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: subr_extent.c,v 1.41 2009/10/13 20:53:41 miod Exp $ */
+/* $OpenBSD: subr_extent.c,v 1.42 2010/01/14 23:12:11 schwarze Exp $ */
/* $NetBSD: subr_extent.c,v 1.7 1996/11/21 18:46:34 cgd Exp $ */
/*-
@@ -636,7 +636,7 @@ extent_alloc_subregion(struct extent *ex, u_long substart, u_long subend,
* that we don't have to traverse the list again when
* we insert ourselves. If "last" is NULL when we
* finally insert ourselves, we go at the head of the
- * list. See extent_insert_and_optimize() for deatails.
+ * list. See extent_insert_and_optimize() for details.
*/
last = NULL;
@@ -1092,7 +1092,7 @@ extent_alloc_region_descriptor(struct extent *ex, int flags)
/*
* Don't muck with flags after pulling it off the
- * freelist; it may be a dynamiclly allocated
+ * freelist; it may be a dynamically allocated
* region pointer that was kindly given to us,
* and we need to preserve that information.
*/
diff --git a/sys/kern/sys_pipe.c b/sys/kern/sys_pipe.c
index d93ec33b31c..249109d74f5 100644
--- a/sys/kern/sys_pipe.c
+++ b/sys/kern/sys_pipe.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sys_pipe.c,v 1.57 2009/11/09 17:53:39 nicm Exp $ */
+/* $OpenBSD: sys_pipe.c,v 1.58 2010/01/14 23:12:11 schwarze Exp $ */
/*
* Copyright (c) 1996 John S. Dyson
@@ -415,7 +415,7 @@ pipe_write(struct file *fp, off_t *poff, struct uio *uio, struct ucred *cred)
}
/*
- * If an early error occured unbusy and return, waking up any pending
+ * If an early error occurred unbusy and return, waking up any pending
* readers.
*/
if (error) {
diff --git a/sys/kern/sysv_msg.c b/sys/kern/sysv_msg.c
index c384eb24bcc..cccdfeddc0d 100644
--- a/sys/kern/sysv_msg.c
+++ b/sys/kern/sysv_msg.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sysv_msg.c,v 1.22 2009/08/09 10:40:17 blambert Exp $ */
+/* $OpenBSD: sysv_msg.c,v 1.23 2010/01/14 23:12:11 schwarze Exp $ */
/* $NetBSD: sysv_msg.c,v 1.19 1996/02/09 19:00:18 christos Exp $ */
/*
* Copyright (c) 2009 Bret S. Lambert <blambert@openbsd.org>
@@ -560,7 +560,7 @@ msg_dequeue(struct que *que, struct msg *msg, struct proc *p)
*
* The data to be copied is laid out as a single userspace buffer, with a
* long preceding an opaque buffer of len bytes. The long value ends
- * up being the message type, which needs to be copied seperately from
+ * up being the message type, which needs to be copied separately from
* the buffer data, which is stored in in mbufs.
*/
diff --git a/sys/kern/uipc_mbuf.c b/sys/kern/uipc_mbuf.c
index d83ec600af2..38608e579d2 100644
--- a/sys/kern/uipc_mbuf.c
+++ b/sys/kern/uipc_mbuf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uipc_mbuf.c,v 1.135 2010/01/12 04:05:45 deraadt Exp $ */
+/* $OpenBSD: uipc_mbuf.c,v 1.136 2010/01/14 23:12:11 schwarze Exp $ */
/* $NetBSD: uipc_mbuf.c,v 1.15.4.1 1996/06/13 17:11:44 cgd Exp $ */
/*
@@ -967,7 +967,7 @@ bad:
* m_pullup2() works like m_pullup, save that len can be <= MCLBYTES.
* m_pullup2() only works on values of len such that MHLEN < len <= MCLBYTES,
* it calls m_pullup() for values <= MHLEN. It also only coagulates the
- * reqested number of bytes. (For those of us who expect unwieldly option
+ * requested number of bytes. (For those of us who expect unwieldy option
* headers.
*
* KEBE SAYS: Remember that dtom() calls with data in clusters does not work!
diff --git a/sys/kern/vfs_getcwd.c b/sys/kern/vfs_getcwd.c
index 8e2fc786527..ebee817eca6 100644
--- a/sys/kern/vfs_getcwd.c
+++ b/sys/kern/vfs_getcwd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vfs_getcwd.c,v 1.15 2009/07/09 22:29:56 thib Exp $ */
+/* $OpenBSD: vfs_getcwd.c,v 1.16 2010/01/14 23:12:11 schwarze Exp $ */
/* $NetBSD: vfs_getcwd.c,v 1.3.2.3 1999/07/11 10:24:09 sommerfeld Exp $ */
/*
@@ -210,7 +210,7 @@ vfs_getcwd_getcache(struct vnode **lvpp, struct vnode **uvpp, char **bpp,
int error, vpid;
lvp = *lvpp;
- obp = *bpp; /* Save orginal position to restore to on error */
+ obp = *bpp; /* Save original position to restore to on error */
error = cache_revlookup(lvp, uvpp, bpp, bufp);
if (error) {
diff --git a/sys/kern/vfs_init.c b/sys/kern/vfs_init.c
index 4478dce690c..523aa8d4a55 100644
--- a/sys/kern/vfs_init.c
+++ b/sys/kern/vfs_init.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vfs_init.c,v 1.24 2009/01/14 21:24:08 fgsch Exp $ */
+/* $OpenBSD: vfs_init.c,v 1.25 2010/01/14 23:12:11 schwarze Exp $ */
/* $NetBSD: vfs_init.c,v 1.6 1996/02/09 19:00:58 christos Exp $ */
/*
@@ -76,12 +76,12 @@ typedef int (*PFI)(void *);
* An undocumented feature of this approach to defining operations is that
* there can be multiple entries in vfs_opv_descs for the same operations
* vector. This allows third parties to extend the set of operations
- * supported by another layer in a binary compatibile way. For example,
+ * supported by another layer in a binary compatible way. For example,
* assume that NFS needed to be modified to support Ficus. NFS has an entry
* (probably nfs_vnopdeop_decls) declaring all the operations NFS supports by
* default. Ficus could add another entry (ficus_nfs_vnodeop_decl_entensions)
* listing those new operations Ficus adds to NFS, all without modifying the
- * NFS code. (Of couse, the OTW NFS protocol still needs to be munged, but
+ * NFS code. (Of course, the OTW NFS protocol still needs to be munged, but
* that is a(whole)nother story.) This is a feature.
*/