<!--
{
  "availability" : [
    "iOS: 17.4.0 -",
    "iPadOS: 17.4.0 -",
    "macCatalyst: 17.4.0 -",
    "macOS: 14.4.0 -",
    "tvOS: 17.4.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 10.4.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "System",
  "identifier" : "/documentation/System/Mach/Port/copySendRight()",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "System"
    ],
    "preciseIdentifier" : "s:6System4MachO4PortVAaC9SendRightVRszrlE04copydE0AEy_AGGyKF"
  },
  "title" : "copySendRight()"
}
-->

# copySendRight()

Create another send right from a given send right.

```
func copySendRight() throws -> Mach.Port<Mach.SendRight>
```

## Discussion

This does not affect the makeSendCount of the receive right.

If the send right being copied has become a dead name, meaning the
receiving side has been deallocated, then copySendRight() will throw
a Mach.PortRightError.deadName error.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)