>Is there any way that I can find out how many characters are available and >waiting to be read from the tty input queue? I'm running SysV rel 2.1.2. Without actually reading those characters? No, not unless your vendor has added it to S5R2.1.2 (if your vendor is AT&T, the answer is almost certainly "no").