ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libptytty/src/ptytty.C
(Generate patch)

Comparing libptytty/src/ptytty.C (file contents):
Revision 1.34 by ayin, Fri Dec 14 09:51:32 2007 UTC vs.
Revision 1.35 by root, Mon May 5 16:51:29 2008 UTC

42# include <sys/ioctl.h> 42# include <sys/ioctl.h>
43#endif 43#endif
44#if defined(HAVE_DEV_PTMX) && defined(HAVE_SYS_STROPTS_H) 44#if defined(HAVE_DEV_PTMX) && defined(HAVE_SYS_STROPTS_H)
45# include <sys/stropts.h> /* for I_PUSH */ 45# include <sys/stropts.h> /* for I_PUSH */
46#endif 46#endif
47#ifdef HAVE_ISASTREAM 47#if defined(HAVE_ISASTREAM) && defined(HAVE_STROPTS_H)
48# include <stropts.h> 48# include <stropts.h>
49#endif 49#endif
50#if defined(HAVE_PTY_H) 50#if defined(HAVE_PTY_H)
51# include <pty.h> 51# include <pty.h>
52#elif defined(HAVE_LIBUTIL_H) 52#elif defined(HAVE_LIBUTIL_H)
248 * documentation is really unclear about whether it is any close () on 248 * documentation is really unclear about whether it is any close () on
249 * the master side or the last close () - i.e. a proper STREAMS dismantling 249 * the master side or the last close () - i.e. a proper STREAMS dismantling
250 * close () - on the master side which causes a hang up to be sent 250 * close () - on the master side which causes a hang up to be sent
251 * through - Geoff Wing 251 * through - Geoff Wing
252 */ 252 */
253# ifdef HAVE_ISASTREAM 253#if defined(HAVE_ISASTREAM) && defined(HAVE_STROPTS_H)
254 if (isastream (fd_tty) == 1) 254 if (isastream (fd_tty) == 1)
255# endif 255# endif
256 { 256 {
257 ioctl (fd_tty, I_PUSH, "ptem"); 257 ioctl (fd_tty, I_PUSH, "ptem");
258 ioctl (fd_tty, I_PUSH, "ldterm"); 258 ioctl (fd_tty, I_PUSH, "ldterm");

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines