summaryrefslogtreecommitdiffstats
path: root/mdk-stage1/dietlibc/lib/tcsendbreak.c
blob: b026340cf497ad5d07aa540f61e2aa438ad4f566 (plain)
1
2
3
4
5
6
7
8
9
10
11
#include "dietfeatures.h"
#include <errno.h>
#include <termios.h>
#include <sys/ioctl.h>

int tcsendbreak (int fd,int duration)
{
  if (duration <= 0) return (ioctl (fd,TCSBRKP,0));
  errno = EINVAL;
  return (-1);
}