Advanced Programming in the UNIX® Environment
ptg10805159 Section 18.5 Te rminal Option Flags 687 ECHOK (c_lflag,POSIX.1, FreeBSD, Linux, Mac OS X, Solaris) If set and if ICA ...
ptg10805159 688 Te rminal I/O Chapter 18 ICRNL (c_iflag,POSIX.1, FreeBSD, Linux, Mac OS X, Solaris) If set and if IGNCR is not s ...
ptg10805159 Section 18.5 Te rminal Option Flags 689 IUTF8 (c_iflag,Linux, Mac OS X) Allow character erase processing to work wit ...
ptg10805159 690 Te rminal I/O Chapter 18 ONLCR (c_oflag,XSI, FreeBSD, Linux, Mac OS X, Solaris) If set, map NL to CR-NL on outpu ...
ptg10805159 Section 18.6 sttyCommand 691 TABDLY (c_oflag,XSI, Linux, Mac OS X, Solaris) Horizontal tab delay mask. The values fo ...
ptg10805159 692 Te rminal I/O Chapter 18 Option names preceded by a hyphen aredisabled. The last four lines display the current ...
ptg10805159 Section 18.8 Line Control Functions 693 The four baud rate functions exist to insulate applications from differences ...
ptg10805159 694 Te rminal I/O Chapter 18 Thetcsendbreak function transmits a continuous stream of zerobits for a specified durat ...
ptg10805159 Section 18.9 Te rminal Identification 695 Note that we can’t protect against overrunning the caller’s buffer,because ...
ptg10805159 696 Te rminal I/O Chapter 18 When we run the program from Figure18.14, we get the following output: $./a.out fd 0: t ...
ptg10805159 Section 18.9 Te rminal Identification 697 if ((ddp->d_name = strdup(dirname)) == NULL) { free(ddp); return; } ddp ...
ptg10805159 698 Te rminal I/O Chapter 18 strcmp(pathname, "/dev/stdout") == 0 || strcmp(pathname, "/dev/stderr") == 0) continue; ...
ptg10805159 Section 18.9 Te rminal Identification 699 number and matching i-node number,we’ve located the desired directory entr ...
ptg10805159 700 Te rminal I/O Chapter 18 Running the program from Figure18.16 gives us $./a.out < /dev/console 2> /dev/nul ...
ptg10805159 Section 18.10 Canonical Mode 701 #include <signal.h> #include <stdio.h> #include <termios.h> #defi ...
ptg10805159 702 Te rminal I/O Chapter 18 handle these signals. Some versions just ignoreSIGINT(saving its previous action) while ...
ptg10805159 Section 18.11Noncanonical Mode 703 Whenever a program that callsgetpassis done with the cleartext password, the prog ...
ptg10805159 704 Te rminal I/O Chapter 18 Case C: MIN == 0, TIME > 0 TIME specifies a read timer that is started whenreadis ca ...
ptg10805159 Section 18.11Noncanonical Mode 705 Twoadditional functions areprovided:tty_atexitcan be established as an exit handl ...
ptg10805159 706 Te rminal I/O Chapter 18 /* *Only some of the changes were made. Restore the *original settings. */ tcsetattr(fd ...
«
32
33
34
35
36
37
38
39
40
41
»
Free download pdf