[syslinux] isohybrid: seek error - 6: Invalid argument
H. Peter Anvin
hpa at zytor.com
Tue Sep 14 11:49:15 PDT 2010
On 09/13/2010 02:29 AM, Thomas Schmitt wrote:
> Hi,
>
>> -D_FILE_OFFSET_BITS=64
>>> if (fseek(fp, isostat.st_size, SEEK_SET))
>
> fseek(3) expects type long for the address parameter.
> int fseek(FILE *stream, long offset, int whence);
>
> The _FILE_OFFSET_BITS=64 macro has an effect on type off_t.
>
> So you will either have to use fseeko(3) (and eventually ftello(3))
>
> int fseeko(FILE *stream, off_t offset, int whence);
>
> or you have to define macro
> _LARGEFILE_SOURCE
> which makes fseek/ftell aliases of fseeko/ftello.
>
Ah yes... there is that braindamage.
-hpa
More information about the Syslinux
mailing list