Revision 9e59149c74ae44ae46b0e3d286dd88bc48b6210a authored by Fons Rademakers on 01 July 2006, 11:39:37 UTC, committed by Fons Rademakers on 01 July 2006, 11:39:37 UTC
TTreeFilePrefetch -> TTreeCache. git-svn-id: http://root.cern.ch/svn/root/trunk@15648 27541ba8-7e3a-0410-8455-c3a389f83636
1 parent ae96a43
cfput.c
/* @(#)root/main:$Name$:$Id$ */
/* Author: Valery Fine(fine@vxcern.cern.ch) 02/02/90 */
/*
* $Id: cfput.c,v 1.4 1997/10/23 16:33:19 mclareni Exp $
*
* $Log: cfput.c,v $
* Revision 1.4 1997/10/23 16:33:19 mclareni
* NT mods
*
* Revision 1.3 1997/02/04 17:35:12 mclareni
* Merge Winnt and 97a versions
*
* Revision 1.2 1997/01/15 16:25:33 cernlib
* fix from F.Hemmer to return rfio return code
*
* Revision 1.1.1.1.2.1 1997/01/21 11:30:11 mclareni
* All mods for Winnt 96a on winnt branch
*
* Revision 1.1.1.1 1996/02/15 17:49:36 mclareni
* Kernlib
*
*/
/*> ROUTINE CFPUT
CERN PROGLIB# Z310 CFPUT .VERSION KERNFOR 4.29 910718
ORIG. 12/01/91, JZ
CALL CFPUT (LUNDES, MEDIUM, NWREC, MBUF, ISTAT)
write to the file :
LUNDES file descriptor
MEDIUM = 0,1,2,3 : primary disk/tape, secondary disk/tape
NWREC record size, number of words to be written
MBUF vector to be written
*ISTAT status, =zero if success
*/
#include <errno.h>
#define NBYTPW 4
#define CERNLIB_CFPUT_CHARACTER
void __stdcall CFPUT(lundes, medium, nwrec, mbuf,
# ifdef CERNLIB_CFPUT_CHARACTER
lmbuf,
# endif
stat)
# ifdef CERNLIB_CFPUT_CHARACTER
int lmbuf;
# endif
char *mbuf;
int *lundes, *medium, *nwrec, *stat;
{
int fildes;
int nbdn, nbdo;
*stat = 0;
if (*nwrec <= 0) return;
/* write the file */
fildes = *lundes;
nbdo = *nwrec * NBYTPW;
nbdn = write (fildes, mbuf, nbdo);
if (nbdn < 0) goto trouble;
return;
trouble: *stat = errno;
perror (" error in CFPUT");
return;
}
/*> END <----------------------------------------------------------*/
#ifdef CERNLIB_TCGEN_CFPUT
#undef CERNLIB_TCGEN_CFPUT
#endif
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...