.\" Copyright Peter Benie .\" University of Cambridge Computing Service .\" Tue 19 May 1998 .TH UNLOCKPT 2 "19 May 1998" "Linux 2.0" .SH NAME unlockpt \- grant access to the pty slave .SH SYNOPSIS .nf .B #include .B cc [...] -lptmx_fake .sp .BI "int unlockpt(int " fd ); .fi .SH DESCRIPTION .B unlockpt enables the pty slave to be used. This implementation does nothing other than verify that it was called with sane arguments. fd should be a pty master or the fake pty multiplexor. .SH RETURN VALUE .B unlockpt returns zero on success, or \-1 if an error occurred. An error will occur if fd is not a pty master or if the slave device cannot be found. .SH "SEE ALSO" .BR grantpt "(3), " pty_chmod (8) .SH AUTHOR Peter Benie