Logo Search packages:      
Sourcecode: cbmlink version File versions  Download package

disk.c File Reference


Detailed Description

Extension for accessing a disk drive on the remote host
Author:
Marko Mäkelä (msmakela@nic.funet.fi)

Definition in file disk.c.

#include "comm.h"
#include "info.h"
#include "ext.h"
#include <stdio.h>
#include <string.h>
#include "disk.h"
#include "disk-o.h"

Go to the source code of this file.

Functions

static unsigned checksum (const char *buf, unsigned len)
static int command_remote (const struct comm *comm, char *buf, char command, char unit, unsigned track, unsigned sector)
int disk_cread (const struct comm *comm, FILE *file, unsigned start, unsigned end, char *buf)
int disk_install (const struct comm *comm, const struct hostinfo *hostinfo, unsigned device)
int disk_mread (const struct comm *comm, FILE *file, unsigned start, unsigned end, char *buf)
int disk_mwrite (const struct comm *comm, FILE *file, unsigned start, char *buf)
int disk_read (const struct comm *comm, unsigned unit, unsigned interleave, unsigned track, unsigned track_end, FILE *file, char *buf)
int disk_remove (const struct comm *comm)
int disk_write (const struct comm *comm, unsigned unit, unsigned interleave, unsigned track, unsigned track_end, FILE *file, char *buf)
static int read_remote (const struct comm *comm, unsigned file, char *buf, unsigned *len)
static int read_sector (const struct comm *comm, char drive, unsigned track, unsigned sector, char *buf)
static int read_sector_file (FILE *f, unsigned sector, unsigned blocks, char *buf)
static int write_remote (const struct comm *comm, unsigned file, char *buf, unsigned len)

Variables

static const char backspaces [] = "\b\b\b\b\b\b\b\b\b"


Generated by  Doxygen 1.6.0   Back to index