comparison lib/gftp.h @ 146:782f84694489

2003-4-25 Brian Masney <masneyb@gftp.org> * lib/rfc959.c - added IPV6 support (RFC2428). The only part of the project that isn't IPV6 ready is the proxy comparsion functions. * lib/protocols.c - change the hints.ai_family paramater from AF_INET to PF_UNSPEC * lib/gftp.h lib/misc.c lib/pty.c - moved the functionality of pty[ms]_open() to pty.c. Combined these 2 functions into open_ptys(), and there is one defined for each system type (lots of #define's in this file!) * lib/Makefile.am po/POTFILES.in - added pty.c * lib/sshv2.c - when searching for the password prompt, omit the first character in case it is capitalized. Also, use the new function open_ptys() * configure.in - search for openpty in -lutil. Also, define HAVE_OPENPTY if this function is present on the system
author masneyb
date Sat, 26 Apr 2003 15:26:42 +0000
parents c363b08e0118
children 2f15b3000dbc
comparison
equal deleted inserted replaced
145:a57ba8acfde5 146:782f84694489
76 #endif 76 #endif
77 #define N_(String) String 77 #define N_(String) String
78 78
79 #ifndef AF_LOCAL 79 #ifndef AF_LOCAL
80 #define AF_LOCAL AF_UNIX 80 #define AF_LOCAL AF_UNIX
81 #endif
82
83 #ifdef HAVE_GETADDRINFO
84 #define HAVE_IPV6
85 #define GFTP_GET_AI_FAMILY(request) (request->hostp->ai_family)
86 #else
87 #define GFTP_GET_AI_FAMILY(request) AF_INET
81 #endif 88 #endif
82 89
83 /* We need the major() and minor() macros in the user interface. If they aren't 90 /* We need the major() and minor() macros in the user interface. If they aren't
84 defined by the system, we'll just define them here. */ 91 defined by the system, we'll just define them here. */
85 #ifndef major 92 #ifndef major
608 void gftp_copy_local_options ( gftp_request * dest, 615 void gftp_copy_local_options ( gftp_request * dest,
609 gftp_request * source ); 616 gftp_request * source );
610 617
611 gftp_request * copy_request ( gftp_request * req ); 618 gftp_request * copy_request ( gftp_request * req );
612 619
613 int ptym_open ( char *pts_name,
614 size_t len );
615
616 int ptys_open ( int fdm,
617 char *pts_name );
618
619 int tty_raw ( int fd );
620
621 GList * gftp_sort_filelist ( GList * filelist, 620 GList * gftp_sort_filelist ( GList * filelist,
622 int column, 621 int column,
623 int asds ); 622 int asds );
624 623
625 mode_t gftp_parse_attribs ( char *attribs ); 624 mode_t gftp_parse_attribs ( char *attribs );
833 ssize_t num_read ); 832 ssize_t num_read );
834 833
835 int gftp_get_transfer_status ( gftp_transfer * tdata, 834 int gftp_get_transfer_status ( gftp_transfer * tdata,
836 ssize_t num_read ); 835 ssize_t num_read );
837 836
838 #endif 837 /* pty.c */
839 838 int open_ptys ( gftp_request * request,
839 int *fdm,
840 int *fds );
841
842 int tty_raw ( int fd );
843
844 #endif
845