Xemu [doxygen]  hyppo 0a42be3a057156924bc1b626a687bd6e27349c45 @ Sat 19 Mar 02:15:11 CET 2022
Macros | Functions | Variables
fileio.c File Reference
#include "xep128.h"
#include "fileio.h"
#include "xemu/z80.h"
#include "cpu.h"
#include "emu_rom_interface.h"
#include "gui.h"
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#include <time.h>
#include <dirent.h>
#include <fcntl.h>
#include <ctype.h>
Include dependency graph for fileio.c:

Go to the source code of this file.

Macros

#define EXOS_USER_SEGMAP_P   (0X3FFFFC + memory)
 
#define HOST_OS_STR   "Host OS "
 
#define FILE_TOO_LARGE   "Too large file"
 
#define FILEIO_MAX_FILE_SIZE   67108864L
 
#define SET_CHANNEL(v)   channel = ((v) - 1) & 0xFF
 

Functions

void fileio_init (const char *dir, const char *subdir)
 
void fileio_func_open_channel_remember (void)
 
void fileio_func_open_or_create_channel (int create)
 
void fileio_func_close_channel (void)
 
void fileio_func_read_block (void)
 
void fileio_func_read_character (void)
 
void fileio_func_write_block (void)
 
void fileio_func_write_character (void)
 
void fileio_func_channel_read_status (void)
 
void fileio_func_set_channel_status (void)
 
void fileio_func_special_function (void)
 
void fileio_func_init (void)
 
void fileio_func_buffer_moved (void)
 
void fileio_func_destroy_channel (void)
 
void fileio_func_not_used_call (void)
 

Variables

char fileio_cwd [PATH_MAX+1]
 

Macro Definition Documentation

◆ EXOS_USER_SEGMAP_P

#define EXOS_USER_SEGMAP_P   (0X3FFFFC + memory)

Definition at line 34 of file fileio.c.

◆ FILE_TOO_LARGE

#define FILE_TOO_LARGE   "Too large file"

Definition at line 36 of file fileio.c.

◆ FILEIO_MAX_FILE_SIZE

#define FILEIO_MAX_FILE_SIZE   67108864L

Definition at line 38 of file fileio.c.

◆ HOST_OS_STR

#define HOST_OS_STR   "Host OS "

Definition at line 35 of file fileio.c.

◆ SET_CHANNEL

#define SET_CHANNEL (   v)    channel = ((v) - 1) & 0xFF

Definition at line 40 of file fileio.c.

Function Documentation

◆ fileio_func_buffer_moved()

void fileio_func_buffer_moved ( void  )

Definition at line 479 of file fileio.c.

◆ fileio_func_channel_read_status()

void fileio_func_channel_read_status ( void  )

Definition at line 416 of file fileio.c.

◆ fileio_func_close_channel()

void fileio_func_close_channel ( void  )

Definition at line 233 of file fileio.c.

◆ fileio_func_destroy_channel()

void fileio_func_destroy_channel ( void  )

Definition at line 486 of file fileio.c.

Here is the call graph for this function:

◆ fileio_func_init()

void fileio_func_init ( void  )

Definition at line 466 of file fileio.c.

◆ fileio_func_not_used_call()

void fileio_func_not_used_call ( void  )

Definition at line 495 of file fileio.c.

◆ fileio_func_open_channel_remember()

void fileio_func_open_channel_remember ( void  )

Definition at line 174 of file fileio.c.

◆ fileio_func_open_or_create_channel()

void fileio_func_open_or_create_channel ( int  create)

Definition at line 181 of file fileio.c.

◆ fileio_func_read_block()

void fileio_func_read_block ( void  )

Definition at line 286 of file fileio.c.

◆ fileio_func_read_character()

void fileio_func_read_character ( void  )

Definition at line 329 of file fileio.c.

◆ fileio_func_set_channel_status()

void fileio_func_set_channel_status ( void  )

Definition at line 423 of file fileio.c.

◆ fileio_func_special_function()

void fileio_func_special_function ( void  )

Definition at line 459 of file fileio.c.

◆ fileio_func_write_block()

void fileio_func_write_block ( void  )

Definition at line 354 of file fileio.c.

◆ fileio_func_write_character()

void fileio_func_write_character ( void  )

Definition at line 392 of file fileio.c.

◆ fileio_init()

void fileio_init ( const char *  dir,
const char *  subdir 
)

Definition at line 53 of file fileio.c.

Variable Documentation

◆ fileio_cwd

char fileio_cwd[PATH_MAX+1]

Definition at line 42 of file fileio.c.