Flashnux

GNU/Linux man pages

Livre :
Expressions régulières,
Syntaxe et mise en oeuvre :

ISBN : 978-2-7460-9712-4
EAN : 9782746097124
(Editions ENI)

GNU/Linux

CentOS 4.8

i386

ptsname(3)


PTSNAME

PTSNAME

NAME
SYNOPSIS
DESCRIPTION
RETURN VALUE
CONFORMING TO
SEE ALSO

NAME

ptsname − get the name of the slave pseudotty

SYNOPSIS

#include <stdlib.h>

char *ptsname(int fd);

DESCRIPTION

The ptsname() function returns the name of the slave pseudo-terminal device (pty) corresponding to the master pty referred to by fd.

RETURN VALUE

When successful, ptsname() returns a pointer to a string in static storage. This pointer must not be freed.

Upon failure, ptsname() returns a NULL pointer.

CONFORMING TO

POSIX 1003.1-2001. This is part of the Unix98 pty support, see pts(4).

SEE ALSO

grantpt(3), ttyname(3), pts(4)



ptsname(3)