Chapter 4. UNIX Input and Output

Chapter 2, "UNIX File System Objects," reviewed the open(2) and close(2) system calls. Once you have your file open on a file unit, you need some other routines that let you manipulate that file. That is largely what this chapter is all about.

However, before jumping into that topic, another topic related to open(2) should be discussed first. This is the UNIX umask(2) bits and how they affect the permissions that are established in new file system objects.

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.