UNIX 在终端和运行 程序之间有一个终端行规程(见图11 - 2),通过这个规程我们能够在终端上设置特殊字符(退 格、行删除、中断等)。但是,当一个登录请求到达网络连接时,终端行规程并不是自动被加 载到网络连接和登录程序s h e l l之间的。图9 - 5显示了一个伪终端设备驱动程序被用来提供终端 语义。 除了用于网络登录,伪终端还被用在其他方面,本章将对此进行介绍。我们将首先提供 S V R 4和4 . 3 + B S D系统下用于创建伪终端的函数,然后使用这些函数编写一个程序用来调用p
Understanding the Linux Kernel helps readers understand how Linux performs best and how it meets the challenge of different environments. The authors introduce each topic by explaining its importance, and show how kernel operations relate to the uti