mirror of
https://github.com/open-simh/simtools.git
synced 2026-02-02 14:52:29 +00:00
file systems. It supports reading and writing as well as a number
of other operations, such as octal dump, file system initialize,
and file system check ("clean").
This was originally maintained as a Subversion repository at
svn://akdesign.dyndns.org/flx/branches/V2.6.
as suggested by Timothe Litt on the SIMH mailing list.
43 lines
983 B
C
43 lines
983 B
C
/* absread and abswrite services for use with Borland C implementation
|
|
*
|
|
* Paul Koning 95.01.17 Dummy module (no absio in TC++ for Windows)
|
|
*/
|
|
|
|
#include <string.h>
|
|
#include <stdio.h>
|
|
|
|
#include "flx.h"
|
|
#include "absio.h"
|
|
|
|
/* this routine is called to scan a supplied container file/device
|
|
* name. If the name refers to a real disk, then absflag is set
|
|
* and rsize is set to the device size. Otherwise, no action is taken.
|
|
*/
|
|
|
|
void absname (const char *rname)
|
|
{
|
|
if (rname[strlen(rname) - 1] == ':') { /* device name alone */
|
|
printf ("Absolute I/O not supported\n");
|
|
}
|
|
}
|
|
|
|
int absopen (const char *rname, const char *mode)
|
|
{
|
|
return (1); /* should never get here... */
|
|
}
|
|
|
|
void absseek (long block) { } /* nothing to do */
|
|
|
|
void absclose () { } /* nothing to do */
|
|
|
|
long absread (long sec, long count, void *buffer)
|
|
{
|
|
return (0); /* should never get here... */
|
|
}
|
|
|
|
long abswrite (long sec, long count, void *buffer)
|
|
{
|
|
return (0); /* should never get here... */
|
|
}
|
|
|