sshpty.h 1.0 KB

1234567891011121314151617181920212223242526272829
  1. /* $OpenBSD: sshpty.h,v 1.13 2016/11/29 03:54:50 dtucker Exp $ */
  2. /*
  3. * Author: Tatu Ylonen <ylo@cs.hut.fi>
  4. * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
  5. * All rights reserved
  6. * Functions for allocating a pseudo-terminal and making it the controlling
  7. * tty.
  8. *
  9. * As far as I am concerned, the code I have written for this software
  10. * can be used freely for any purpose. Any derived versions of this
  11. * software must be clearly marked as such, and if the derived work is
  12. * incompatible with the protocol description in the RFC file, it must be
  13. * called by a name other than "ssh" or "Secure Shell".
  14. */
  15. #include <termios.h>
  16. struct termios *get_saved_tio(void);
  17. void leave_raw_mode(int);
  18. void enter_raw_mode(int);
  19. int pty_allocate(int *, int *, char *, size_t);
  20. void pty_release(const char *);
  21. void pty_make_controlling_tty(int *, const char *);
  22. void pty_change_window_size(int, u_int, u_int, u_int, u_int);
  23. void pty_setowner(struct passwd *, const char *);
  24. void disconnect_controlling_tty(void);