gmx_incons("gmx_fio_open may not be used to open TNG files");
}
/* Open the file */
- fio->fp = ffopen(fn, newmode);
+ fio->fp = gmx_ffopen(fn, newmode);
/* determine the XDR direction */
if (newmode[0] == 'w' || newmode[0] == 'a')
else
{
/* If it is not, open it as a regular file */
- fio->fp = ffopen(fn, newmode);
+ fio->fp = gmx_ffopen(fn, newmode);
}
/* for appending seek to end of file to make sure ftell gives correct position
/* Don't close stdin and stdout! */
if (!fio->bStdio && fio->fp != NULL)
{
- rc = ffclose(fio->fp); /* fclose returns 0 if happy */
+ rc = gmx_ffclose(fio->fp); /* fclose returns 0 if happy */
}
fio->bOpen = FALSE;
gmx_fio_lock(fio);
if (!in_ftpset(fio->iFTP, asize(ftpXDR), ftpXDR) && !fio->bStdio)
{
- rc = ffclose(fio->fp); /* fclose returns 0 if happy */
+ rc = gmx_ffclose(fio->fp); /* fclose returns 0 if happy */
fio->fp = NULL;
}
gmx_fio_unlock(fio);