Xemu [doxygen]  hyppo 0a42be3a057156924bc1b626a687bd6e27349c45 @ Sat 19 Mar 02:15:11 CET 2022
Macros | Functions | Variables
cpmfs.c File Reference
#include "xemu/emutools.h"
#include "cpmfs.h"
#include "hardware.h"
#include "bdos.h"
#include <dirent.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include "console.h"
Include dependency graph for cpmfs.c:

Go to the source code of this file.

Macros

#define MAX_OPEN_FILES   32
 

Functions

void cpmfs_init (void)
 
void cpmfs_close_all_files (void)
 
void cpmfs_uninit (void)
 
int cpmfs_mount_drive (int drive, const char *dir_path, int dirbase_part_only)
 
char * cpmfs_search_file_get_result_path (void)
 
int cpmfs_search_file (void)
 
int cpmfs_search_file_setup (int drive, const Uint8 *input, int options)
 

Variables

int current_drive
 

Macro Definition Documentation

◆ MAX_OPEN_FILES

#define MAX_OPEN_FILES   32

Definition at line 32 of file cpmfs.c.

Function Documentation

◆ cpmfs_close_all_files()

void cpmfs_close_all_files ( void  )

Definition at line 82 of file cpmfs.c.

Here is the caller graph for this function:

◆ cpmfs_init()

void cpmfs_init ( void  )

Definition at line 67 of file cpmfs.c.

◆ cpmfs_mount_drive()

int cpmfs_mount_drive ( int  drive,
const char *  dir_path,
int  dirbase_part_only 
)

Definition at line 101 of file cpmfs.c.

◆ cpmfs_search_file()

int cpmfs_search_file ( void  )

Definition at line 219 of file cpmfs.c.

Here is the caller graph for this function:

◆ cpmfs_search_file_get_result_path()

char* cpmfs_search_file_get_result_path ( void  )

Definition at line 154 of file cpmfs.c.

◆ cpmfs_search_file_setup()

int cpmfs_search_file_setup ( int  drive,
const Uint8 input,
int  options 
)

Definition at line 285 of file cpmfs.c.

Here is the caller graph for this function:

◆ cpmfs_uninit()

void cpmfs_uninit ( void  )

Definition at line 91 of file cpmfs.c.

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ checksum

Uint8 checksum[0x10]

Definition at line 52 of file cpmfs.c.

◆ current_drive

int current_drive

Definition at line 58 of file cpmfs.c.

◆ dir

DIR* dir

Definition at line 46 of file cpmfs.c.

◆ dir_path

char dir_path[PATH_MAX]

Definition at line 47 of file cpmfs.c.

◆ drive

int drive

Definition at line 42 of file cpmfs.c.

◆ fd

int fd

Definition at line 51 of file cpmfs.c.

◆ found

char found[8+3+1]

Definition at line 36 of file cpmfs.c.

◆ host_name

char host_name[13]

Definition at line 37 of file cpmfs.c.

◆ host_path

char host_path[PATH_MAX]

Definition at line 38 of file cpmfs.c.

◆ last_fcb_addr

Uint16 last_fcb_addr

Definition at line 54 of file cpmfs.c.

◆ options

int options

Definition at line 41 of file cpmfs.c.

◆ pattern

char pattern[8+3+1]

Definition at line 35 of file cpmfs.c.

◆ result_is_valid

int result_is_valid

Definition at line 39 of file cpmfs.c.

◆ ro

int ro

Definition at line 48 of file cpmfs.c.

◆ sequence

int sequence

Definition at line 55 of file cpmfs.c.

◆ st

struct stat st

Definition at line 43 of file cpmfs.c.

◆ stop_search

int stop_search

Definition at line 40 of file cpmfs.c.