Return to io.c CVS log | Up to [local] / src / usr.bin / talk |
version 1.15, 2004/03/02 21:04:42 | version 1.16, 2005/04/13 02:33:08 | ||
---|---|---|---|
|
|
||
* curses's output routines would screw up | * curses's output routines would screw up | ||
*/ | */ | ||
ioctl(0, FIONREAD, &nb); | ioctl(0, FIONREAD, &nb); | ||
nb = read(0, buf, nb); | nb = read(STDIN_FILENO, buf, nb); | ||
display(&my_win, buf, nb); | display(&my_win, buf, nb); | ||
/* might lose data here because sockt is non-blocking */ | /* might lose data here because sockt is non-blocking */ | ||
write(sockt, buf, nb); | write(sockt, buf, nb); |