---
title: "pipe(options:)"
framework: system
role: symbol
role_heading: Type Method
path: "system/filedescriptor/pipe(options:)"
---

# pipe(options:)

Creates a unidirectional data channel, which can be used for interprocess communication.

## Declaration

```swift
static func pipe(options: FileDescriptor.PipeOptions) throws(Errno) -> (readEnd: FileDescriptor, writeEnd: FileDescriptor)
```

## Parameters

- `options`: The behavior for creating the pipe.

## Return Value

Return Value The pair of file descriptors.

## Discussion

Discussion The corresponding C function is pipe2.
