#define _FDEV_EOF (-2) 

Return code for an end-of-file condition during device read.

To be used in the get function of fdevopen().