mainloop.h File Reference

#include <sys/param.h>
#include "vfat.h"
#include "mtoolsDirent.h"

Include dependency graph for mainloop.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  MainParam_t

Defines

#define MISSED_ONE   2
#define GOT_ONE   4
#define NO_CWD   8
#define ERROR_ONE   16
#define STOP_NOW   32

Functions

void init_mp (MainParam_t *MainParam)
int main_loop (MainParam_t *MainParam, char **argv, int argc)
int target_lookup (MainParam_t *mp, const char *arg)
Stream_topen_root_dir (char *drivename, int flags)
const char * mpGetBasename (MainParam_t *mp)
void mpPrintFilename (FILE *file, MainParam_t *mp)
const char * mpPickTargetName (MainParam_t *mp)
char * mpBuildUnixFilename (MainParam_t *mp)
int isSpecial (const char *name)


Define Documentation

#define ERROR_ONE   16
 

Definition at line 75 of file mainloop.h.

Referenced by _dos_loop(), common_dos_loop(), createDirCallback(), del_entry(), del_file(), dos_copydir(), dos_target_lookup(), dos_write(), handle_leaf(), list_file(), list_non_recurs_directory(), main_loop(), mcd_callback(), recurs_dos_loop(), rename_directory(), rename_file(), rename_oldsyntax(), renameit(), unix_copydir(), unix_dir_loop(), unix_doctorfat(), unix_loop(), unix_showfat(), and unix_write().

#define GOT_ONE   4
 

Definition at line 72 of file mainloop.h.

Referenced by _unix_loop(), attrib_file(), concise_view_attrib(), createDirCallback(), del_entry(), dos_doctorfat(), dos_showfat(), dos_write(), file_mdu(), list_file(), list_non_recurs_directory(), main_loop(), mcd_callback(), rename_file(), rename_oldsyntax(), replay_attrib(), unix_copydir(), unix_target_lookup(), unix_write(), and view_attrib().

#define MISSED_ONE   2
 

Definition at line 71 of file mainloop.h.

Referenced by dos_target_lookup(), and main_loop().

#define NO_CWD   8
 

Definition at line 73 of file mainloop.h.

Referenced by common_dos_loop(), and recurs_dos_loop().

#define STOP_NOW   32
 

Definition at line 77 of file mainloop.h.

Referenced by handle_leaf(), mcd_callback(), and recurs_dos_loop().


Function Documentation

void init_mp MainParam_t MainParam  ) 
 

Definition at line 495 of file mainloop.c.

References dispatchToFile(), fix_mcwd(), mp, and NULL.

Referenced by mbadblocks(), mcd(), mcopy(), mdel(), mdir(), mdoctorfat(), mdu(), mlabel(), mmd(), mmove(), and mshowfat().

int isSpecial const char *  name  ) 
 

Definition at line 80 of file mainloop.c.

References strcmp.

Referenced by _mwrite_one(), checkForDot(), list_file(), and unix_dir_loop().

int main_loop MainParam_t MainParam,
char **  argv,
int  argc
 

Definition at line 443 of file mainloop.c.

References _basename(), dos_loop(), ERROR_ONE, fprintf(), GOT_ONE, got_signal, i, MISSED_ONE, mp, progname, skip_drive(), stderr, strpbrk(), and unix_loop().

Referenced by mcd(), mcopy(), mdir(), mdoctorfat(), mdu(), mmd(), and mshowfat().

char* mpBuildUnixFilename MainParam_t mp  ) 
 

Definition at line 535 of file mainloop.c.

References buf, malloc(), mp, mpPickTargetName(), S_ISDIR, stat, strcat(), strcpy(), strlen(), and target.

Referenced by unix_copydir(), and unix_write().

const char* mpGetBasename MainParam_t mp  ) 
 

Definition at line 509 of file mainloop.c.

References _basename(), and mp.

Referenced by mpPickTargetName().

const char* mpPickTargetName MainParam_t mp  ) 
 

Definition at line 525 of file mainloop.c.

References mp, and mpGetBasename().

Referenced by dos_copydir(), dos_write(), mpBuildUnixFilename(), rename_file(), and unix_copydir().

void mpPrintFilename FILE file,
MainParam_t mp
 

Definition at line 517 of file mainloop.c.

References fp, fprintf(), fprintPwd(), and mp.

Referenced by unix_write().

Stream_t* open_root_dir char *  drivename,
int  flags
 

Definition at line 42 of file streamcache.c.

References fss, getDrive(), i, init_streamcache(), k, NULL, and strcmp.

Referenced by common_dos_loop(), mbadblocks(), and mlabel().

int target_lookup MainParam_t mp,
const char *  arg
 

Definition at line 435 of file mainloop.c.

References dos_target_lookup(), mp, NO_UNIX, skip_drive(), and unix_target_lookup().

Referenced by mcopy().


Generated on Fri Apr 14 23:04:06 2006 for minix by  doxygen 1.4.6