wvfileuploadpathlib.html
来自「Vxworks API操作系统和驱动程序设计API。压缩的HTML文件」· HTML 代码 · 共 143 行
HTML
143 行
<html><head><!-- /vobs/wpwr/docs/vxworks/ref/wvFileUploadPathLib.html - generated by refgen from wvFileUploadPathLib.c --> <title> wvFileUploadPathLib </title></head><body bgcolor="#FFFFFF"> <hr><a name="top"></a><p align=right><a href="libIndex.htm"><i>VxWorks API Reference : OS Libraries</i></a></p></blockquote><h1>wvFileUploadPathLib</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>wvFileUploadPathLib</strong> - file destination for event data </p></blockquote><h4>ROUTINES</h4><blockquote><p><p><b><a href="./wvFileUploadPathLib.html#fileUploadPathLibInit">fileUploadPathLibInit</a>( )</b> - initialize the <b><a href="./wvFileUploadPathLib.html#top">wvFileUploadPathLib</a></b> library (Windview)<br><b><a href="./wvFileUploadPathLib.html#fileUploadPathCreate">fileUploadPathCreate</a>( )</b> - create a file for depositing event data (Windview)<br><b><a href="./wvFileUploadPathLib.html#fileUploadPathClose">fileUploadPathClose</a>( )</b> - close the event-destination file (WindView)<br><b><a href="./wvFileUploadPathLib.html#fileUploadPathWrite">fileUploadPathWrite</a>( )</b> - write to the event-destination file (WindView)<br><p></blockquote><h4>DESCRIPTION</h4><blockquote><p>This file contains routines that write events to a file rather thanuploading them to the host using a type of socket connection. If the fileindicated is a TSFS file, this routine has the same result as uploading to ahost file using other methods, allowing it to replace evtRecv. The file can becreated anywhere, however, and event data can be kept on the target ifdesired.<p></blockquote><h4>INCLUDE FILES</h4><blockquote><p><p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./wvSockUploadPathLib.html#top">wvSockUploadPathLib</a></b>, <b><a href="./wvTsfsUploadPathLib.html#top">wvTsfsUploadPathLib</a></b><hr><a name="fileUploadPathLibInit"></a><p align=right><a href="rtnIndex.htm"><i>OS Libraries : Routines</i></a></p></blockquote><h1>fileUploadPathLibInit( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>fileUploadPathLibInit( )</strong> - initialize the <b><a href="./wvFileUploadPathLib.html#top">wvFileUploadPathLib</a></b> library (Windview)</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>STATUS fileUploadPathLibInit (void)</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine initializes the library by pulling in the routines in this file for use with WindView. It is called during system configuration from <b>usrWindview.c</b>.<p></blockquote><h4>RETURNS</h4><blockquote><p>OK.</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./wvFileUploadPathLib.html#top">wvFileUploadPathLib</a></b><hr><a name="fileUploadPathCreate"></a><p align=right><a href="rtnIndex.htm"><i>OS Libraries : Routines</i></a></p></blockquote><h1>fileUploadPathCreate( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>fileUploadPathCreate( )</strong> - create a file for depositing event data (Windview)</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>UPLOAD_ID fileUploadPathCreate ( char * fname, /* name of file to create */ int openFlags /* O_CREAT, O_TRUNC */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine opens and initializes a file to receive uploaded events. The <i>openFlags</i> argument is passed on as the flags argument to the actual open call so that the caller can specify things like <b>O_TRUNC</b> and <b>O_CREAT</b>.The file is always opened as <b>O_WRONLY</b>, regardless of the value of <i>openFlags</i>.<p></blockquote><h4>RETURNS</h4><blockquote><p>The <b>UPLOAD_ID</b>, or NULL if the file can not be opened or memory for the ID is not available.<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./wvFileUploadPathLib.html#top">wvFileUploadPathLib</a></b>, <b><a href="./wvFileUploadPathLib.html#fileUploadPathClose">fileUploadPathClose</a>( )</b><hr><a name="fileUploadPathClose"></a><p align=right><a href="rtnIndex.htm"><i>OS Libraries : Routines</i></a></p></blockquote><h1>fileUploadPathClose( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>fileUploadPathClose( )</strong> - close the event-destination file (WindView)</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>void fileUploadPathClose ( UPLOAD_ID pathId /* generic upload-path descriptor */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine closes the file associated with <i>pathId</i> that is servingas a destination for event data.<p></blockquote><h4>RETURNS</h4><blockquote><p>N/A<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./wvFileUploadPathLib.html#top">wvFileUploadPathLib</a></b>, <b><a href="./wvFileUploadPathLib.html#fileUploadPathCreate">fileUploadPathCreate</a>( )</b><hr><a name="fileUploadPathWrite"></a><p align=right><a href="rtnIndex.htm"><i>OS Libraries : Routines</i></a></p></blockquote><h1>fileUploadPathWrite( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>fileUploadPathWrite( )</strong> - write to the event-destination file (WindView)</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>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 */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine writes <i>size</i> bytes of data beginning at <i>pStart</i> to the fileindicated by <i>pathId</i>. <p></blockquote><h4>RETURNS</h4><blockquote><p>The number of bytes written, or ERROR.</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./wvFileUploadPathLib.html#top">wvFileUploadPathLib</a></b></body></html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?