Retro68/gcc/newlib/libc/sys/linux/tcdrain.c
2012-03-27 01:51:53 +02:00

14 lines
228 B
C

/* tcdrain - wait for transmission of output */
#include <termios.h>
#include <sys/ioctl.h>
#include <machine/weakalias.h>
int
__libc_tcdrain (int fd)
{
return ioctl (fd, TCSBRK, 1);
}
weak_alias (__libc_tcdrain, tcdrain)