Summary

This chapter presented an overview of the UNIX philosophy of working with file I/O. You saw how the umask(2) function controls how permissions are given out when new file system objects are created. The chapter also covered various aspects of performing reading, writing, seeking, truncating, and working with sparse files. UNIX truly does provide the programmer a rich environment in which to write applications.

The next chapter is going to extend this programming knowledge further. Building databases and updating files are almost trivial tasks for a system that has only one user. However, on the multiuser operating system that UNIX is, you need to be concerned about when and where certain update events occur in files being updated by more ...

Get Advanced UNIX Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.