ARPDAS_QNX6 1.0
|
#include <stdlib.h>
#include <string.h>
#include <limits.h>
#include <ctype.h>
#include <sys/stat.h>
#include "mlf.h"
#include "nortlib.h"
Go to the source code of this file.
Functions | |
static char * | mlf_strtok (char *buf, char *delset, char *delp) |
mlf_ntup_t * | mlf_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_t * | mlf_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) |
int mlf_compare | ( | mlf_def_t * | mlf, |
mlf_ntup_t * | mlfn | ||
) |
Definition at line 286 of file mlf.c.
References mlf_def_t::flags, mlf_def_t::flvl, mlf_elt_t::index, MLF_INC_FIRST, mlf_def_t::n_levels, and mlf_ntup_t::ntup.
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().
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().
mlf_def_t* mlf_init | ( | int | n_levels, |
int | n_files, | ||
int | writing, | ||
const char * | fbase, | ||
const char * | fsuffix, | ||
const char * | config | ||
) |
Definition at line 199 of file mlf.c.
References mlf_def_t::flags, mlf_def_t::flvl, mlf_def_t::fpath, mlf_def_t::fsuffix, mlf_convert_fname(), mlf_free_mlfn(), MLF_INITIALIZE, MLF_MAX_LEVELS, mlf_set_ntup(), MLF_WRITING, mlf_def_t::n_files, mlf_def_t::n_levels, new_memory(), nl_error, nl_strdup, and mlf_elt_t::s.
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.
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.
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.
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.
static void mlf_set_ixs | ( | mlf_def_t * | mlf, |
int * | ixs | ||
) | [static] |
Definition at line 102 of file mlf.c.
References mlf_def_t::flags, mlf_def_t::flvl, mlf_def_t::fpath, mlf_elt_t::index, mlf_def_t::index, MLF_INC_FIRST, MLF_INITIALIZE, MLF_WRITING, mlf_def_t::n_files, mlf_def_t::n_levels, nl_error, and mlf_elt_t::s.
Referenced by mlf_set_index(), and mlf_set_ntup().
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().
static char* mlf_strtok | ( | char * | buf, |
char * | delset, | ||
char * | delp | ||
) | [static] |
Definition at line 24 of file mlf.c.
Referenced by mlf_convert_fname().
static next_file | ( | mlf_def_t * | mlf, |
int | level | ||
) | [static] |
Definition at line 295 of file mlf.c.
References mlf_def_t::flags, mlf_def_t::flvl, mlf_def_t::fpath, mlf_def_t::fsuffix, mlf_elt_t::index, mlf_def_t::index, MLF_INC_FIRST, MLF_WRITING, mlf_def_t::n_files, mlf_def_t::n_levels, nl_error, and mlf_elt_t::s.
Referenced by mlf_next_dir(), mlf_next_fd(), and mlf_next_file().