The Linux Programming Interface
System Limits and Options 217 sysconfPrint("_SC_OPEN_MAX: ", _SC_OPEN_MAX); sysconfPrint("_SC_NGROUPS_MAX: ", _SC_NGROUPS_MAX); ...
218 Chapter 11 Listing 11-2 shows the use of fpathconf() to retrieve various limits for the file referred to by its standard inp ...
System Limits and Options 219 11.4 Indeterminate Limits On occasion, we may find that some system limit is not defined by an imp ...
220 Chapter 11 Each option constant, if defined, has one of the following values: z A value of –1 means that the option is not s ...
System Limits and Options 221 11.6 Summary...................................................................................... ...
222 Chapter 11 Further information Chapter 2 of [Stevens & Rago, 2005] and Chapter 2 of [Gallmeister, 1995] cover similar gr ...
Chapter 12: System and Process Information INFORMATION In this chapter, we look at ways of accessing a variety of system and pro ...
224 Chapter 12 In order to provide easier access to kernel information, many modern UNIX implementations provide a /proc virtual ...
System and Process Information 225 CapEff: 00000000fffffeff Effective capabilities CapBnd: 00000000ffffffff Capability bounding ...
226 Chapter 12 where TID is the thread ID of the thread. (This is the same number as would be returned by a call to gettid() in ...
System and Process Information 227 z Other than the files in the /proc/PID subdirectories, most files under /proc are owned by r ...
228 Chapter 12 Example program Listing 12-1 demonstrates how to read and modify a /proc file. This program reads and displays th ...
System and Process Information 229 12.2 System Identification: uname().......................................................... ...
230 Chapter 12 The gethostname() system call, which is the converse of sethostname(), retrieves the system hostname. The system ...
System and Process Information 231 12.3 Summary................................................................................. ...
...
FILE I/O BUFFERING In the interests of speed and efficiency, I/O system calls (i.e., the kernel) and the I/O functions of the st ...
234 Chapter 13 Correspondingly, for input, the kernel reads data from the disk and stores it in a kernel buffer. Calls to read() ...
File I/O Buffering 235 z Each row shows the average of 20 runs for the given buffer size. In these tests, as in other tests show ...
236 Chapter 13 input file into the buffer cache is unavoidable. However, we already saw that write() returns immediately after t ...
«
9
10
11
12
13
14
15
16
17
18
»
Free download pdf