search for: tcdrain

Displaying 5 results from an estimated 5 matches for "tcdrain".

Did you mean: drain
2005 Feb 01
3
X100P Clone
...usleep(5000); if (!len) { for(i = 0; cmd[i];) { if (fwrite(cmd + i,1,1,p->f) != 1) { if (errno == EWOULDBLOCK) continue; return -1; } i++; usleep(5000); } tcdrain(fileno(p->f)); fprintf(p->f,"\r\n"); return 0; } else { if (fwrite(cmd, 1, len, p->f) < len) return -1; return 0; } } ############################################ in /usr/src/asterisk/channels/chan_modem_bestdata.c I heave s...
2013 Nov 15
0
Wine release 1.6.1
...a flag in the wait structure. server: Implement waiting on keyed events. ntdll: Implement the RunOnce functions. kernel32: Implement the InitOnce functions. ntdll: Actually return the mount point in get_device_mount_point on Mac OS. ntdll: Add a configure check for the tcdrain function. gdi32: Add more helpers for converting font sizes to logical coordinates. gdi32: Add a check for overflow in DIB dimensions. server: Trigger a repaint on layered windows the first time the attributes are set. msxml3: Don't use libxslt without libxml. wmc:...
2000 Jan 27
1
Long awaited round 1 of NeXT patches.
...tcsendbreak(fd, len) + int fd, len; +{ + struct timeval sleepytime; + + sleepytime.tv_sec = 0; + sleepytime.tv_usec = 400000; + if (ioctl(fd, TIOCSBRK, 0) == -1) + return (-1); + (void)select(0, 0, 0, 0, &sleepytime); + if (ioctl(fd, TIOCCBRK, 0) == -1) + return (-1); + return (0); +} + +int +tcdrain(fd) + int fd; +{ + + return (ioctl(fd, TIOCDRAIN, 0)); +} + +int +tcflush(fd, which) + int fd, which; +{ + int com; + + switch (which) { + case TCIFLUSH: + com = FREAD; + break; + case TCOFLUSH: + com = FWRITE; + break; + case TCIOFLUSH: + com = FREAD | FWRITE; + break; + default: + errno =...
2013 Sep 13
0
Wine release 1.7.2
...hows error ---------------------------------------------------------------- Changes since 1.7.1: Alexandre Julliard (6): ntdll: Add stubs for the SRW lock functions. ntdll: Actually return the mount point in get_device_mount_point on Mac OS. ntdll: Add a configure check for the tcdrain function. gdi32: Add more helpers for converting font sizes to logical coordinates. gdi32: Add a check for overflow in DIB dimensions. taskmgr: Use definitions from winternl.h instead of duplicating them. Alistair Leslie-Hughes (1): msdasc.idl: Correctly register DataLinks....
2013 Aug 30
0
Wine release 1.7.1
...s if rectangle width and height are positive. gdiplus: Add error checking to GdipClonePen. gdiplus: Copy custom dashes in GdipClonePen. riched20: Use \ulnone instead of \ul0 for no underline. msvcrt: _[w]access_s returns an error code. Wolfgang Walter (1): ntdll: Call tcdrain for serial handles from NtFlushBuffersFile. ?lvaro Nieto (1): msvrct: Fix strncpy to fill the buffer. -- Alexandre Julliard julliard at winehq.org