Displaying 5 results from an estimated 5 matches for "rfileconn".
Did you mean:
fileconn
2007 Aug 27
1
fix for broken largefile seek() on 32-bit linux (PR#9883)
...(working copy)
@@ -446,7 +446,7 @@
/* ------------------- file connections --------------------- */
-#if defined(HAVE_OFF_T) && defined(HAVE_SEEKO)
+#if defined(HAVE_OFF_T) && defined(HAVE_FSEEKO)
#define f_seek fseeko
#define f_tell ftello
#else
@@ -570,7 +570,7 @@
{
Rfileconn this = con->private;
FILE *fp = this->fp;
-#if defined(HAVE_OFF_T) && defined(HAVE_SEEKO)
+#if defined(HAVE_OFF_T) && defined(HAVE_FSEEKO)
off_t pos;
#else
#ifdef Win32
2016 Nov 13
1
Memory leak with tons of closed connections
...e */
#ifdef HAVE_FDOPEN
- fp = fdopen(0, con->mode);
+ fp = fdopen(dup(0), con->mode);
#else
warning(_("cannot open file '%s': %s"), name,
"fdopen is not supported on this platform");
@@ -633,8 +633,7 @@
static void file_close(Rconnection con)
{
Rfileconn this = con->private;
- if(con->isopen && strcmp(con->description, "stdin"))
- con->status = fclose(this->fp);
+ con->status = fclose(this->fp);
con->isopen = FALSE;
#ifdef Win32
if(this->anon_file) unlink(this->name);
On Fri, Nov 11,...
2005 May 28
1
(PR#7899) seek(con, 0, "end", rw="r") does not always work
.... I tried this, and with the modification the test case
> I gave produced correct 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);...
2005 May 27
0
seek(con, 0, "end", rw="r") does not always work correctly (PR#7901)
...before the
call to f_tell(). I tried this, and with the modification the test case
I gave produced correct 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 positi...
2016 Nov 11
2
Memory leak with tons of closed connections
On Fri, Nov 11, 2016 at 12:08 PM, Martin Maechler
<maechler at stat.math.ethz.ch> wrote:
>>>>>> Gergely Dar?czi <daroczig at rapporter.net>
>>>>>> on Thu, 10 Nov 2016 16:48:12 +0100 writes:
>
> > Dear All,
> > I'm developing an R application running inside of a Java daemon on
> > multiple threads, and