Displaying 5 results from an estimated 5 matches for "__use_largefile".
2005 May 19
1
problems with truncate() with files > 2Gb under Windows (possibly (PR#7879)
...to a position beyond 2Gb,
the return value from seek() appears to be a 32-bit signed integer,
resulting in strange (incorrect) return values from seek(), though
otherwise not affecting correct operation.
Inspecting the code, I wonder whether the lines
#if defined(HAVE_OFF_T) && defined(__USE_LARGEFILE)
off_t pos = f_tell(fp);
#else
long pos = f_tell(fp);
#endif
in the definition of file_seek() in main/connections.c should be more
along the lines of the code defining struct fileconn in
include/Rconnections.h:
#if defined(HAVE_OFF_T) && defined(__USE_LARGEFILE)
off_t rpos,...
2005 May 19
0
problems with truncate() with files > 2Gb under Windows (PR#7880)
__USE_LARGEFILE is a standard Unix way to allow > 2Gb files on 32-bit
OSes by using f{seek,tell}o Take a look at the definition of f_tell:
#if defined(HAVE_OFF_T) && defined(__USE_LARGEFILE)
#define f_seek fseeko
#define f_tell ftello
#else
#ifdef Win32
#define f_seek fseeko64
#define f_tell ftello64...
2005 May 28
1
(PR#7899) seek(con, 0, "end", rw="r") does not always work
...beginning of my modified
> file_seek() function (in main/connections.c) looks:
>
> static double file_seek(Rconnection con, double where, int origin, int rw)
> {
> Rfileconn this = con->private;
> FILE *fp = this->fp;
> #if defined(HAVE_OFF_T) && defined(__USE_LARGEFILE)
> off_t pos;
> #else
> #ifdef Win32
> off64_t pos;
> #else
> long pos;
> #endif
> #endif
> int whence = SEEK_SET;
> fflush(fp);
> pos = f_tell(fp);
>
> /* make sure both positions are set */
>
Works for your example, but I f...
2005 May 27
0
seek(con, 0, "end", rw="r") does not always work correctly (PR#7901)
...rect output. Here's how the beginning of my modified
file_seek() function (in main/connections.c) looks:
static double file_seek(Rconnection con, double where, int origin, int rw)
{
Rfileconn this = con->private;
FILE *fp = this->fp;
#if defined(HAVE_OFF_T) && defined(__USE_LARGEFILE)
off_t pos;
#else
#ifdef Win32
off64_t pos;
#else
long pos;
#endif
#endif
int whence = SEEK_SET;
fflush(fp);
pos = f_tell(fp);
/* make sure both positions are set */
> Note that ?seek currently tells us "The value returned by seek(where=NA)
> appear...
2007 Sep 04
1
CPAN error
....
Constant subroutine __USE_XOPEN_EXTENDED undefined at
/usr/lib/perl5/5.8.8/i386-linux-thread-multi/features.ph line 13, <STDIN>
line 33.
Constant subroutine __USE_UNIX98 undefined at
/usr/lib/perl5/5.8.8/i386-linux-thread-multi/features.ph line 14, <STDIN>
line 33.
Constant subroutine __USE_LARGEFILE undefined at
/usr/lib/perl5/5.8.8/i386-linux-thread-multi/features.ph line 16, <STDIN>
line 33.
Constant subroutine __USE_LARGEFILE64 undefined at
/usr/lib/perl5/5.8.8/i386-linux-thread-multi/features.ph line 17, <STDIN>
line 33.
Constant subroutine __USE_FILE_OFFSET64 undefined at
/usr...