Retro68/gcc/newlib/libc/sys/linux/tcdrain.c
Wolfgang Thaller ec13cc9ce7 fix newlib
2018-12-29 09:59:36 +01: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)