comparison lib/gftp.h @ 210:82ebd1b05345

2003-7-6 Brian Masney <masneyb@gftp.org> * lib/pty.c lib/gftp.h - added gftp_exec_with_new_pty() and gftp_exec_without_new_pty() * lib/sshv2.c - use the 2 new functions above * lib/pty.c lib/gftp.h - split open_ptys() to _gftp_ptym_open() and _gftp_ptys_open() * lib/sslcommon.c - don't do thread setup if we are compiling against glib 1.2. I do not want to link against the pthread library because that would make the text port dependant on pthreads being installed on the box
author masneyb
date Sun, 06 Jul 2003 13:52:43 +0000
parents cf4098008615
children de6a2e8e51cb
comparison
equal deleted inserted replaced
209:d79e2782eb1b 210:82ebd1b05345
88 #define AF_LOCAL AF_UNIX 88 #define AF_LOCAL AF_UNIX
89 #endif 89 #endif
90 90
91 #ifdef HAVE_PTY_H 91 #ifdef HAVE_PTY_H
92 #include <pty.h> 92 #include <pty.h>
93 #include <utmp.h> /* for login_tty */
93 #elif HAVE_LIBUTIL_H 94 #elif HAVE_LIBUTIL_H
94 #include <libutil.h> 95 #include <libutil.h>
96 #include <utmp.h> /* for login_tty */
95 #else 97 #else
96 extern int openpty(int *amaster, int *aslave, char *name, struct termios *termp, struct winsize * winp); 98 extern int openpty(int *amaster, int *aslave, char *name, struct termios *termp, struct winsize * winp);
99 extern int login_tty(int fd);
97 #endif 100 #endif
98 101
99 #ifdef HAVE_GETADDRINFO 102 #ifdef HAVE_GETADDRINFO
100 #define HAVE_IPV6 103 #define HAVE_IPV6
101 #define GFTP_GET_AI_FAMILY(request) (request != NULL && request->hostp != NULL ? request->hostp->ai_family : -1) 104 #define GFTP_GET_AI_FAMILY(request) (request != NULL && request->hostp != NULL ? request->hostp->ai_family : -1)
943 const char *pathname, 946 const char *pathname,
944 int flags, 947 int flags,
945 mode_t perms ); 948 mode_t perms );
946 949
947 /* pty.c */ 950 /* pty.c */
948 char * get_pty_impl ( void ); 951 char * gftp_get_pty_impl ( void );
949 952
950 int open_ptys ( gftp_request * request, 953 pid_t gftp_exec_with_new_pty ( gftp_request * request,
951 int *fdm, 954 int *fdm,
952 int *fds ); 955 char **args );
953 956
954 int tty_raw ( int fd ); 957 pid_t gftp_exec_without_new_pty ( gftp_request * request,
958 int *fdm,
959 char **args );
955 960
956 #ifdef USE_SSL 961 #ifdef USE_SSL
957 /* sslcommon.c */ 962 /* sslcommon.c */
958 int gftp_ssl_startup ( gftp_request * request ); 963 int gftp_ssl_startup ( gftp_request * request );
959 964