From Bde:

o Rewrote lots of it to be more like stty.1.  The old one was
	  too verbose and the complicated options no longer exist.
This commit is contained in:
ache 1994-05-30 03:50:01 +00:00
parent d810debdee
commit 355d4fac40
2 changed files with 56 additions and 98 deletions

View File

@ -1,47 +1,30 @@
.Dd December 10, 1993 .Dd May 15, 1994
.Dt COMCONTROL 8 .Dt COMCONTROL 8
.Os FreeBSD .Os FreeBSD
.Sh NAME .Sh NAME
.Nm comcontrol .Nm comcontrol
.Nd "control the bidirectional status of a sio port and waiting time after DTR drop" .Nd control an sio device.
.Sh SYNOPSIS .Sh SYNOPSIS
.Nm comcontrol .Nm comcontrol
.Ar sio_special_device .Ar sio_special_device
.Op Cm bidir | Fl bidir .Op options
.Op Cm dtrwait Ar ticks
.Sh DESCRIPTION .Sh DESCRIPTION
.Nm Comcontrol .Nm Comcontrol
is used to examine and modify the bidirectional status is used to examine and modify some of the special characterstics
of a specified of the specified sio device.
sio communications port If no arguments other than the device are specified,
and its waiting time after DTR drop. it prints the settings of all controllable characteristics.
By default (if This usage requires only read access on the device.
.Ar sio_special_device Only the superuser can change the settings.
only specified), .Pp
.Nm comcontrol The following options are available:
will print the current port state .Bl -tag -width Fl
(if kernel was built with .It Cm dtrwait Ar number
.Cm options COM_BIDIR ) Set the time to wait after dropping DTR
as either to the given number.
.Cm bidir The units are hundredths of a second.
to indicate that bidirectional operation is enabled or The default is 300 hundredths, i.e., 3 seconds.
.Fl bidir .El
to indicate that it is disabled, string
.Cm dtrwait
and current waiting time in ticks
after DTR drop.
To modify the status of the port or waiting time, simply
specify the desired new state
and/or new waiting time
on the command line. All users with
read access to the
.Ar sio_special_device
can use
.Nm comcontrol
to get the port's status and current waiting time.
Only root can set a port's status and waiting time.
By default, each port is initially unidirectional, waiting time is
2 seconds.
.Pp .Pp
The standard way to use The standard way to use
.Nm comcontrol .Nm comcontrol
@ -50,25 +33,21 @@ is to put invocations of it in the
startup script. startup script.
.Sh SEE ALSO .Sh SEE ALSO
.Xr sio 4 .Xr sio 4
.Xr stty 1 .
.Sh FILES .Sh FILES
.Bl -tag -width Pa .Bl -tag -width Pa
.It Pa /dev/ttyd? .It Pa /dev/ttyd?
.Sh DIAGNOSTICS dialin devices.
.Cm TIOCMSBIDIR: Inappropriate ioctl for device. .It Pa /dev/cua0?
.Pp dialout devices.
This indicates attempt to change port status on
a non-sio special device file,
or the kernel has not been built with
.Cm options COM_BIDIR .
For more information concerning reconfiguration
of your kernel see
.Ar /usr/src/sys/i386/doc/config_options.doc.
.Sh AUTHOR .Sh AUTHOR
Christopher G. Demetriou Christopher G. Demetriou
.Sh BUGS .Sh BUGS
It is strongly recommended that you do *not* .Nm comcontrol
change the bidirectional status of a port while there are programs should be named
using the port. Read that as: if you do, and it breaks, don't yell .Nm siocontrol .
at me; that's a really weird thing to do. .
.Sh HISTORY .Sh HISTORY
Originally part of cgd's com package patches, version 0.2.1, to 386BSD 0.1. Originally part of cgd's com package patches, version 0.2.1, to 386BSD 0.1.
Once controlled bidirectional capabilities. Little is left to control now
that these capabilities are standard.

View File

@ -1,47 +1,30 @@
.Dd December 10, 1993 .Dd May 15, 1994
.Dt COMCONTROL 8 .Dt COMCONTROL 8
.Os FreeBSD .Os FreeBSD
.Sh NAME .Sh NAME
.Nm comcontrol .Nm comcontrol
.Nd "control the bidirectional status of a sio port and waiting time after DTR drop" .Nd control an sio device.
.Sh SYNOPSIS .Sh SYNOPSIS
.Nm comcontrol .Nm comcontrol
.Ar sio_special_device .Ar sio_special_device
.Op Cm bidir | Fl bidir .Op options
.Op Cm dtrwait Ar ticks
.Sh DESCRIPTION .Sh DESCRIPTION
.Nm Comcontrol .Nm Comcontrol
is used to examine and modify the bidirectional status is used to examine and modify some of the special characterstics
of a specified of the specified sio device.
sio communications port If no arguments other than the device are specified,
and its waiting time after DTR drop. it prints the settings of all controllable characteristics.
By default (if This usage requires only read access on the device.
.Ar sio_special_device Only the superuser can change the settings.
only specified), .Pp
.Nm comcontrol The following options are available:
will print the current port state .Bl -tag -width Fl
(if kernel was built with .It Cm dtrwait Ar number
.Cm options COM_BIDIR ) Set the time to wait after dropping DTR
as either to the given number.
.Cm bidir The units are hundredths of a second.
to indicate that bidirectional operation is enabled or The default is 300 hundredths, i.e., 3 seconds.
.Fl bidir .El
to indicate that it is disabled, string
.Cm dtrwait
and current waiting time in ticks
after DTR drop.
To modify the status of the port or waiting time, simply
specify the desired new state
and/or new waiting time
on the command line. All users with
read access to the
.Ar sio_special_device
can use
.Nm comcontrol
to get the port's status and current waiting time.
Only root can set a port's status and waiting time.
By default, each port is initially unidirectional, waiting time is
2 seconds.
.Pp .Pp
The standard way to use The standard way to use
.Nm comcontrol .Nm comcontrol
@ -50,25 +33,21 @@ is to put invocations of it in the
startup script. startup script.
.Sh SEE ALSO .Sh SEE ALSO
.Xr sio 4 .Xr sio 4
.Xr stty 1 .
.Sh FILES .Sh FILES
.Bl -tag -width Pa .Bl -tag -width Pa
.It Pa /dev/ttyd? .It Pa /dev/ttyd?
.Sh DIAGNOSTICS dialin devices.
.Cm TIOCMSBIDIR: Inappropriate ioctl for device. .It Pa /dev/cua0?
.Pp dialout devices.
This indicates attempt to change port status on
a non-sio special device file,
or the kernel has not been built with
.Cm options COM_BIDIR .
For more information concerning reconfiguration
of your kernel see
.Ar /usr/src/sys/i386/doc/config_options.doc.
.Sh AUTHOR .Sh AUTHOR
Christopher G. Demetriou Christopher G. Demetriou
.Sh BUGS .Sh BUGS
It is strongly recommended that you do *not* .Nm comcontrol
change the bidirectional status of a port while there are programs should be named
using the port. Read that as: if you do, and it breaks, don't yell .Nm siocontrol .
at me; that's a really weird thing to do. .
.Sh HISTORY .Sh HISTORY
Originally part of cgd's com package patches, version 0.2.1, to 386BSD 0.1. Originally part of cgd's com package patches, version 0.2.1, to 386BSD 0.1.
Once controlled bidirectional capabilities. Little is left to control now
that these capabilities are standard.