STREAMS-UX Programmer's Guide (February 2007)

Chapter 2
17
2 STREAMS Mechanism and System Calls
This chapter describes system calls that create, use, and close a stream. The stream head processes the
system calls that are made by a user level process. These system calls provide the user level facilities needed
to develop applications.
This chapter describes the following:
Creating a stream or a streams based pipe
Writing to a stream
Reading from a stream
Pushing a module into a stream
Popping a module from a stream:
Closing a stream
Polling a stream
Asynchronous event notification
Attaching and detaching a stream to a file