ARPDAS_QNX6 1.0
Functions
mlf.c File Reference
#include <stdlib.h>
#include <string.h>
#include <limits.h>
#include <ctype.h>
#include <sys/stat.h>
#include "mlf.h"
#include "nortlib.h"
Include dependency graph for mlf.c:

Go to the source code of this file.

Functions

static char * mlf_strtok (char *buf, char *delset, char *delp)
mlf_ntup_tmlf_convert_fname (mlf_def_t *mlf, const char *fbase, const char *fname)
void mlf_free_mlfn (mlf_ntup_t *mlfn)
static void mlf_set_ixs (mlf_def_t *mlf, int *ixs)
void mlf_set_index (mlf_def_t *mlf, unsigned long index)
void mlf_set_ntup (mlf_def_t *mlf, mlf_ntup_t *mlfn)
mlf_def_tmlf_init (int n_levels, int n_files, int writing, const char *fbase, const char *fsuffix, const char *config)
int mlf_compare (mlf_def_t *mlf, mlf_ntup_t *mlfn)
static next_file (mlf_def_t *mlf, int level)
FILE * mlf_next_file (mlf_def_t *mlf)
int mlf_next_fd (mlf_def_t *mlf)
int mlf_next_dir (mlf_def_t *mlf)

Function Documentation

int mlf_compare ( mlf_def_t mlf,
mlf_ntup_t mlfn 
)
mlf_ntup_t* mlf_convert_fname ( mlf_def_t mlf,
const char *  fbase,
const char *  fname 
)

Definition at line 44 of file mlf.c.

References mlf_ntup_t::base, mlf_ntup_t::mlf, mlf_strtok(), mlf_def_t::n_levels, new_memory(), nl_error, nl_strdup, mlf_ntup_t::ntup, and mlf_ntup_t::suffix.

Referenced by mlf_init().

Here is the call graph for this function:

Here is the caller graph for this function:

void mlf_free_mlfn ( mlf_ntup_t mlfn)

Definition at line 93 of file mlf.c.

References mlf_ntup_t::ntup.

Referenced by mlf_init().

Here is the caller graph for this function:

mlf_def_t* mlf_init ( int  n_levels,
int  n_files,
int  writing,
const char *  fbase,
const char *  fsuffix,
const char *  config 
)
int mlf_next_dir ( mlf_def_t mlf)

Definition at line 403 of file mlf.c.

References mlf_def_t::flags, mlf_def_t::fpath, MLF_WRITING, mlf_def_t::n_levels, next_file(), nl_error, and nl_response.

Here is the call graph for this function:

int mlf_next_fd ( mlf_def_t mlf)

Definition at line 330 of file mlf.c.

References mlf_def_t::flags, mlf_def_t::fpath, MLF_WRITING, mlf_def_t::n_levels, next_file(), nl_error, and nl_response.

Here is the call graph for this function:

FILE* mlf_next_file ( mlf_def_t mlf)

Definition at line 320 of file mlf.c.

References mlf_def_t::flags, mlf_def_t::fpath, MLF_WRITING, mlf_def_t::n_levels, next_file(), nl_error, and nl_response.

Here is the call graph for this function:

void mlf_set_index ( mlf_def_t mlf,
unsigned long  index 
)

Definition at line 143 of file mlf.c.

References mlf_def_t::flags, MLF_INC_FIRST, MLF_MAX_LEVELS, mlf_set_ixs(), mlf_def_t::n_files, and mlf_def_t::n_levels.

Here is the call graph for this function:

static void mlf_set_ixs ( mlf_def_t mlf,
int *  ixs 
) [static]
void mlf_set_ntup ( mlf_def_t mlf,
mlf_ntup_t mlfn 
)

Definition at line 187 of file mlf.c.

References mlf_ntup_t::base, mlf_def_t::flvl, mlf_def_t::fpath, mlf_def_t::fsuffix, mlf_ntup_t::mlf, mlf_set_ixs(), nl_error, mlf_ntup_t::ntup, mlf_elt_t::s, and mlf_ntup_t::suffix.

Referenced by mlf_init().

Here is the call graph for this function:

Here is the caller graph for this function:

static char* mlf_strtok ( char *  buf,
char *  delset,
char *  delp 
) [static]

Definition at line 24 of file mlf.c.

Referenced by mlf_convert_fname().

Here is the caller graph for this function:

static next_file ( mlf_def_t mlf,
int  level 
) [static]
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines