|
|
#include <sys/file.h> #include <sys/tty.h> #include <sys/types.h>int ttiocom(struct tty
tp, int cmd, int arg, int mode);
u.u_rval1 to the value TIOC.
rval1 is returned from the system call.
The proc(D2oddi) routine is called by TCXONC as follows:
| arg value | xxproc argument |
|---|---|
| 0 (zero) | T_SUSPEND |
| 1 | T_RESUME |
| 2 | T_BLOCK |
| 3 | T_UNBLOCK |
t_canq. If ICANON is
set, it is also possible for 1 to be returned when characters are
not in t_canq, but there are characters in
t_delct. If there are no characters in t_canq
and ICANON is not set, and if there are characters in
t_rawq, 1 is returned. If none of the queues have
characters, 0 (zero) is returned. FIORDCHK causes
ttrdchk(D3oddi)
to be called.
u.u_error;
otherwise it returns 1.