Mercurial > gftp.yaz
diff lib/pty.c @ 179:8d933999bba6
2003-6-14 Brian Masney <masneyb@gftp.org>
* lib/cache.c (gftp_delete_cache_entry) - fix for restoring newlines
* lib/gftp.h lib/protocols.c - added EOF flag for gftp_get_line()
* lib/gftp.h lib/pty.c - added get_pty_impl() function for each PTY
type
* src/text/gftp-text.c - after removing files, clear the cache for
that directory
author | masneyb |
---|---|
date | Sat, 14 Jun 2003 14:14:01 +0000 |
parents | 8beb7bfca92b |
children | 82ebd1b05345 |
line wrap: on
line diff
--- a/lib/pty.c Wed Jun 11 22:02:26 2003 +0000 +++ b/lib/pty.c Sat Jun 14 14:14:01 2003 +0000 @@ -21,8 +21,14 @@ #include "gftp.h" +#ifdef __sgi -#ifdef __sgi +char * +get_pty_impl (void) +{ + return ("sgi"); +} + int open_ptys (gftp_request * request, int *fdm, int *fds) @@ -43,6 +49,13 @@ #elif HAVE_GRANTPT +char * +get_pty_impl (void) +{ + return ("unix98"); +} + + int open_ptys (gftp_request * request, int *fdm, int *fds) { @@ -75,16 +88,25 @@ return (GFTP_ERETRYABLE); } +#ifdef SYSV /* I intentionally ignore these errors */ ioctl (*fds, I_PUSH, "ptem"); ioctl (*fds, I_PUSH, "ldterm"); ioctl (*fds, I_PUSH, "ttcompat"); +#endif return (0); } #elif HAVE_OPENPTY +char * +get_pty_impl (void) +{ + return ("openpty"); +} + + int open_ptys (gftp_request * request, int *fdm, int *fds) { @@ -102,6 +124,13 @@ /* Fall back to *BSD... */ +char * +get_pty_impl (void) +{ + return ("bsd"); +} + + int open_ptys (gftp_request * request, int *fdm, int *fds) {