/* 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 #ifdef HAVE_PTY_H #include #endif #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 #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) \ && !defined(HAVE_REVOKE) /* * Breaks under Ultrix and others where you cannot get controlling * terminal twice. */ #define VHANG_FIRST #define VHANG_LAST #endif #if defined(NEED_GETUTMPX_PROTOTYPE) extern void getutmpx (const struct utmp *, struct utmpx *); #endif #if defined(NEED_REVOKE_PROTO) extern int revoke(const char *); #endif /* Internal functions */ long ptyint_void_association(void); long ptyint_open_ctty (char *slave, int *fd); long ptyint_getpty_ext(int *, char *, int, int); #ifdef HAVE_SETUTXENT long ptyint_update_wtmpx(struct utmpx *utx); #endif #if !(defined(WTMPX_FILE) && defined(HAVE_UPDWTMPX)) \ || !defined(HAVE_SETUXENT) long ptyint_update_wtmp(struct utmp *ut); #endif void ptyint_vhangup(void); #define __PTY_INT_H__ #endif