/* Includes needed by libpty*/ #ifndef __PTY_INT_H__ #include #include #ifdef HAVE_UTMP_H #include #endif #ifdef HAVE_UTMPX_H #include #endif #ifdef HAVE_UNISTD_H #include #endif #ifdef __SCO__ #include #endif #ifdef HAVE_STDLIB_H #include #endif #include #include #include #include #include #include #include #include #include #include #include #include #ifdef HAVE_SYS_LABEL_H /* only SunOS 4? */ #include #include #include #endif #include #ifdef hpux #include #endif #ifdef sysvimp #include #endif #ifdef HAVE_SYS_SELECT_H #include #endif #ifdef HAVE_STREAMS #include #include #endif #if defined(POSIX_TERMIOS) && !defined(ultrix) #include #else #include #endif #include #include #include #include #ifdef HAVE_STREAMS /* krlogin doesn't test sys/tty... */ #ifdef HAVE_SYS_TTY_H #include #endif #ifdef HAVE_SYS_PTYVAR_H /* Solaris actually uses packet mode, so the real macros are needed too */ #include #endif #endif #if defined(HAVE_VHANGUP) && !defined(OPEN_CTTY_ONLY_ONCE) #define VHANG_first /* Breaks under Ultrix and others where you cannot get controlling terminal twice.*/ #define VHANG_LAST #endif /* Internal functions */ #ifdef __STDC__ void initialize_pty_error_table(void); long ptyint_void_association(void); long ptyint_open_ctty (char *slave, int *fd); long ptyint_update_wtmp (struct utmp *ut); void ptyint_vhangup(void); #else /*__STDC__*/ long ptyint_void_association(); void ptyint_vhangup(); void initialize_pty_error_table(); long ptyint_update_wtmp(); #endif /* __STDC__*/ #define __PTY_INT_H__ #endif