The Linux Programming Interface
File I/O Buffering 237 13.2 Buffering in the stdio Library Buffering of data into large blocks to reduce system calls is exactly ...
238 Chapter 13 _IOLBF Employ line-buffered I/O. This flag is the default for streams referring to terminal devices. For output s ...
File I/O Buffering 239 Flushing a stdio buffer Regardless of the current buffering mode, at any time, we can force the data in a ...
240 Chapter 13 note that the file metadata includes information such as the file owner and group; file permissions; file size; n ...
File I/O Buffering 241 Using fdatasync() potentially reduces the number of disk operations from the two required by fsync() to o ...
242 Chapter 13 After this open() call, every write() to the file automatically flushes the file data and metadata to the disk (i ...
File I/O Buffering 243 The O_DSYNC and O_RSYNC flags SUSv3 specifies two further open file status flags related to synchronized ...
244 Chapter 13 Figure 13-1: Summary of I/O buffering 13.5 Advising the Kernel About I/O Patterns................................ ...
File I/O Buffering 245 bytes from offset through to the end of the file. (In kernels before 2.6.6, a len of 0 was interpreted li ...
246 Chapter 13 The specification of posix_fadvise() is new in SUSv3, and not all UNIX implementa- tions support this interface. ...
File I/O Buffering 247 Failure to observe any of these restrictions results in the error EINVAL. In the above list, block size m ...
248 Chapter 13 length = getLong(argv[2], GN_ANY_BASE, "length"); offset = (argc > 3)? getLong(argv[3], GN_ANY_BASE, "offset") ...
File I/O Buffering 249 The fdopen() function is the converse of fileno(). Given a file descriptor, it creates a corresponding st ...
250 Chapter 13 Further information [Bach, 1986] describes the implementation and advantages of the buffer cache on System V. [Go ...
Chapter 14: File Systems In Chapters 4, 5, and 13, we looked at file I/O, with a particular focus on regular (i.e., disk) files. ...
252 Chapter 14 14.1 Device Special Files (Devices) This chapter frequently mentions disk devices, so we start with a brief overv ...
File Systems 253 [Kroah-Hartman, 2003] provides an overview of udev, and outlines the reasons it is considered superior to devfs ...
254 Chapter 14 Disk partitions Each disk is divided into one or more (nonoverlapping) partitions. Each partition is treated by t ...
File Systems 255 The file-system types currently known by the kernel can be viewed in the Linux-specific /proc/filesystems file. ...
256 Chapter 14 A file system contains the following parts: z Boot block: This is always the first block in a file system. The bo ...
«
10
11
12
13
14
15
16
17
18
19
»
Free download pdf