version 1.1, 2001/03/04 01:46:30 |
version 1.2, 2001/06/26 06:33:04 |
|
|
* descriptors for the pty and tty sides and the name of the tty side are |
* descriptors for the pty and tty sides and the name of the tty side are |
* returned (the buffer must be able to hold at least 64 characters). |
* returned (the buffer must be able to hold at least 64 characters). |
*/ |
*/ |
int pty_allocate(int *ptyfd, int *ttyfd, char *ttyname, int ttynamelen); |
int pty_allocate(int *, int *, char *, int); |
|
|
/* |
/* |
* Releases the tty. Its ownership is returned to root, and permissions to |
* Releases the tty. Its ownership is returned to root, and permissions to |
* 0666. |
* 0666. |
*/ |
*/ |
void pty_release(const char *ttyname); |
void pty_release(const char *); |
|
|
/* |
/* |
* Makes the tty the processes controlling tty and sets it to sane modes. |
* Makes the tty the processes controlling tty and sets it to sane modes. |
* This may need to reopen the tty to get rid of possible eavesdroppers. |
* This may need to reopen the tty to get rid of possible eavesdroppers. |
*/ |
*/ |
void pty_make_controlling_tty(int *ttyfd, const char *ttyname); |
void pty_make_controlling_tty(int *, const char *); |
|
|
/* Changes the window size associated with the pty. */ |
/* Changes the window size associated with the pty. */ |
void |
void pty_change_window_size(int, int, int, int, int); |
pty_change_window_size(int ptyfd, int row, int col, |
|
int xpixel, int ypixel); |
|
|
|
void pty_setowner(struct passwd *pw, const char *ttyname); |
void pty_setowner(struct passwd *, const char *); |
|
|
#endif /* SSHPTY_H */ |
#endif /* SSHPTY_H */ |