carta
openpty(3) on macOS
The text eb553e3d30c0, as macOS 15.6 shipped it.
tty utility functions
openpty(3) on macOS now