Xemu [doxygen]  hyppo 0a42be3a057156924bc1b626a687bd6e27349c45 @ Sat 19 Mar 02:15:11 CET 2022
Macros | Functions | Variables
fileio.c File Reference
#include "xemu/emutools.h"
#include "xemu/emutools_gui.h"
#include "enterprise128.h"
#include "fileio.h"
#include "xemu/z80.h"
#include "cpu.h"
#include "emu_rom_interface.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 <errno.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 36 of file fileio.c.

◆ FILE_TOO_LARGE

#define FILE_TOO_LARGE   "Too large file"

Definition at line 38 of file fileio.c.

◆ FILEIO_MAX_FILE_SIZE

#define FILEIO_MAX_FILE_SIZE   67108864L

Definition at line 40 of file fileio.c.

◆ HOST_OS_STR

#define HOST_OS_STR   "Host OS "

Definition at line 37 of file fileio.c.

◆ SET_CHANNEL

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

Definition at line 42 of file fileio.c.

Function Documentation

◆ fileio_func_buffer_moved()

void fileio_func_buffer_moved ( void  )

Definition at line 481 of file fileio.c.

◆ fileio_func_channel_read_status()

void fileio_func_channel_read_status ( void  )

Definition at line 418 of file fileio.c.

◆ fileio_func_close_channel()

void fileio_func_close_channel ( void  )

Definition at line 235 of file fileio.c.

Here is the caller graph for this function:

◆ fileio_func_destroy_channel()

void fileio_func_destroy_channel ( void  )

Definition at line 488 of file fileio.c.

◆ fileio_func_init()

void fileio_func_init ( void  )

Definition at line 468 of file fileio.c.

◆ fileio_func_not_used_call()

void fileio_func_not_used_call ( void  )

Definition at line 497 of file fileio.c.

◆ fileio_func_open_channel_remember()

void fileio_func_open_channel_remember ( void  )

Definition at line 176 of file fileio.c.

◆ fileio_func_open_or_create_channel()

void fileio_func_open_or_create_channel ( int  create)

Definition at line 183 of file fileio.c.

◆ fileio_func_read_block()

void fileio_func_read_block ( void  )

Definition at line 288 of file fileio.c.

◆ fileio_func_read_character()

void fileio_func_read_character ( void  )

Definition at line 331 of file fileio.c.

◆ fileio_func_set_channel_status()

void fileio_func_set_channel_status ( void  )

Definition at line 425 of file fileio.c.

◆ fileio_func_special_function()

void fileio_func_special_function ( void  )

Definition at line 461 of file fileio.c.

◆ fileio_func_write_block()

void fileio_func_write_block ( void  )

Definition at line 356 of file fileio.c.

◆ fileio_func_write_character()

void fileio_func_write_character ( void  )

Definition at line 394 of file fileio.c.

◆ fileio_init()

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

Definition at line 55 of file fileio.c.

Variable Documentation

◆ fileio_cwd

char fileio_cwd[PATH_MAX+1]

Definition at line 44 of file fileio.c.