---
title: FileDescriptor.DuplicateOptions
framework: system
role: symbol
role_heading: Structure
path: system/filedescriptor/duplicateoptions
---

# FileDescriptor.DuplicateOptions

Options that specify behavior for a duplicated file descriptor.

## Declaration

```swift
@frozen struct DuplicateOptions
```

## Topics

### Initializers

- [init(rawValue:)](system/filedescriptor/duplicateoptions/init(rawvalue:).md)

### Instance Properties

- [rawValue](system/filedescriptor/duplicateoptions/rawvalue.md)

### Type Properties

- [closeOnExec](system/filedescriptor/duplicateoptions/closeonexec.md)
- [closeOnFork](system/filedescriptor/duplicateoptions/closeonfork.md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Copyable](swift/copyable.md)
- [Decodable](swift/decodable.md)
- [Encodable](swift/encodable.md)
- [Equatable](swift/equatable.md)
- [ExpressibleByArrayLiteral](swift/expressiblebyarrayliteral.md)
- [Hashable](swift/hashable.md)
- [OptionSet](swift/optionset.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
- [SetAlgebra](swift/setalgebra.md)
