Advanced Programming in the UNIX® Environment
ptg10805159 Section 17.6 An Open Server,Version 2 667 for (i = 0; i < NALLOC; i++) { pollfd[i].fd = -1; pollfd[i].events = PO ...
ptg10805159 668 Advanced IPC Chapter 17 } numfd--; }else { /* process client’s request */ handle_request(buf, nread, pollfd[i].f ...
ptg10805159 Section 17.7 Summary 669 /* parse the arguments, set options */ if (buf_args(buf, cli_args) < 0) { send_err(clifd ...
ptg10805159 670 Advanced IPC Chapter 17 Exercises 17.1 We chose to use UNIX domain datagram sockets in Figure17.3, because they ...
ptg10805159 18 Terminal I/O 18.1 Introduction The handling of terminal I/O is a messy area, regardless of the operating system. ...
ptg10805159 672 Te rminal I/O Chapter 18 If we don’t do anything special, canonical mode is the default. For example, if the she ...
ptg10805159 Section 18.2 Overview 673 •There is another input limit,MAX_CANON,that we don’t show here. This limit is the maximum ...
ptg10805159 674 Te rminal I/O Chapter 18 All the terminal device characteristics that we can examine and change are contained in ...
ptg10805159 Section 18.2 Overview 675 Figures 18.3 through 18.6). The handling of terminal devices is complicated by the large n ...
ptg10805159 676 Te rminal I/O Chapter 18 FreeBSD Linux Mac OS X Solaris Flag Description POSIX.1 8.0 3.2.0 10.6.8 10 ALTWERASE u ...
ptg10805159 Section 18.2 Overview 677 Function Description tcgetattr fetch attributes (termiosstructure) tcsetattr set attribute ...
ptg10805159 678 Te rminal I/O Chapter 18 18.3 Special Input Characters POSIX.1 defines 11characters that arehandled specially on ...
ptg10805159 Section 18.3 Special Input Characters 679 Example Beforedescribing all the special characters in detail, let’s look ...
ptg10805159 680 Te rminal I/O Chapter 18 We now describe each of the special characters in moredetail. Wecall these the special ...
ptg10805159 Section 18.3 Special Input Characters 681 ERASE2 The alternate erase character (backspace). This character is treate ...
ptg10805159 682 Te rminal I/O Chapter 18 STATUS The BSD status-request character.This character is recognized on input in extend ...
ptg10805159 Section 18.5 Te rminal Option Flags 683 18.4 Getting and Setting Ter minal Attr ibutes To get and set a termios stru ...
ptg10805159 684 Te rminal I/O Chapter 18 All the flags listed specify one or morebits that we turn on or clear,unless we call th ...
ptg10805159 Section 18.5 Te rminal Option Flags 685 We now describe each of the flags. ALTWERASE (c_lflag,FreeBSD, Mac OS X) If ...
ptg10805159 686 Te rminal I/O Chapter 18 CREAD (c_cflag,POSIX.1, FreeBSD, Linux, Mac OS X, Solaris) If set, the receiver is enab ...
«
31
32
33
34
35
36
37
38
39
40
»
Free download pdf