Hi. I think it should be mentioned, that feof indicates eof only if the previous read had not red any bytes at all. And if it red, lets say, 1 byte from 10 that was requested, it does not indicate feof. It was not obvious for me. -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html