9.5. Text File I/O

The system-supplied standard C library also provides functions for input and output from file systems. Linking methods and calling conventions are similar to those for display and keyboard I/O, and are set forth in Table 9-2.

Table 9-2 presents the function interfaces from a register-level programming perspective, rather than their C data types, using the calling conventions of Unix and Linux. When a function returns a useful value in register ret0, we include a brief description of it.

9.5.1. Directory-Level Access

With standard input and output, no special preparations are necessary because the environment in which a process runs already has stdin and stdout predefined and ready to accept any I/O. File I/O, on the other hand, ...

Get Itanium® Architecture for Programmers: Understanding 64-Bit Processors and EPIC Principles 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.