z/OS Using REXX and z/OS UNIX System Services
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


pipe

z/OS Using REXX and z/OS UNIX System Services
SA23-2283-00

Read syntax diagramSkip visual syntax diagram
>>-pipe--stem--------------------------------------------------><

Function

pipe invokes the pipe callable service to create a pipe; or an I/O channel that a process can use to communicate with another process, another thread (in this same process or another process), or, in some cases, with itself. Data can be written into one end of the pipe and read from the other end.

Parameters

stem
Upon return, stem.0 contains the number of variables returned. Two stem variables are returned:
stem.1
The file descriptor for the end of the pipe that you read from
stem.2
The file descriptor for the end of the pipe that you write to

Usage notes

When the pipe call creates a pipe, the O_NONBLOCK and FD_CLOEXEC flags are turned off on both ends of the pipe. You can turn these flags on or off by invoking:

Example

To create a pipe:
"pipe pfd."

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014