diff 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
line wrap: on
line diff
--- a/lib/gftp.h	Sat Jul 05 17:30:14 2003 +0000
+++ b/lib/gftp.h	Sun Jul 06 13:52:43 2003 +0000
@@ -90,10 +90,13 @@
 
 #ifdef HAVE_PTY_H
 #include <pty.h>
+#include <utmp.h> /* for login_tty */
 #elif HAVE_LIBUTIL_H
 #include <libutil.h>
+#include <utmp.h> /* for login_tty */
 #else
 extern int openpty(int *amaster, int *aslave, char *name, struct termios *termp, struct winsize * winp);
+extern int login_tty(int fd);
 #endif
 
 #ifdef HAVE_GETADDRINFO
@@ -945,13 +948,15 @@
 					  mode_t perms );
 
 /* pty.c */
-char * get_pty_impl 			( void );
+char * gftp_get_pty_impl 		( void );
 
-int open_ptys 				( gftp_request * request, 
+pid_t gftp_exec_with_new_pty 		( gftp_request * request, 
 					  int *fdm, 
-					  int *fds );
+					  char **args );
 
-int tty_raw 				( int fd );
+pid_t gftp_exec_without_new_pty 	( gftp_request * request, 
+					  int *fdm, 
+					  char **args );
 
 #ifdef USE_SSL
 /* sslcommon.c */