Re: lseek: Value too large for defined data type



On Tue, 24 Jul 2007 10:31:05 +0100 Tim Southerwood <ts@xxxxxxxxxx> wrote:

| The first line is not correct, though it doesn't break due to "long long"
| being good enough in this case, but you really need to follow the header
| definitions faithfully otherwise random bad things will happen in the
| future. lseek returns an off_t, so that's what you should use.

Like when we add "long long long long" to be 128 bits and change file
offset bits to be 128 :-)

--
|---------------------------------------/----------------------------------|
| Phil Howard KA9WGN (ka9wgn.ham.org) / Do not send to the address below |
| first name lower case at ipal.net / spamtrap-2007-07-26-0801@xxxxxxxx |
|------------------------------------/-------------------------------------|
.



Relevant Pages

  • Re: DisAssembler... Where to start...
    ... Where can I get info on executables... ... At offset 3C (last field of MZ header), there is a pointer to the ... read in the segment data that follows the directory table. ...
    (alt.lang.asm)
  • [RESEND][PATCH] lseek: remove i_mutex
    ... Following patch removes i_mutex from generic_file_llseek, ... Currently there is i_mutex contention not only around lseek, ... unsigned long offset, filesize; ...
    (Linux-Kernel)
  • Re: On the verge of suicide:tar & gunzip problems
    ... corruption in the middle of a gzip-compressed archive. ... "tar" (which started skipping 512-byte blocks at the first bad header) ... each offset. ...
    (Debian-User)
  • Re: panic: vm_fault: fault on nofualt entry, addr: 81423000
    ... offset 1 ... thus the header is ending up in page 0x8142300 if I read that correctly. ... the reverse of the map function, but maybe theres something simply going ... the page holding the XSDT. ...
    (freebsd-stable)
  • Re: bitmap
    ... > bytes(the bitmap header and everything that is in a bmp ... Bitmap headers from the data stream to get the offset to the data and format of colour values used by the file. ... You can now grab a pixel from the data stream by working out it's offset from the start of the data, however in most cases the DIB ...
    (microsoft.public.vb.winapi.graphics)