Signup
Search Linux manpages For:  

ptsname(3) -- Linux man page

 

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)


 
LINUX MAN PAGES
Man1 -- User Commands (Intro)
Man2 -- System Calls (Intro)
Man3 -- Library Functions (Intro)
Man4 -- Special Files (Intro)
Man5 -- File Formats (Intro)
Man6 -- Games (Intro)
Man7 -- Miscellaneous (Intro)
Man8 -- Administration (Intro)
Mann -- TCL Functions (not available)


WEB HOSTING SHOWCASE




 
Cheap Web HostingBudget Web HostingEcommerce Web Hosting
Link to UsLink ExchangeAdvertisePrivacy PolicyTerms Of ServiceAbout UsContact UsSitemap
Copyright © 2006 - 2012 Broadband Media, Inc. All rights reserved.