/* get a line of data from stdin. * returns -1 if eof; else returns number of bytes read (0 if no data) */ int asyncGetLine(char *buf, int buflen);