.\"
.TH PTSNAME 3 2008-09-03 "" "Linux Programmer's Manual"
.SH NAME
-ptsname, ptsname_r \- get the name of the slave pseudo-terminal
+ptsname, ptsname_r \- get the name of the slave psuedoterminal
.SH SYNOPSIS
.nf
.B #define _XOPEN_SOURCE
.SH DESCRIPTION
The
.BR ptsname ()
-function returns the name of the slave pseudo-terminal (pty) device
+function returns the name of the slave psuedoterminal (pty) device
corresponding to the master referred to by
.IR fd .
.BR ptsname_r ()
function is the reentrant equivalent of
.BR ptsname ().
-It returns the name of the slave pseudo-terminal device as a
+It returns the name of the slave psuedoterminal device as a
null-terminated string in the buffer pointed to by
.IR buf .
The
.TP
.B ENOTTY
.I fd
-does not refer to a pseudo-terminal master device.
+does not refer to a psuedoterminal master device.
.TP
.B ERANGE
.RB ( ptsname_r ()
is provided in glibc since version 2.1.
.SH "CONFORMING TO"
.BR ptsname ()
-is part of the UNIX 98 pseudo-terminal support (see
+is part of the UNIX 98 psuedoterminal support (see
.BR pts (4)).
This function is specified in POSIX.1-2001.