mirror of
https://github.com/simh/simh.git
synced 2026-01-28 04:48:05 +00:00
SIMH: Fix spelling errors in comments and strings
This commit is contained in:
committed by
Mark Pizzolato
parent
32d6b09c8e
commit
c7df248f09
56
sim_serial.c
56
sim_serial.c
@@ -74,12 +74,12 @@
|
||||
sim_control_serial (SERHANDLE port, int32 bits_to_set, int32 bits_to_clear, int32 *incoming_bits)
|
||||
-------------------------------------------------------------------------------------------------
|
||||
|
||||
The DTR and RTS line of the serial port is set or cleared as indicated in
|
||||
the respective bits_to_set or bits_to_clear parameters. If the
|
||||
incoming_bits parameter is not NULL, then the modem status bits DCD, RNG,
|
||||
The DTR and RTS line of the serial port is set or cleared as indicated in
|
||||
the respective bits_to_set or bits_to_clear parameters. If the
|
||||
incoming_bits parameter is not NULL, then the modem status bits DCD, RNG,
|
||||
DSR and CTS are returned.
|
||||
|
||||
If unreasonable or nonsense bits_to_set or bits_to_clear bits are
|
||||
If unreasonable or nonsense bits_to_set or bits_to_clear bits are
|
||||
specified, then the return status is SCPE_ARG;
|
||||
If an error occurs, SCPE_IOERR is returned.
|
||||
|
||||
@@ -232,8 +232,8 @@ static int sim_serial_devices (int max, SERIAL_LIST *list)
|
||||
{
|
||||
int i, j, ports = sim_serial_os_devices(max, list);
|
||||
|
||||
/* Open ports may not show up in the list returned by sim_serial_os_devices
|
||||
so we add the open ports to the list removing duplicates before sorting
|
||||
/* Open ports may not show up in the list returned by sim_serial_os_devices
|
||||
so we add the open ports to the list removing duplicates before sorting
|
||||
the resulting list */
|
||||
|
||||
for (i=0; i<serial_open_device_count; ++i) {
|
||||
@@ -499,9 +499,9 @@ return r;
|
||||
|
||||
/* Enumerate the available serial ports.
|
||||
|
||||
The serial port names are extracted from the appropriate place in the
|
||||
The serial port names are extracted from the appropriate place in the
|
||||
windows registry (HKLM\HARDWARE\DEVICEMAP\SERIALCOMM\). The resulting
|
||||
list is sorted alphabetically by device name (COMn). The device description
|
||||
list is sorted alphabetically by device name (COMn). The device description
|
||||
is set to the OS internal name for the COM device.
|
||||
|
||||
*/
|
||||
@@ -535,7 +535,7 @@ if (RegOpenKeyExA(HKEY_LOCAL_MACHINE, "HARDWARE\\DEVICEMAP\\SERIALCOMM", 0, KEY_
|
||||
else
|
||||
break;
|
||||
}
|
||||
/* Besure to clear the working entry before trying again */
|
||||
/* Be sure to clear the working entry before trying again */
|
||||
memset(list[ports].name, 0, sizeof(list[ports].name));
|
||||
memset(list[ports].desc, 0, sizeof(list[ports].desc));
|
||||
dwValueNameSize = sizeof(list[ports].desc);
|
||||
@@ -774,12 +774,12 @@ return SCPE_OK; /* return success status
|
||||
|
||||
/* Control a serial port.
|
||||
|
||||
The DTR and RTS line of the serial port is set or cleared as indicated in
|
||||
the respective bits_to_set or bits_to_clear parameters. If the
|
||||
incoming_bits parameter is not NULL, then the modem status bits DCD, RNG,
|
||||
The DTR and RTS line of the serial port is set or cleared as indicated in
|
||||
the respective bits_to_set or bits_to_clear parameters. If the
|
||||
incoming_bits parameter is not NULL, then the modem status bits DCD, RNG,
|
||||
DSR and CTS are returned.
|
||||
|
||||
If unreasonable or nonsense bits_to_set or bits_to_clear bits are
|
||||
If unreasonable or nonsense bits_to_set or bits_to_clear bits are
|
||||
specified, then the return status is SCPE_ARG;
|
||||
If an error occurs, SCPE_IOERR is returned.
|
||||
*/
|
||||
@@ -938,8 +938,8 @@ struct SERPORT {
|
||||
|
||||
The serial port names generated by attempting to open /dev/ttyS0 thru
|
||||
/dev/ttyS63 and /dev/ttyUSB0 thru /dev/ttyUSB63 and /dev/tty.serial0
|
||||
thru /dev/tty.serial63. Ones we can open and are ttys (as determined
|
||||
by isatty()) are added to the list. The list is sorted alphabetically
|
||||
thru /dev/tty.serial63. Ones we can open and are ttys (as determined
|
||||
by isatty()) are added to the list. The list is sorted alphabetically
|
||||
by device name.
|
||||
|
||||
*/
|
||||
@@ -1001,7 +1001,7 @@ for (i=0; (ports < max) && (i < 64); ++i) {
|
||||
static char *serial_unix_serial_names[] = { "S", "U", "USB", ".serial", ".usbserial", NULL};
|
||||
char **sp;
|
||||
|
||||
for (sp = serial_unix_serial_names; *sp; sp++) {
|
||||
for (sp = serial_unix_serial_names; *sp; sp++) {
|
||||
for (i=0; (ports < max) && (i <= 64); ++i) {
|
||||
if (i < 64)
|
||||
snprintf (list[ports].name, sizeof (list[ports].name), "/dev/tty%s%d", *sp, i);
|
||||
@@ -1223,12 +1223,12 @@ return SCPE_OK; /* configuration set suc
|
||||
|
||||
/* Control a serial port.
|
||||
|
||||
The DTR and RTS line of the serial port is set or cleared as indicated in
|
||||
the respective bits_to_set or bits_to_clear parameters. If the
|
||||
incoming_bits parameter is not NULL, then the modem status bits DCD, RNG,
|
||||
The DTR and RTS line of the serial port is set or cleared as indicated in
|
||||
the respective bits_to_set or bits_to_clear parameters. If the
|
||||
incoming_bits parameter is not NULL, then the modem status bits DCD, RNG,
|
||||
DSR and CTS are returned.
|
||||
|
||||
If unreasonable or nonsense bits_to_set or bits_to_clear bits are
|
||||
If unreasonable or nonsense bits_to_set or bits_to_clear bits are
|
||||
specified, then the return status is SCPE_ARG;
|
||||
If an error occurs, SCPE_IOERR is returned.
|
||||
*/
|
||||
@@ -1431,7 +1431,7 @@ struct SERPORT {
|
||||
|
||||
The serial port names generated by attempting to open /dev/ttyS0 thru
|
||||
/dev/ttyS53 and /dev/ttyUSB0 thru /dev/ttyUSB0. Ones we can open and
|
||||
are ttys (as determined by isatty()) are added to the list. The list
|
||||
are ttys (as determined by isatty()) are added to the list. The list
|
||||
is sorted alphabetically by device name.
|
||||
|
||||
*/
|
||||
@@ -1538,10 +1538,10 @@ SERHANDLE port;
|
||||
|
||||
devnam.dsc$w_length = strlen (devnam.dsc$a_pointer);
|
||||
status = sys$assign (&devnam, &chan, 0, 0);
|
||||
if (status != SS$_NORMAL)
|
||||
if (status != SS$_NORMAL)
|
||||
return INVALID_HANDLE;
|
||||
status = sys$getdviw (0, chan, NULL, items, &iosb, NULL, 0, NULL);
|
||||
if ((status != SS$_NORMAL) ||
|
||||
if ((status != SS$_NORMAL) ||
|
||||
(iosb.status != SS$_NORMAL) ||
|
||||
(devclass != DC$_TERM)) {
|
||||
sys$dassgn (chan);
|
||||
@@ -1670,12 +1670,12 @@ return SCPE_OK; /* configuration set suc
|
||||
|
||||
/* Control a serial port.
|
||||
|
||||
The DTR and RTS line of the serial port is set or cleared as indicated in
|
||||
the respective bits_to_set or bits_to_clear parameters. If the
|
||||
incoming_bits parameter is not NULL, then the modem status bits DCD, RNG,
|
||||
The DTR and RTS line of the serial port is set or cleared as indicated in
|
||||
the respective bits_to_set or bits_to_clear parameters. If the
|
||||
incoming_bits parameter is not NULL, then the modem status bits DCD, RNG,
|
||||
DSR and CTS are returned.
|
||||
|
||||
If unreasonable or nonsense bits_to_set or bits_to_clear bits are
|
||||
If unreasonable or nonsense bits_to_set or bits_to_clear bits are
|
||||
specified, then the return status is SCPE_ARG;
|
||||
If an error occurs, SCPE_IOERR is returned.
|
||||
*/
|
||||
@@ -1769,7 +1769,7 @@ if (status != SS$_NORMAL) {
|
||||
}
|
||||
if (sense.sense_count == 0) /* no characters available? */
|
||||
return 0; /* return 0 to indicate */
|
||||
status = sys$qiow (0, port->port, IO$_READLBLK | IO$M_NOECHO | IO$M_NOFILTR | IO$M_TIMED | IO$M_TRMNOECHO,
|
||||
status = sys$qiow (0, port->port, IO$_READLBLK | IO$M_NOECHO | IO$M_NOFILTR | IO$M_TIMED | IO$M_TRMNOECHO,
|
||||
&iosb, 0, 0, buffer, (count < sense.sense_count) ? count : sense.sense_count, 0, term, 0, 0);
|
||||
if (status == SS$_NORMAL)
|
||||
status = iosb.status;
|
||||
|
||||
Reference in New Issue
Block a user