NCBI C++ ToolKit
Classes | Macros | Functions
ncbi_file_connector.c File Reference
#include "ncbi_ansi_ext.h"
#include "ncbi_assert.h"
#include <connect/ncbi_file_connector.h>
#include <stdio.h>
#include <stdlib.h>
+ Include dependency graph for ncbi_file_connector.c:

Go to the source code of this file.

Go to the SVN repository for this file.

Classes

struct  SFileConnector
 

Macros

#define fseek   _fseeki64
 

Functions

static const char * s_VT_GetType (CONNECTOR connector)
 
static char * s_VT_Descr (CONNECTOR connector)
 
static EIO_Status s_VT_Open (CONNECTOR connector, const STimeout *timeout)
 
static EIO_Status s_VT_Wait (CONNECTOR connector, EIO_Event event, const STimeout *timeout)
 
static EIO_Status s_VT_Write (CONNECTOR connector, const void *buf, size_t size, size_t *n_written, const STimeout *timeout)
 
static EIO_Status s_VT_Flush (CONNECTOR connector, const STimeout *timeout)
 
static EIO_Status s_VT_Read (CONNECTOR connector, void *buf, size_t size, size_t *n_read, const STimeout *timeout)
 
static EIO_Status s_VT_Status (CONNECTOR connector, EIO_Event dir)
 
static EIO_Status s_VT_Close (CONNECTOR connector, const STimeout *timeout)
 
static void s_Setup (CONNECTOR connector)
 
static void s_Destroy (CONNECTOR connector)
 
CONNECTOR FILE_CreateConnector (const char *ifname, const char *ofname)
 
CONNECTOR FILE_CreateConnectorEx (const char *ifname, const char *ofname, const SFILE_ConnAttr *attr)
 

Macro Definition Documentation

◆ fseek

#define fseek   _fseeki64

Definition at line 43 of file ncbi_file_connector.c.

Function Documentation

◆ s_Destroy()

static void s_Destroy ( CONNECTOR  connector)
static

◆ s_Setup()

static void s_Setup ( CONNECTOR  connector)
static

◆ s_VT_Close()

static EIO_Status s_VT_Close ( CONNECTOR  connector,
const STimeout timeout 
)
static

◆ s_VT_Descr()

static char * s_VT_Descr ( CONNECTOR  connector)
static

◆ s_VT_Flush()

static EIO_Status s_VT_Flush ( CONNECTOR  connector,
const STimeout timeout 
)
static

Definition at line 226 of file ncbi_file_connector.c.

References eIO_Success, eIO_Unknown, SFileConnector::fout, SConnectorTag::handle, and if().

Referenced by s_Setup().

◆ s_VT_GetType()

static const char * s_VT_GetType ( CONNECTOR  connector)
static

Definition at line 100 of file ncbi_file_connector.c.

Referenced by s_Setup().

◆ s_VT_Open()

static EIO_Status s_VT_Open ( CONNECTOR  connector,
const STimeout timeout 
)
static

◆ s_VT_Read()

static EIO_Status s_VT_Read ( CONNECTOR  connector,
void *  buf,
size_t  size,
size_t *  n_read,
const STimeout timeout 
)
static

◆ s_VT_Status()

static EIO_Status s_VT_Status ( CONNECTOR  connector,
EIO_Event  dir 
)
static

◆ s_VT_Wait()

static EIO_Status s_VT_Wait ( CONNECTOR  connector,
EIO_Event  event,
const STimeout timeout 
)
static

Definition at line 193 of file ncbi_file_connector.c.

References eIO_Success.

Referenced by s_Setup().

◆ s_VT_Write()

static EIO_Status s_VT_Write ( CONNECTOR  connector,
const void *  buf,
size_t  size,
size_t *  n_written,
const STimeout timeout 
)
static
Modified on Thu Feb 22 17:12:52 2024 by modify_doxy.py rev. 669887