The Linux Programming Interface
Monitoring File Events 377 Starting with kernel 2.6.27, Linux supports a new, nonstandard system call, inotify_init1(). This sys ...
378 Chapter 19 The inotify_rm_watch() system call removes the watch item specified by wd from the inotify instance referred to b ...
Monitoring File Events 379 The meanings of most of the bits in Table 19-1 are evident from their names. The following list clari ...
380 Chapter 19 Figure 19-2: An input buffer containing three inotify_event structures The wd field tells us the watch descriptor ...
Monitoring File Events 381 z The IN_UNMOUNT event informs the application that the file system containing the monitored object h ...
382 Chapter 19 When appending a new event to the end of the event queue, the kernel will coalesce that event with the event at t ...
Monitoring File Events 383 #define BUF_LEN (10 * (sizeof(struct inotify_event) + NAME_MAX + 1)) int main(int argc, char *argv[]) ...
384 Chapter 19 The program in Listing 19-1 performs the following steps: z Use inotify_init() to create an inotify file descript ...
Monitoring File Events 385 These two events share the same cookie value, allowing the application to link them. When we create a ...
386 Chapter 19 19.6 An Older System for Monitoring File Events: dnotify....................................................... L ...
SIGNALS: FUNDAMENTAL CONCEPTS This chapter and next two chapters discuss signals. Although the fundamental con- cepts are simple ...
388 Chapter 20 20.1 Concepts and Overview....................................................................................... ...
Signals: Fundamental Concepts 389 Upon delivery of a signal, a process carries out one of the following default actions, dependi ...
390 Chapter 20 Signals appeared in very early UNIX implementations, but have gone through some significant changes since their i ...
Signals: Fundamental Concepts 391 SIGCLD This is a synonym for SIGCHLD. SIGCONT When sent to a stopped process, this signal caus ...
392 Chapter 20 SIGINT When the user types the terminal interrupt character (usually Control-C), the terminal driver sends this s ...
Signals: Fundamental Concepts 393 SIGQUIT When the user types the quit character (usually Control-) on the keyboard, this signal ...
394 Chapter 20 SIGTRAP This signal is used to implement debugger breakpoints and system call tracing, as performed by strace(1) ...
Signals: Fundamental Concepts 395 SIGUSR2 See the description of SIGUSR1. SIGVTALRM The kernel generates this signal upon expira ...
396 Chapter 20 Note the following points regarding the default behavior shown for certain signals in Table 20-1: z On Linux 2.2, ...
«
17
18
19
20
21
22
23
24
25
26
»
Free download pdf