ARPDAS_QNX6 1.0
|
#include <stdio.h>
#include <limits.h>
#include <fcntl.h>
Go to the source code of this file.
Classes | |
struct | mlf_elt_t |
struct | mlf_def_t |
struct | mlf_ntup_t |
Defines | |
#define | MLF_INC_FIRST 1 |
#define | MLF_WRITING 2 |
#define | MLF_INITIALIZE 4 |
#define | MLF_MAX_LEVELS 10 |
Functions | |
FILE * | mlf_next_file (mlf_def_t *mlf) |
int | mlf_next_fd (mlf_def_t *mlf) |
int | mlf_next_dir (mlf_def_t *mlf) |
mlf_def_t * | mlf_init (int n_levels, int n_files, int writing, const char *fbase, const char *fsuffix, const char *config) |
mlf_ntup_t * | mlf_convert_fname (mlf_def_t *mlf, const char *fbase, const char *fname) |
void | mlf_free_mlfn (mlf_ntup_t *mlfn) |
void | mlf_set_ntup (mlf_def_t *mlf, mlf_ntup_t *mlfn) |
int | mlf_compare (mlf_def_t *mlf, mlf_ntup_t *mlfn) |
void | mlf_set_index (mlf_def_t *mlf, unsigned long index) |
#define MLF_INC_FIRST 1 |
Definition at line 21 of file mlf.h.
Referenced by mlf_compare(), mlf_set_index(), mlf_set_ixs(), and next_file().
#define MLF_INITIALIZE 4 |
Definition at line 23 of file mlf.h.
Referenced by mlf_init(), and mlf_set_ixs().
#define MLF_MAX_LEVELS 10 |
Definition at line 24 of file mlf.h.
Referenced by mlf_init(), and mlf_set_index().
#define MLF_WRITING 2 |
Definition at line 22 of file mlf.h.
Referenced by mlf_init(), mlf_next_dir(), mlf_next_fd(), mlf_next_file(), mlf_set_ixs(), and next_file().
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.
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().