summaryrefslogtreecommitdiffstats
path: root/usr.bin/doscmd
diff options
context:
space:
mode:
authorcharnier <charnier@FreeBSD.org>2002-04-12 21:18:05 +0000
committercharnier <charnier@FreeBSD.org>2002-04-12 21:18:05 +0000
commitcdd3ddccaad20039d07e74faa9b712fc16376962 (patch)
tree7a73f5d8e9f9536793a49c04408c958635253bb0 /usr.bin/doscmd
parent6629f872ca4ca0a3a17361b02361639f866571f4 (diff)
downloadFreeBSD-src-cdd3ddccaad20039d07e74faa9b712fc16376962.zip
FreeBSD-src-cdd3ddccaad20039d07e74faa9b712fc16376962.tar.gz
Reduce the number of spelling mistakes.
Diffstat (limited to 'usr.bin/doscmd')
-rw-r--r--usr.bin/doscmd/cwd.c4
-rw-r--r--usr.bin/doscmd/dos.h4
-rw-r--r--usr.bin/doscmd/ems.c6
-rw-r--r--usr.bin/doscmd/emuint.c2
-rw-r--r--usr.bin/doscmd/emuint.h2
-rw-r--r--usr.bin/doscmd/trace.c4
-rw-r--r--usr.bin/doscmd/tty.c4
-rw-r--r--usr.bin/doscmd/xms.c10
-rw-r--r--usr.bin/doscmd/xms.h8
9 files changed, 22 insertions, 22 deletions
diff --git a/usr.bin/doscmd/cwd.c b/usr.bin/doscmd/cwd.c
index 7931d83..3ba92f0 100644
--- a/usr.bin/doscmd/cwd.c
+++ b/usr.bin/doscmd/cwd.c
@@ -271,7 +271,7 @@ dos_makepath(u_char *where, u_char *newpath)
/*
* Set DOS's idea of the CWD for drive to be where.
- * Returns DOS errno on failuer.
+ * Returns DOS errno on failure.
*/
int
dos_setcwd(u_char *where)
@@ -954,7 +954,7 @@ printf("find_next: found %s\n",name);
}
/*
- * perfrom hokey DOS pattern matching. pattern may contain the wild cards
+ * perform hokey DOS pattern matching. pattern may contain the wild cards
* '*' and '?' only. Follow the DOS convention that '?*', '*?' and '**' all
* are the same as '*'. Also, allow '?' to match the blank padding in a
* name (hence, ???? matchs all of "a", "ab", "abc" and "abcd" but not "abcde")
diff --git a/usr.bin/doscmd/dos.h b/usr.bin/doscmd/dos.h
index cc770f7..b75963f 100644
--- a/usr.bin/doscmd/dos.h
+++ b/usr.bin/doscmd/dos.h
@@ -226,7 +226,7 @@ typedef struct {
u_short dta_seg __attribute__ ((packed)); /* 0Ch DWORD current DTA */
u_short psp __attribute__ ((packed)); /* 10h WORD current PSP */
u_short int_23_sp __attribute__ ((packed)); /* 12h WORD stores SP across an INT 23 */
- u_short wait_status __attribute__ ((packed)); /* 14h WORD return code from last process termination (zerod after reading with AH=4Dh) */
+ u_short wait_status __attribute__ ((packed)); /* 14h WORD return code from last process termination (set to 0 after reading with AH=4Dh) */
u_char current_drive __attribute__ ((packed)); /* 16h BYTE current drive */
u_char break_flag __attribute__ ((packed)); /* 17h BYTE extended break flag */
u_char unknown1[2] __attribute__ ((packed)); /* 18h 2 BYTEs ??? */
@@ -336,7 +336,7 @@ struct exehdr {
u_short nreloc;
u_short hdr_size; /* paragraphs */
u_short min_memory; /* paragraphs */
- u_short max_memory; /* pargraphs */
+ u_short max_memory; /* paragraphs */
u_short init_ss;
u_short init_sp;
u_short checksum;
diff --git a/usr.bin/doscmd/ems.c b/usr.bin/doscmd/ems.c
index 400781a..39c0d87 100644
--- a/usr.bin/doscmd/ems.c
+++ b/usr.bin/doscmd/ems.c
@@ -37,7 +37,7 @@ __FBSDID("$FreeBSD$");
* is ems_entry(..). The emulator needs to be initialized before the first
* call. The first step of the initialization is done during program startup
* the second part is done during DOS boot, from a call of the DOS driver.
- * The DOS driver is neccessary because DOS programs look for it to
+ * The DOS driver is necessary because DOS programs look for it to
* determine if EMS is available.
*
* To emulate a configurable amount of EMS memory we use a file created
@@ -109,7 +109,7 @@ struct copydesc {
short copytype; /* Type of source and destination memory */
EMS_addr src_addr; /* Combined pointer for source */
EMS_addr dst_addr; /* Combined pointer for destination */
- u_long rest_len; /* Lenght to copy */
+ u_long rest_len; /* Length to copy */
};
@@ -1529,7 +1529,7 @@ copy_block_up(struct copydesc *cdp)
void *dstp;
/* If source or both memory types are EMS, source determines the
- * block lenght, else destination determines the block lenght
+ * block length, else destination determines the block length
*/
if (cdp->copytype & SRC_EMS)
size = EMS_PAGESIZE - cdp->EMS_OFFS(src_addr);
diff --git a/usr.bin/doscmd/emuint.c b/usr.bin/doscmd/emuint.c
index 1bb4f86..d00a767 100644
--- a/usr.bin/doscmd/emuint.c
+++ b/usr.bin/doscmd/emuint.c
@@ -41,7 +41,7 @@ __FBSDID("$FreeBSD$");
* To call emuint from VM86 space do:
* push ax Save original ax value (*must be done* !)
* mov ah, funcnum Emuint function number to ah
- * mov al, subfunc Subfunction number, optional, depening on func
+ * mov al, subfunc Subfunction number, optional, depending on func
* int 0xff
* ..
* ..
diff --git a/usr.bin/doscmd/emuint.h b/usr.bin/doscmd/emuint.h
index d379768..bd53981 100644
--- a/usr.bin/doscmd/emuint.h
+++ b/usr.bin/doscmd/emuint.h
@@ -35,7 +35,7 @@
* Interrupt 0xFF is used by some emulator functions. It is a portal into
* the emulator and cannot be used by ordinary DOS applications directly
* The interrupt 0xFF is called by helper functions under DOS (such as
- * the redirector interfcae and the EMS emulation).
+ * the redirector interface and the EMS emulation).
* There are functions and subfunctions defined. (See emuint.c for details)
*/
diff --git a/usr.bin/doscmd/trace.c b/usr.bin/doscmd/trace.c
index a171dad..d99dff6 100644
--- a/usr.bin/doscmd/trace.c
+++ b/usr.bin/doscmd/trace.c
@@ -50,9 +50,9 @@ static inline void showstate(long, long, char);
* 1) Always set the trap flag.
* 2) If this is a POPF or IRET instruction, set the trap flag in the saved
* flag state on the stack.
- * On enterint from VM86 mode:
+ * On entering from VM86 mode:
* 1) Restore the trap flag from our saved flag state.
- * 2) If we just finished a POPF or IRET unstruction, patch the saved flag
+ * 2) If we just finished a POPF or IRET instruction, patch the saved flag
* state on the stack.
*/
diff --git a/usr.bin/doscmd/tty.c b/usr.bin/doscmd/tty.c
index 03dfc62..506a04e 100644
--- a/usr.bin/doscmd/tty.c
+++ b/usr.bin/doscmd/tty.c
@@ -197,8 +197,8 @@ static void vram2ximage(void);
#define K4_SLOCK_LED 0x01
#define K4_NLOCK_LED 0x02
#define K4_CLOCK_LED 0x04
-#define K4_ACK 0x10 /* ACK recieved from keyboard */
-#define K4_RESEND 0x20 /* RESEND recieved from keyboard */
+#define K4_ACK 0x10 /* ACK received from keyboard */
+#define K4_RESEND 0x20 /* RESEND received from keyboard */
#define K4_LED 0x40 /* LED update in progress */
#define K4_ERROR 0x80
diff --git a/usr.bin/doscmd/xms.c b/usr.bin/doscmd/xms.c
index 395d09a..046b861 100644
--- a/usr.bin/doscmd/xms.c
+++ b/usr.bin/doscmd/xms.c
@@ -30,12 +30,12 @@
__FBSDID("$FreeBSD$");
/*
- * XMS memory manmagement
+ * XMS memory management
*
* To emulate DOS extended memory (EMM) we use an implementation of
- * HIMEM.SYS driver capabitlities, according to the XMS 3.0 Spec.
+ * HIMEM.SYS driver capabilities, according to the XMS 3.0 Spec.
* The actual memory allocated via XMS calls from DOS is allocated
- * via malloc by the emulator. Maximum memory allocation is configureable.
+ * via malloc by the emulator. Maximum memory allocation is configurable.
*
* Credits to:
* The original author of this file, some parts are still here
@@ -126,14 +126,14 @@ xms_init(void)
/*
* UMB management routines: UMBs normally lie between 0xd0000 and
- * 0xefff0 in VM86 memory space and are accessible for all DOS applictions.
+ * 0xefff0 in VM86 memory space and are accessible for all DOS applications.
* We could enable more space, but with the emulator we do not
* need many drivers, so I think 2 * 64kB will suffice. If EMS emulation
* exists, a 64kB segment (0xe0000 - 0xeffff for example) is needed for
* the EMS mapping, in this case we have 64kB UMB space. This is more than
* many PCs are able to do.
* This emulation does only the management for the memory, the memory
- * is present and read/write/excutable for VM86 applications.
+ * is present and read/write/executable for VM86 applications.
*/
/* Add a block to a list, maintain ascending start address order */
diff --git a/usr.bin/doscmd/xms.h b/usr.bin/doscmd/xms.h
index 5189028..477fd84 100644
--- a/usr.bin/doscmd/xms.h
+++ b/usr.bin/doscmd/xms.h
@@ -35,7 +35,7 @@
#define XMS_REVISION 0x0100 /* driver revision 1.0 */
#define NUM_HANDLES 64 /* number of available handles */
-#define FIRST_HANDLE 1 /* number of firts valid handle */
+#define FIRST_HANDLE 1 /* number of first valid handle */
#define PARAGRAPH 16 /* bytes in a paragraph */
#define MAX_BLOCK_LOCKS 256 /* number of locks on a block */
#define DEFAULT_EMM_SIZE 512 * 1024 /* default EMM size */
@@ -60,7 +60,7 @@
#define XMS_ALLOCATE_UMB 0x10
#define XMS_DEALLOCATE_UMB 0x11
#define XMS_REALLOCATE_UMB 0x12
-/* New functions for values bigger than 65MB, not implented yet */
+/* New functions for values bigger than 65MB, not implanted yet */
#define XMS_QUERY_FREE_EXTENDED_MEMORY_LARGE 0x88
#define XMS_ALLOCATE_EXTENDED_MEMORY_LARGE 0x89
#define XMS_FREE_EXTENDED_MEMORY_LARGE 0x8a
@@ -118,7 +118,7 @@ struct XMSinfo {
};
/*
- * Handle management inside the emulator for extendend memory pages,
+ * Handle management inside the emulator for extended memory pages,
* invisible to DOS
*/
@@ -129,7 +129,7 @@ typedef struct {
} XMS_handle;
/*
- * Managment of UMB memory paragraphs (16 bytes). UMB blocks are
+ * Management of UMB memory paragraphs (16 bytes). UMB blocks are
* directly accessible by VM86 applications and lie between 0xd0000 and
* 0xefff0 in VM86 memory space.
*/
OpenPOWER on IntegriCloud