>You cannot do this, the usual idiom is that if read returns less >than the app expected this is treated as EOF. in my library the low level
a write that returns less than was written is trouble, but end-of-file is a read returning zero. the count returned by read can be less than the amount requested without marking end-of-file (eg, reads on a pipe or network connection). that's why readn exists.
