One Logo Pool Ball
System · IOS API REFERENCE

FileDescriptor.PipeOptions

struct · iOS 27.0+ · SDK 27.1

@frozen struct PipeOptions

Options that specify behavior for a newly-created pipe.

Members (6)

get · iOS 27.0+

closeOnExec

TypeScript
get closeOnExec(): FileDescriptor_PipeOptions
Swift declaration
static var closeOnExec: FileDescriptor.PipeOptions { get }

Indicates that executing a program closes the file. Normally, file descriptors remain open across calls to the `exec(2)` family of functions. If you specify this option, the file descriptor is closed when replacing this process with another process. The state of the file descriptor flags can be inspected using `F_GETFD`, as described in the `fcntl(2)` man page. The corresponding C constant is `O_CLOEXEC`.

get · iOS 27.0+

closeOnFork

TypeScript
get closeOnFork(): FileDescriptor_PipeOptions
Swift declaration
static var closeOnFork: FileDescriptor.PipeOptions { get }

Indicates that forking a program closes the file. Normally, file descriptors remain open across calls to the `fork(2)` function. If you specify this option, the file descriptor is closed when forking this process into another process. The state of the file descriptor flags can be inspected using `F_GETFD`, as described in the `fcntl(2)` man page. The corresponding C constant is `O_CLOFORK`.

get · iOS 27.0+

nonBlocking

TypeScript
get nonBlocking(): FileDescriptor_PipeOptions
Swift declaration
static var nonBlocking: FileDescriptor.PipeOptions { get }

Indicates that all subsequent input and output operations on the pipe's file descriptors will be nonblocking. The corresponding C constant is `O_NONBLOCK`.

init · iOS 27.0+

init

TypeScript
init(rawValue: number): FileDescriptor_PipeOptions
Swift declaration
init(rawValue: CInt)

Create a strongly-typed options value from raw C options.

get · iOS 27.0+

rawValue

TypeScript
getRawValue($self: FileDescriptor_PipeOptions): number
Swift declaration
var rawValue: CInt

The raw C options.

set · iOS 27.0+

rawValue

TypeScript
setRawValue($self: FileDescriptor_PipeOptions, value: number): void
Swift declaration
var rawValue: CInt

The raw C options.

Skipped declarations

No declarations were skipped in this snapshot.

All System types →