On Mon, 2006-04-24 at 16:53 +0200, Thomas Petazzoni wrote: > Hi, > > Le Mon, 24 Apr 2006 18:37:37 +0530, > "pradeep singh" <2500.pradeep@xxxxxxxxx> a écrit : > > > llseek method has its second argument as offset which is of type > > unsigned long. And the last argument decides whence i.e from where to > > start the offset, right? Now i have a doubt. > > At http://lxr.linux.no/source/fs/read_write.c#L113, you can see that > the offset is not an unsigned long, but an loff_t, which is defined to > be an unsigned long long at > http://lxr.linux.no/source/include/asm-i386/posix_types.h#L38. > > Sincerly, > > Thomas >From the llseek (2) man page: int _llseek(unsigned int fd, unsigned long offset_high, unsigned long offset_low, loff_t *result, unsigned int whence); It is in fact unsigned long. I don't understand the question though - you have _two_ unsigned long arguments (offset_high, offset_low) that you can use. This gives you 64 byte addressing. Did you not notice the second argument, or am I missing something? Avishay Traeger http://www.fsl.cs.sunysb.edu/~avishay/ -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/