ARPDAS_QNX6 1.0
Classes | Defines | Functions
mlf.h File Reference
#include <stdio.h>
#include <limits.h>
#include <fcntl.h>
Include dependency graph for mlf.h:
This graph shows which files directly or indirectly include this file:

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_tmlf_init (int n_levels, int n_files, int writing, const char *fbase, const char *fsuffix, const char *config)
mlf_ntup_tmlf_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 Documentation

#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().


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:

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:

 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines