… | |
… | |
376 | ioctl (tty, I_PUSH, "ldterm"); |
376 | ioctl (tty, I_PUSH, "ldterm"); |
377 | ioctl (tty, I_PUSH, "ttcompat"); |
377 | ioctl (tty, I_PUSH, "ttcompat"); |
378 | } |
378 | } |
379 | #endif |
379 | #endif |
380 | |
380 | |
|
|
381 | #if UTMP_SUPPORT |
|
|
382 | # if defined(HAVE_STRUCT_UTMP) && !defined(HAVE_UTMP_PID) |
|
|
383 | int fd_stdin = dup (STDIN_FILENO); |
|
|
384 | dup2 (tty, STDIN_FILENO); |
|
|
385 | |
|
|
386 | utmp_pos = ttyslot (); |
|
|
387 | |
|
|
388 | dup2 (fd_stdin, STDIN_FILENO); |
|
|
389 | close (fd_stdin); |
|
|
390 | # endif |
|
|
391 | #endif |
|
|
392 | |
381 | return true; |
393 | return true; |
382 | } |
394 | } |
383 | |
395 | |