The Linux Programming Interface
KERNEL CONFIGURATION Many features of the Linux kernel are components that can be optionally config- ured. Before compiling the ...
1418 Appendix D Throughout this book, when we describe kernel options, we won’t describe pre- cisely where in the menuconfig or ...
FURTHER SOURCES OF INFORMATION Aside from the material in this book, many other sources of information about Linux system progra ...
1420 Appendix E Overview, conventions, protocols, and miscellany: overviews of various topics, and various pages on network pro ...
Further Sources of Information 1421 The manual pages describing the kernel and glibc APIs are available online at http://www.ker ...
1422 Appendix E The POSIX threading API is thoroughly described in Programming with POSIX Threads ([Butenhof, 1996]). Linux and ...
Further Sources of Information 1423 Newsgroups Usenet newsgroups can often be a good source of answers to specific programming q ...
1424 Appendix E z http://www.kernelnewbies.org/, Linux Kernel Newbies, is a starting point for pro- grammers who want to learn a ...
SOLUTIONS TO SELECTED EXERCISES Chapter 5 5-3. A solution is provided in the file fileio/atomic_append.c in the source code dist ...
1426 Appendix F A call to dup2() can be rewritten as: if (oldfd == newfd) { /* oldfd == newfd is a special case */ if (fcntl(old ...
Solutions to Selected Exercises 1427 Chapter 9 9-1. In considering the following, remember that changes to the effective user ID ...
1428 Appendix F Chapter 12 12-1. A solution is provided in the file sysinfo/procfs_user_exe.c in the source code distribution fo ...
Solutions to Selected Exercises 1429 since it is interpreted relative to the location of the link file, and thus refers to a non ...
1430 Appendix F processes. All four processes carry on to execute the next fork(), each creating a further child. Consequently, ...
Solutions to Selected Exercises 1431 orphaned, the grandchild is adopted by init (process ID of 1). The program doesn’t need to ...
1432 Appendix F The problem is that grep will be part of the same process group as ourprog, and therefore the killpg() call will ...
Solutions to Selected Exercises 1433 writing (this will succeed without blocking), and then writes data to the FIFO after the se ...
1434 Appendix F Chapter 47 47-5. A solution is provided in the file svsem/event_flags.c in the source code distribution for this ...
Solutions to Selected Exercises 1435 Chapter 55 55-1. The following hold for flock() on Linux: a) A series of shared locks can s ...
1436 Appendix F Chapter 62 62-1. The tcgetattr() fails if it is applied to a file descriptor that doesn’t refer to a terminal. 6 ...
«
69
70
71
72
73
74
75
76
77
78
»
Free download pdf