Displaying 6 results from an estimated 6 matches for "wpos".
Did you mean:
pos
2005 May 19
1
problems with truncate() with files > 2Gb under Windows (possibly (PR#7879)
...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, wpos;
#else
#ifdef Win32
off64_t rpos, wpos;
#else
long rpos, wpos;
#endif
#endif
I compiled and tested a version of R devel 2.2.0 with the appropriate
simple change to file_seek() in main/connections.c, and with it, seek()
correctly returned file positions beyond 2Gb. However, I don't...
2005 May 19
0
problems with truncate() with files > 2Gb under Windows (PR#7880)
...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, wpos;
> #else
> #ifdef Win32
> off64_t rpos, wpos;
> #else
> long rpos, wpos;
> #endif
> #endif
>
> I compiled and tested a version of R devel 2.2.0 with the appropriate
> simple change to file_seek() in main/connections.c, and with it, seek()
> correctly returne...
2007 Aug 27
1
fix for broken largefile seek() on 32-bit linux (PR#9883)
...=============
--- src/include/Rconnections.h (revision 42664)
+++ src/include/Rconnections.h (working copy)
@@ -63,7 +63,7 @@
typedef struct fileconn {
FILE *fp;
-#if defined(HAVE_OFF_T) && defined(HAVE_SEEKO)
+#if defined(HAVE_OFF_T) && defined(HAVE_FSEEKO)
off_t rpos, wpos;
#else
#ifdef Win32
Index: src/main/connections.c
===================================================================
--- src/main/connections.c (revision 42664)
+++ src/main/connections.c (working copy)
@@ -446,7 +446,7 @@
/* ------------------- file connections --------------------- */
-#i...
2013 Sep 11
2
[LLVMdev] Why a function pointer field in a LLVM IR struct is replaced by {}*?
...udent at Lehigh University. I
compiled the MUSL C library using Clang 3.3, and dumped the generated LLVM
IR files. I found that the MUSL-defined FILE struct (aliasing __FILE_s)
struct __FILE_s {
unsigned flags;
unsigned char *rpos, *rend;
int (*close)(FILE *);
unsigned char *wend, *wpos;
unsigned char *mustbezero_1;
unsigned char *wbase;
size_t (*read)(FILE *, unsigned char *, size_t);
size_t (*write)(FILE *, const unsigned char *, size_t);
off_t (*seek)(FILE *, off_t, int);
unsigned char *buf;
size_t buf_size;
FILE *prev, *next;
int fd;
int...
2003 Apr 16
0
vignette segfault bt
...Type `q()' to quit R.
> library(tools)
> checkVignettes(dir='/home/paul/dse/src/pac/monitor', workdir = 'cur',
keepfiles=TRUE)
Program received signal SIGILL, Illegal instruction.
0x080786ff in file_fgetc (con=0xbfffc830) at connections.c:289
289 this->wpos = ftell(this->fp);
(gdb) bt
#0 0x080786ff in file_fgetc (con=0xbfffc830) at connections.c:289
#1 0x080a9ce1 in con_getc () at /ext/R/cvs/R-devel/src/main/gram.y:1130
#2 0x080a881b in xxgetc () at /ext/R/cvs/R-devel/src/main/gram.y:287
#3 0x080aa947 in SymbolValue (c=255)
at /ext/R/cvs/R-...
2013 Sep 11
0
[LLVMdev] Why a function pointer field in a LLVM IR struct is replaced by {}*?
...iled the MUSL C library using Clang 3.3, and dumped the generated LLVM
> IR files. I found that the MUSL-defined FILE struct (aliasing __FILE_s)
>
> struct __FILE_s {
> unsigned flags;
> unsigned char *rpos, *rend;
> int (*close)(FILE *);
> unsigned char *wend, *wpos;
> unsigned char *mustbezero_1;
> unsigned char *wbase;
> size_t (*read)(FILE *, unsigned char *, size_t);
> size_t (*write)(FILE *, const unsigned char *, size_t);
> off_t (*seek)(FILE *, off_t, int);
> unsigned char *buf;
> size_t buf_size;
>...