Thanks Grant I was attempting to use file stats but figured that was probably not the right way to do it. Termios looked a little daunting. In my application I only need a rough count of the remaining characters in the queue so that I can keep it topped up during periodic checking. Colin