grantpt man page on IRIX

Man page or keyword search:  
man Server   31559 pages
apropos Keyword Search (all sections)
Output format
IRIX logo
[printable version]



grantpt(3C)							   grantpt(3C)

NAME
     grantpt - grant access to the slave pseudo-terminal device

SYNOPSIS
     #include <stdlib.h>

     int grantpt(int fildes);

DESCRIPTION
     The function grantpt changes the mode and ownership of the slave pseudo-
     terminal device associated with its master pseudo-terminal counter part.
     fildes is the file descriptor returned from a successful open of the
     master pseudo-terminal device.  A setuid root program [see setuid(2)] is
     invoked to change the permissions.	 The user ID of the slave is set to
     the effective owner of the calling process and the group ID is set to a
     reserved group.  The permission mode of the slave pseudo-terminal is set
     to readable, writeable by the owner and writeable by the group.

RETURN VALUE
     Upon successful completion, the function grantpt returns 0; otherwise it
     returns -1.  Failure could occur if fildes is not an open file
     descriptor, if fildes is not associated with a master pseudo-terminal
     device, or if the corresponding slave device could not be accessed.

SEE ALSO
     open(2), setuid(2), ptsname(3C), unlockpt(3C)

									Page 1

[top]

List of man pages available for IRIX

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net