IDZEBRA  2.1.2
Data Structures | Functions | Variables
rstemp.c File Reference
#include <assert.h>
#include <fcntl.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <sys/types.h>
#include <idzebra/util.h>
#include <rset.h>

Go to the source code of this file.

Data Structures

struct  rset_private
 
struct  rfd_private
 

Functions

static RSFD r_open (RSET ct, int flag)
 
static void r_close (RSFD rfd)
 
static void r_delete (RSET ct)
 
static int r_read (RSFD rfd, void *buf, TERMID *term)
 
static int r_write (RSFD rfd, const void *buf)
 
static void r_pos (RSFD rfd, double *current, double *total)
 
static void r_flush (RSFD rfd, int mk)
 
static void r_reread (RSFD rfd)
 
RSET rset_create_temp (NMEM nmem, struct rset_key_control *kcontrol, int scope, const char *temp_path, TERMID term)
 

Variables

static const struct rset_control control
 
static int log_level = 0
 
static int log_level_initialized = 0
 

Function Documentation

static void r_close ( RSFD  rfd)
static
static void r_delete ( RSET  ct)
static

Definition at line 113 of file rstemp.c.

References rset_private::fname, log_level, rset_private::pos_end, and rset::priv.

static void r_flush ( RSFD  rfd,
int  mk 
)
static
static RSFD r_open ( RSET  ct,
int  flag 
)
static
static void r_pos ( RSFD  rfd,
double *  current,
double *  total 
)
static

Definition at line 333 of file rstemp.c.

References rfd_private::cur, rsfd::priv, rset::priv, and rsfd::rset.

static int r_read ( RSFD  rfd,
void *  buf,
TERMID term 
)
static
static void r_reread ( RSFD  rfd)
static

Definition at line 247 of file rstemp.c.

References rfd_private::pos_cur, rsfd::priv, rset::priv, rsfd::rset, and zebra_exit().

Referenced by r_open(), r_read(), and r_write().

static int r_write ( RSFD  rfd,
const void *  buf 
)
static
RSET rset_create_temp ( NMEM  nmem,
struct rset_key_control kcontrol,
int  scope,
const char *  temp_path,
TERMID  term 
)

Variable Documentation

const struct rset_control control
static
Initial value:
=
{
"temp",
0,
}
static RSFD r_open(RSET ct, int flag)
Definition: rstemp.c:125
static void r_delete(RSET ct)
Definition: rstemp.c:113
static int r_write(RSFD rfd, const void *buf)
Definition: rstemp.c:309
static void r_close(RSFD rfd)
Definition: rstemp.c:228
static void r_pos(RSFD rfd, double *current, double *total)
Definition: rstemp.c:333
static int r_read(RSFD rfd, void *buf, TERMID *term)
Definition: rstemp.c:284
void rset_get_one_term(RSET ct, TERMID *terms, int maxterms, int *curterm)
is a getterms function for those that don&#39;t have any
Definition: rset.c:291

Definition at line 48 of file rstemp.c.

int log_level = 0
static

Definition at line 81 of file rstemp.c.

Referenced by r_delete(), r_flush(), and rset_create_temp().

int log_level_initialized = 0
static

Definition at line 82 of file rstemp.c.

Referenced by rset_create_temp().