[syslinux] isohybrid: seek error - 6: Invalid argument
Thomas Schmitt
scdbackup at gmx.net
Mon Sep 13 02:29:00 PDT 2010
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.
Have a nice day :)
Thomas
More information about the Syslinux
mailing list