VxWorks Reference Manual : Libraries
wvFileUploadPathLib - file destination for event data
fileUploadPathLibInit( ) - initialize the wvFileUploadPathLib library (Windview)
fileUploadPathCreate( ) - create a file for depositing event data (Windview)
fileUploadPathClose( ) - close the event-destination file (WindView)
fileUploadPathWrite( ) - write to the event-destination file (WindView)
This file contains routines that write events to a file rather than uploading them to the host using a type of socket connection. If the file indicated is a TSFS file, this routine has the same result as uploading to a host file using other methods, allowing it to replace evtRecv. The file can be created anywhere, however, and event data can be kept on the target if desired.
wvFileUploadPathLib, wvSockUploadPathLib, wvTsfsUploadPathLib
fileUploadPathLibInit( ) - initialize the wvFileUploadPathLib library (Windview)
STATUS fileUploadPathLibInit (void)
This routine initializes the library by pulling in the routines in this file for use with WindView. It is called during system configuration from usrWindview.c.
OK.
fileUploadPathCreate( ) - create a file for depositing event data (Windview)
UPLOAD_ID fileUploadPathCreate ( char * fname, /* name of file to create */ int openFlags /* O_CREAT, O_TRUNC */ )
This routine opens and initializes a file to receive uploaded events. The openFlags argument is passed on as the flags argument to the actual open call so that the caller can specify things like O_TRUNC and O_CREAT. The file is always opened as O_WRONLY, regardless of the value of openFlags.
The UPLOAD_ID, or NULL if the file can not be opened or memory for the ID is not available.
wvFileUploadPathLib, fileUploadPathClose( )
fileUploadPathClose( ) - close the event-destination file (WindView)
void fileUploadPathClose ( UPLOAD_ID pathId /* generic upload-path descriptor */ )
This routine closes the file associated with pathId that is serving as a destination for event data.
N/A
wvFileUploadPathLib, fileUploadPathCreate( )
fileUploadPathWrite( ) - write to the event-destination file (WindView)
int fileUploadPathWrite ( UPLOAD_ID pathId, /* generic upload-path descriptor */ char * pStart, /* address of data to write */ size_t size /* number of bytes of data at pStart */ )
This routine writes size bytes of data beginning at pStart to the file indicated by pathId.
The number of bytes written, or ERROR.