#ifndef __PTY_INT_H__
#include <pty_err.h>
#include <sys/types.h>
#if defined(_AIX) && defined(_THREAD_SAFE)
# undef _THREAD_SAFE
#endif
#ifdef HAVE_UTMP_H
#include <utmp.h>
#endif
#ifdef HAVE_UTMPX_H
#include <utmpx.h>
#endif
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#ifdef __SCO__
#include <sys/unistd.h>
#endif
#ifdef HAVE_STDLIB_H
#include <stdlib.h>
#endif
#include <stdio.h>
#ifdef HAVE_PTY_H
#include <pty.h>
#endif
#include <sys/stat.h>
#include <sys/ioctl.h>
#include <sys/file.h>
#include <sys/time.h>
#include <ctype.h>
#include <fcntl.h>
#include <errno.h>
#include <pwd.h>
#ifdef HAVE_SYS_LABEL_H
#include <sys/label.h>
#include <sys/audit.h>
#include <pwdadj.h>
#endif
#include <signal.h>
#ifdef hpux
#include <sys/ptyio.h>
#endif
#ifdef sysvimp
#include <compat.h>
#endif
#ifdef HAVE_SYS_SELECT_H
#include <sys/select.h>
#endif
#ifdef HAVE_STREAMS
#include <sys/stream.h>
#include <sys/stropts.h>
#endif
#if defined(POSIX_TERMIOS) && !defined(ultrix)
#include <termios.h>
#else
#include <sgtty.h>
#endif
#include "port-sockets.h"
#include <string.h>
#include <sys/param.h>
#ifdef HAVE_UTIL_H
#include <util.h>
#endif
#ifdef HAVE_STREAMS
#ifdef HAVE_SYS_TTY_H
#include <sys/tty.h>
#endif
#ifdef HAVE_SYS_PTYVAR_H
#include <sys/ptyvar.h>
#endif
#endif
#if defined(HAVE_VHANGUP) && !defined(OPEN_CTTY_ONLY_ONCE) \
&& !defined(HAVE_REVOKE)
#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
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