Ulrich Weigand wrote:

> You are mixing two things up.  Your program uses the new LFS
> interface, which works on *all* files, even regular files,
> but requires a recent (or patched) kernel and a recent glibc
> to work.
> 
> What I wanted to demonstrate is that on *device nodes*,
> it is possible to access beyond 2Gb even on very old kernels,
> without using any of the LFS interface, just by using the
> old llseek syscall.

Oh I see.  Have to keep this hack in mind for older
versions.  The new program with the my_llseek() function
did work, while the previous on with llseek() didn't, probably
because of lack of header file.

Your new prog compiles with no warnings.  FWIW, the old one
compiles on one of my devel systems (Mdk7.1) with:

  gcc -Wall llseek.c
  llseek.c: In function `main':
  llseek.c:26: warning: implicit declaration of function `llseek'
  /tmp/cc5hxKQD.o: In function `main':
  /tmp/cc5hxKQD.o(.text+0x8a): the `llseek' function may be dangerous; use
`lseek64' instead.

Wonder why the linker reports llseek is dangerous?

-Kevin

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Kevin Lawton                        [EMAIL PROTECTED]
MandrakeSoft, Inc.                  Plex86 developer
http://www.linux-mandrake.com/      http://www.plex86.org/

Reply via email to