* 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).
*/
-int pty_allocate(int *ptyfd, int *ttyfd, char *ttyname);
+int pty_allocate(int *ptyfd, int *ttyfd, char *ttyname, int ttynamelen);
/*
* Releases the tty. Its ownership is returned to root, and permissions to
pty_change_window_size(int ptyfd, int row, int col,
int xpixel, int ypixel);
+void pty_setowner(struct passwd *pw, const char *ttyname);
+
#endif /* PTY_H */