⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 termios.3

📁 Unix操作系统minix 2.0源码
💻 3
📖 第 1 页 / 共 2 页
字号:
3167(when)S3410(options)S3730(affecting)S4114(output)S4395(are)S4544(changed.)S5016 V10 B1080(tcsetattr\()S10 I1474(fd)S10 B1552(,)S1602(TCSAFLUSH,)S10 I2257(tp)S10 B2335(\))S5136 V10 R1440(Set)S1600(the)S1754(terminal)S2121(attributes.)S2577(But)S2753(\256rst)S2941(wait)S(until)184 3146 A3361(all)S3493(the)S3647(output)S(waiting)302 3934 A4267(in)S4376(the)S4530(output)S4817(queues)S5127(has)S5256 V1440(been)S(transmitted.)478 1668 A2209(All)S(input)206 2376 A(waiting)302 2620 A2959(in)S3074(the)S(input)206 3234 A3477(queues)S3793(is)S3897(then)S4107(discarded)S4530(and)S4712(the)S4872(change)S5194(is)S5376 V1440(made.)S1744(This)S(should)267 1960 A2264(be)S2396(used)S2617(when)S2872(switching)S3300(from)S(canonical)386 3533 A3956(to)S(non-canonical)570 4071 A4678(mode)S4938(or)S5059(vice-)S5496 V1440(versa.)S1733(\(Oddly)S(enough,)320 2048 A2398(this)S2573(is)S2670(seldom)S2990(what)S(you)150 3216 A3395(want,)S(because)319 3645 A3993(it)S4078(discards)S4437(typeahead.)S4924(An)S5076(edit-)S5616 V1440(ing)S1599(shell)S1820(does)S2035(the)S2189(Right)S2443(Thing)S2714(if)S2807(it)S2894(uses)S10 B3098(TCSANOW)S10 R3649(instead.)S8 R4010(POSIX)S10 R4274(may)S4478(not)S4637(guarantee)S(good)200 5061 A5736 V1440(results,)S1753(but)S1906(in)S2009(practice)S2354(most)S2574(systems)S2917(make)S3160(the)S(canonical)386 3308 A(input)206 3719 A3950(available)S4339(in)S4442(raw)S4619(mode.\))S5904 V10 B1080(cfgetispeed\()S10 I1591(tp)S10 B1669(\))S6024 V10 R1440(Return)S1739(the)S(input)206 1887 A2118(baud)S2338(rate)S2515(encoded)S2875(in)S2978(the)S3126(termios)S3453(structure.)S6192 V10 B1080(cfgetospeed\()S10 I1613(tp)S10 B1691(\))S6312 V10 R1440(Return)S1739(the)S1887(output)S2168(baud)S2388(rate)S2565(encoded)S2925(in)S3028(the)S3176(termios)S3503(structure.)S6480 V10 B1080(cfsetispeed\()S10 I1580(tp)S10 B1658(,)S10 I1708(speed)S10 B1937(\))S6600 V10 R1440(Encode)S1767(the)S1915(new)S(input)206 2108 A2339(baud)S2559(rate)S2736(into)S2917(the)S3065(termios)S3392(structure.)S6768 V10 B1080(cfsetospeed\()S10 I1602(tp)S10 B1680(,)S10 I1730(speed)S10 B1959(\))S6888 V10 R1440(Encode)S1767(the)S1915(new)S2108(output)S2389(baud)S2609(rate)S2786(into)S2967(the)S3115(termios)S3442(structure.)S7056 V10 B(tcsendbreak\()561 1080 A10 I1641(fd)S10 B1719(,)S10 I1769(duration)S10 B2114(\))S7176 V10 R1440(Emit)S1664(a)S1738(break)S(condition)379 1991 A2399(on)S2528(a)S2602(serial)S2850(line)S3030(for)S3177(a)S3251(time)S3459(indicated)S3857(by)S10 I3986(duration)S10 R4339(.)S4418(\(Always)S4789(0.4)S(seconds)318 4943 A7296 V(under)229 1440 A1694(Minix,)S10 I1989(duration)S10 R2359(is)S(ignored.\))366 2451 A7903 V720(Page)S941(1)S4455(September)S4911(13,)S(1996)200 5061 A8143 VEP%%Page: 2 2BP/slant 0 def/height 0 def480 V10 R720(TERMIOS)S1171(\()S1213(3)S1271(\))S2696(Eighth)S(Edition)296 2989 A4676(TERMIOS)S5127(\()S5169(3)S5227(\))S960 V10 B1080(tcdrain\()S10 I1428(fd)S10 B1506(\))S1080 V10 R1440(Wait)S(until)184 1661 A1870(all)S1996(output)S(waiting)302 2277 A2604(in)S2707(the)S2855(output)S3136(queues)S3440(has)S3599(been)S(transmitted.)478 3814 A1248 V10 B1080(tcflush\()S10 I1406(fd)S10 B1484(,)S1534(TCIFLUSH\))S1368 V10 R1440(Flush)S1688(the)S(input)206 1836 A2067(queue.)S2382(\(I.e.)S2570(discard)S2886(it.\))S1536 V10 B1080(tcflush\()S10 I1406(fd)S10 B1484(,)S1534(TCOFLUSH\))S1656 V10 R1440(Flush)S1688(the)S1836(output)S2117(queue.)S1824 V10 B1080(tcflush\()S10 I1406(fd)S10 B1484(,)S1534(TCIOFLUSH\))S1944 V10 R1440(Flush)S1688(the)S(input)206 1836 A2067(and)S2237(output)S2518(queues.)S2112 V10 B1080(tcflow\()S10 I1378(fd)S10 B1456(,)S1506(TCOOFF\))S2232 V10 R1440(Suspend)S1805(output.)S2136(\(Like)S2380(the)S2528(effect)S2784(of)S10 B2893(STOP)S10 R3156(.\))S2400 V10 B1080(tcflow\()S10 I1378(fd)S10 B1456(,)S1506(TCOON\))S2520 V10 R1440(Restart)S1751(output.)S2082(\(Like)S2326(the)S2474(effect)S2730(of)S10 B2839(START)S10 R3175(.\))S2688 V10 B1080(tcflow\()S10 I1378(fd)S10 B1456(,)S1506(TCIOFF\))S2808 V10 R1440(Transmit)S1829(a)S10 B1899(STOP)S10 R2187(character)S2583(intended)S2954(to)S3057(make)S3300(the)S3448(remote)S3753(device)S4041(stop)S(transmitting)486 4233 A4744(data.)S2976 V10 B1080(tcflow\()S10 I1378(fd)S10 B1456(,)S1506(TCION\))S3096 V10 R1440(Transmit)S1829(a)S10 B1899(START)S10 R2260(character)S2656(to)S2759(restart)S3037(the)S3185(remote)S3490(device.)S3264 V9 R720(S)S722(SE)S774(EE)S832(E)S913(A)S915(AL)S983(LS)S1041(SO)S1093(O)S3384 V10 B1080(stty)S10 R1237(\(1\),)S10 B1405(tty)S10 R1523(\(4\).)S3552 V9 R720(D)S722(DI)S790(IA)S823(AG)S891(GN)S959(NO)S1027(OS)S1095(ST)S1147(TI)S1205(IC)S1238(CS)S1300(S)S3672 V10 R1080(All)S1236(functions)S1638(return)S1907(0)S1985(unless)S2264(otherwise)S2684(speci\256ed,)S3095(and)S10 R-13268(-)S10 R3325(1)S3403(on)S3531(error)S3756(with)S10 B(errno)241 3963 A10 R4232(set)S4372(to)S4478(indicate)S4825(the)S4976(type)S5177(of)S3792 V1080(error.)S1360(The)S1550(most)S1778(notable)S2107(errors)S2376(are)S10 B2533(ENOTTY)S10 R2991(if)S10 I3086(fd)S10 R3196(does)S3412(not)S3572(refer)S3796(to)S3906(a)S3983(terminal)S4351(device,)S4671(and)S10 B4848(EINTR)S10 R5199(if)S3912 V1080(one)S1250(of)S1359(the)S1507(functions)S(waiting)302 1906 A2233(for)S2376(output)S2657(to)S2760(drain)S2992(is)S3084(interrupted.)S4080 V9 R720(N)S722(NO)S790(OT)S858(TE)S916(ES)S974(S)S4200 V10 R1080(It)S1170(may)S1371(be)S1494(interesting)S1948(to)S(know)223 2055 A2307(that)S2487(the)S2639(functions)S3042(operating)S3451(on)S3580(the)S3732(tty)S3867(are)S4020(directly)S4357(translated)S4778(into)S4963(the)S5115(fol-)S4320 V1080(lowing)S1408(Minix)S10 B1702(ioctl)S10 R1935(requests:)S10 B2341(TCGETS)S10 R2749(,)S10 B2822(TCSETS)S10 R3256(\(now\),)S10 B3570(TCSETSW)S10 R4104(\(drain\),)S10 B4452(TCSETSF)S10 R4900(,)S4973(\(\257ush\),)S4440 V10 B1080(TCSBRK)S10 R1494(,)S10 B(TCDRAIN)471 1550 A10 R2021(,)S10 B2077(TCFLSH)S10 R2480(,)S2536(and)S10 B2712(TCFLOW)S10 R3159(.)S3241(You)S(should)267 3446 A3745(only)S3955(use)S4121(this)S(knowledge)441 4298 A4771(when)S5021(trying)S4560 V1080(to)S(understand)441 1183 A1649(the)S1797(tty)S1928(driver)S2194(code,)S2434(of)S2543(course.)S4728 V9 R720(B)S722(BU)S784(UG)S852(GS)S920(S)S4848 V720(A)S722(AU)S790(UT)S858(TH)S916(HO)S984(OR)S1052(R)S4968 V10 R1080(Kees)S1307(J.)S1396(Bot)S1566(\(kjb@cs.vu.nl\))S7903 V720(September)S1176(13,)S(1996)200 1326 A4990(Page)S5211(2)S8143 VEP%%Trailer%%DocumentFonts: Times-Roman Times-Bold Times-Italic%%Pages: 2

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -