🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Thomas M. Breuel Mon, 11 Sep 1989 01:14
(none)
#572
Author: Thomas M. Breuel
Date: Mon, 11 Sep 1989 01:14
31 lines
940 bytes
The following code from nojobs.c won't compile under HPUX
(and probably not under SysV either):

/* Fill the contents of shell_tty_info with the current tty info. */
get_tty_state ()
{
  int tty = open ("/dev/tty", O_RDONLY);
  if (tty != -1)
    {
      ioctl (tty, TIOCGETP, &shell_tty_info);
      close (tty);
    }
}

/* Make the current tty use the state in shell_tty_info. */
set_tty_state ()
{
  int tty = open ("/dev/tty", O_RDONLY);
  if (tty != -1)
    {
      ioctl (tty, TIOCSETN, &shell_tty_info);
      close (tty);
    }
}






^C
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads