Back to index

glibc  2.9
Functions
tcflow.c File Reference
#include <errno.h>
#include <termios.h>
#include <stub-tag.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 24 of file tcflow.c.

{
  if (fd < 0)
    {
      __set_errno (EBADF);
      return -1;
    }

  switch (action)
    {
    case TCOOFF:
    case TCOON:
    case TCIOFF:
    case TCION:
      break;

    default:
      __set_errno (EINVAL);
      return -1;
    }

  __set_errno (ENOSYS);
  return -1;
}