Back to index

glibc  2.9
Functions
tcflow.c File Reference
#include <errno.h>
#include <stddef.h>
#include <termios.h>
#include <unistd.h>
#include <sys/ioctl.h>
#include <sysv_termio.h>

Go to the source code of this file.

Functions

int tcflow (int fd, int action)

Function Documentation

int tcflow ( int  fd,
int  action 
)

Definition at line 29 of file tcflow.c.

{
  switch (action)
    {
    case TCOOFF:
      return __ioctl (fd, _TCXONC, 0);
    case TCOON:
      return __ioctl (fd, _TCXONC, 1);
    case TCIOFF:
      return __ioctl (fd, _TCXONC, 2);
    case TCION:
      return __ioctl (fd, _TCXONC, 3);
    default:
      __set_errno (EINVAL);
      return -1;
    }
}