O'Reilly logo

Solaris™ Internals: Core Kernel Components by Richard McDougall, Jim Mauro

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

11.2. File Application Programming Interfaces (APIs)

Several different APIs perform file I/O in Solaris. These include standard I/O—the generic C buffered I/O mechanism—and several flavors of low-level operating system file I/O.

The traditional C buffered interfaces are known as the Standard I/O functions, abbreviated as stdio. They are the buffered I/O interfaces that were added to Unix V6 by Bell Laboratories in 1976; they appear as a standard file I/O mechanism in nearly all C runtime environments. These stdio library interfaces exist as a layer above the lower-level system calls.

Of the several different types of system I/O, the most basic are the read and write system calls. The more advanced (and more recent) are POSIX I/O through pread ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required