|
|
coherent
ttttwwrriittee00() -- Terminal-Device Routine #iinncclluuddee <ssyyss/iioo.hh> #iinncclluuddee <ssyyss/ttttyy.hh> vvooiidd ttttwwrriittee00(_t_p, _i_o_p, _f_u_n_c_1, _a_r_g_1, _f_u_n_c_2, _a_r_g_2) TTTTYY *_t_p; IIOO *_i_o_p; iinntt (*_f_u_n_c_1)(), _a_r_g_1, (*_f_u_n_c_2)(), _a_r_g_2; ttttwwrriittee00() moves data to an output queue associated with _t_p, from the I/O area referenced by _i_o_p. If an error occurs, it sets field uu.uu_eerrrroorr. The following behavior makes it possible to prevent deadlocks between coupled drivers, such as master-slave pseudoterminal pairs. If _f_u_n_c_1 or is not NULL, the function call (*_f_u_n_c_1)(_a_r_g_1) is performed whenever ttttwwrriittee00() is about to sleep. Likewise, if _f_u_n_c_2 is not NULL, (*_f_u_n_c_2)(_a_r_g_2) is performed whenever ttttwwrriittee00() is about to sleep. ttttwwrriittee(_t_p, _i_o_p) is equivalent to ttttwwrriittee00(_t_p, _i_o_p, 00, 00, 00, 00). _S_e_e _A_l_s_o tteerrmmiinnaall-ddeevviiccee rroouuttiinneess
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.