Can you please tell me where the off_t tell(int fd) function is defined in Mac OS X? It’s not in fcntl.h and not in unistd.h, where it is defined in UNIX… I can’t use ftell() because the code I’m porting works with file descriptors.
I’m using GCC v4.2.1
You should be able to use
lseekinstead, which offers the same functionality: