… | |
… | |
377 | |
377 | |
378 | #if defined(HAVE_ISASTREAM) && defined(HAVE_STROPTS_H) |
378 | #if defined(HAVE_ISASTREAM) && defined(HAVE_STROPTS_H) |
379 | if (isastream (tty) == 1) |
379 | if (isastream (tty) == 1) |
380 | # endif |
380 | # endif |
381 | { |
381 | { |
|
|
382 | if (!ioctl (tty, I_FIND, "ptem")) |
382 | ioctl (tty, PT_I_PUSH, "ptem"); |
383 | ioctl (tty, PT_I_PUSH, "ptem"); |
|
|
384 | |
|
|
385 | if (!ioctl (tty, I_FIND, "ldterm")) |
383 | ioctl (tty, PT_I_PUSH, "ldterm"); |
386 | ioctl (tty, PT_I_PUSH, "ldterm"); |
|
|
387 | |
|
|
388 | if (!ioctl (tty, I_FIND, "ttcompat")) |
384 | ioctl (tty, PT_I_PUSH, "ttcompat"); |
389 | ioctl (tty, PT_I_PUSH, "ttcompat"); |
385 | } |
390 | } |
386 | #endif |
391 | #endif |
387 | |
392 | |
388 | #if UTMP_SUPPORT |
393 | #if UTMP_SUPPORT |
389 | # if defined(HAVE_STRUCT_UTMP) && !defined(HAVE_UTMP_PID) |
394 | # if defined(HAVE_STRUCT_UTMP) && !defined(HAVE_UTMP_PID) |