1 .\" Hey Emacs! This file is -*- nroff -*- source.
2 .\" This page is in the public domain. - aeb
4 .TH PTSNAME 3 "2003-01-30" "PTY Control" "Linux Programmer's Manual"
6 ptsname \- get the name of the slave pseudotty
9 .B #define _XOPEN_SOURCE
11 .B #include <stdlib.h>
13 .BI "char *ptsname(int " fd ");"
18 function returns the name of the slave pseudo-terminal device (pty)
19 corresponding to the master pty referred to by
24 returns a pointer to a string in static storage. This pointer
29 returns a NULL pointer.
32 This is part of the Unix98 pty support, see