...g 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, the slave provide…...g 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, the slave provide…