Returns a file descriptor that is equivalent to the one boxed by the file descriptor object.
- macOS 10.7+
- Mac Catalyst 13.0+
The file descriptor object which is to be examined.
A file descriptor that is equivalent to the one originally given to
xpc. If the descriptor could not be created, -1 is returned.
Multiple invocations of
xpc will not return the same file descriptor number, but they will return descriptors that are equivalent, as though they had been created by
The caller is responsible for calling
close(2) on the returned descriptor.