...). Before opening the pseudoterminal slave, you must pass the master's file descriptor to grantpt (3) and unlockpt (3). Once both the pseudoterminal master and slave are open, t…...). Before opening the pseudoterminal slave, you must pass the master's file descriptor to grantpt (3) and unlockpt (3). Once both the pseudoterminal master and slave are open, t…