Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

62.12. Exercises

  1. Implement isatty(). (You may find it useful to read the description of tcgetattr() in Section 62.2.)

  2. Implement ttyname().

  3. Implement the getpass() function described in Section 8.5. (The getpass() function can obtain a file descriptor for the controlling terminal by opening /dev/tty.)

  4. Write a program that displays information indicating whether the terminal referred to by standard input is in canonical or noncanonical mode. If in noncanonical mode, then display the values of TIME and MIN.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial