From http://www.opendylan.org/pipermail/chatter/2003-September/004668.html

Describe cfmakeraw here.Update of /var/lib/cvs/src/common/command-processor In directory cantor:/tmp/cvs-serv6148

Added Files:

  • Tag: GD_2_5
    • cfmakeraw.c cfmakeraw.h

Log Message: Add these files for Solaris' sake.

--- NEW FILE: cfmakeraw.c --- #ifdef GD_PLATFORM_SOLARIS

#include "cfmakeraw.h"

void cfmakeraw (struct termios *termios_p) {

  • termios_p->c_iflag &= ~(IGNBRK|BRKINT|PARMRK|ISTRIP

    • |INLCR|IGNCR|ICRNL|IXON);

    termios_p->c_oflag &= ~OPOST; termios_p->c_lflag &= ~(ECHO|ECHONL|ICANON|ISIG|IEXTEN); termios_p->c_cflag &= ~(CSIZE|PARENB); termios_p->c_cflag |= CS8;

}

#endif

--- NEW FILE: cfmakeraw.h --- #ifndef CFMAKERAW #define CFMAKERAW

#include <termios.h>

extern void cfmakeraw (struct termios *);

#endif // CFMAKERAW