https://manpages.org/unlockpt/3
man unlockpt (3): unlock a pseudoterminal master/slave pair
man unlockpt (3): The unlockpt() function unlocks the slave pseudoterminal device corresponding to the master pseudoterminal referred to by fd. unlockpt()...
master slavemanunlockpair