HP-UX Reference (11i v1 00/12) - 5 Miscellaneous Topics, 7 Device (Special) Files, 9 General Information, Index (vol 9)
__________________________________________________________________________________________________________________________________________________________________________________________________
__________________________________________________________________________________________________________________________________________________________________________________________________
STANDARD Printed by: Nora Chuang [nchuang] STANDARD
/build/1111/BRICK/man7/!!!intro.7
________________________________________________________________
___ ___
m
modem(7) modem(7)
Each bit of the mflag long corresponds to one of the modem lines as follows:
MRTS Request to Send outbound
MCTS Clear to Send inbound
MDSR Data Set Ready inbound
MDCD Data Carrier Detect inbound
MDTR Data Terminal Ready outbound
MRI Ring Indicator inbound
MDRS Data Rate Select outbound
The timer values are defined in the array m_timers. The relative position of the timer and default initial
values and units for each timer are as follows:
0 MTCONNECT 25 s
1 MTCARRIER 400 ms
2 MTNOACTIVITY 0 min
3 MTHANGUP 250 ms
4 Reserved
5 Reserved
A value of zero for any timer will disablethat timer.
The modem line ioctl system calls have the form:
int ioctl(int fildes, int command, mflag *arg);
The commands using this form are:
MCGETA Get the current state of both inbound and outbound modem lines and store in the
mflag
long referenced by arg. A raised line will be indicated by a one bit in the appropriate posi-
tion.
MCSETA Set the outbound modem lines from the mflag long referenced by
arg. Setting an out-
bound bit to one causes that line to be raised and zero to be lowered. Setting bits for
inbound lines has no effect. Setting any bits while in CCITT mode has no effect. The
change to the modem lines is immediate and using this form while characters are still being
output may cause unpredictable results.
MCSETAW Wait for the output to drain and set the new parameters as described above.
MCSETAF Wait for the output to drain, then flush the input queue and set the new parameters as
described above.
The timer value ioctl system calls have the form:
int ioctl(int fildes, int command, mtimer *arg);
The commands using this form are:
MCGETT Get the current timer value settings and store in the mtimer structure referenced by arg.
MCSETT Set the timer values from the structure referenced by arg.
For any timer, setting the timer value to its previous value has no effect.
SVID3 Modem ioctls
System V Interface Definition, Third Edition (SVID3) specifies additional ioctl system calls to manipulate
the modem lines. They use information defined in
<termios.h> .
Each ioctl passes an integer argument in which each of the following bit definitions correspond to one of the
modem lines as follows:
TIOCM_RTS Request to Send outbound
TIOCM_CTS Clear to Send inbound
TIOCM_DSR Data Set Ready inbound
TIOCM_CAR Data Carrier Detect inbound
TIOCM_DTR Data Terminal Ready outbound
TIOCM_RNG Ring Indicator inbound
Additionally, TIOCM_CD is equivalent to TIOCM_CAR, and TIOCM_RI is equivalent to TIOCM_RNG.
The modem line ioctl system calls have the form:
HP-UX Release 11i: December 2000 − 4 − Section 7−−69
___
___