N = EOF( X )
X is a number, [MININT,MAXINT]
If device number X is at the end-of-file, then -1, otherwise 0.