How to check for an end of file without feof()

Hello All,

Is there any way to check for the end of file without using feof().

In fact, I have opened a file using

fildes = open ( "myfile", O_RDONLY );

therefore, I have with me int fildes instead of FILE * fileptr which is
required to check for end of file
using feof (fileptr);

So, my question is again as noted in the first line of this post.

Thanks for any help.