pipe(options:)
Creates a unidirectional data channel, which can be used for interprocess communication.
Declaration
static func pipe(options: FileDescriptor.PipeOptions) throws(Errno) -> (readEnd: FileDescriptor, writeEnd: FileDescriptor)Parameters
- options:
The behavior for creating the pipe.
Return Value
The pair of file descriptors.
Discussion
The corresponding C function is pipe2.