DataMuseum.dk

Presents historical artifacts from the history of:

CR80 Hard and Floppy Disks

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about CR80 Hard and Floppy Disks

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download

⟦a34bf46b3⟧ TextFile

    Length: 4098 (0x1002)
    Types: TextFile
    Names: »IOPREFIX.H«, »ioprefix.h«

Derivation

└─⟦8c095a7f3⟧ Bits:30005798 CR80 Disc Pack ( Vol ILS systemdisk XAMOS TOS 10:01 hard boot #43c 19-7-87/JFJ )
    └─ ⟦this⟧ »PREFIXES.D!MXAMOS.D!C.D!IOPREFIX.H« 
    └─ ⟦this⟧ »PREFIXES.D!MXAMOS.D!C.D!ioprefix.h« 
└─⟦c2e810e96⟧ Bits:30005799 CR80 Disc Pack ( XAMOS 841129 ILS TOS 10-01 System Disk Tilhører ILS/MSG hard boot boot entry #43c )
    └─ ⟦this⟧ »PREFIXES.D!MXAMOS.D!C.D!IOPREFIX.H« 
    └─ ⟦this⟧ »PREFIXES.D!MXAMOS.D!C.D!ioprefix.h« 

TextFile

/*%NOLIST*/
/*----------------------------------------------------------------------
"
"  MODULE NAME:           C - ioprefix.h
"  MODULE ID NBR:         CSS427
"  MODULE VERSION:        01
"  MODULE RELEASE:        04
"  MODULE TYPE:           HEADER
"  AUTHOR/DATE:           THP/860116
"  SOURCE LANGUAGE:       C
"  COMPILE COMPUTER:      CR80
"  TARGET COMPUTER:       CR80MX
"  OPERATING SYSTEM:      (M)X-AMOS
"
-----------------------------------------------------------------------

  CHANGE RECORD:

  VERSION    AUTHOR/DATE    DESCRIPTION OF CHANGE
  -------    -----------    ---------------------
  0102       THP/850701     bytecount renamed to byte_count, and
                            name renamed to fpname in ELEM.
  0103       THP/850805     The types STREAM, PARAMTYPE, VOLUME_NAME,
                            and the constants TSPACE, TDIGIT, TLETTER,
                            and TOTHER included.
  0104       THP/860125     Minor changes in the definition of BLE.
                            The types IO_EVENT, AMOS_EVENT, and
                            MULTI_EVENT included.
---------------------------------------------------------------------*/

#define IO_OK      0

#define DIRECTORY 10
#define CONTIGUOS 12
#define RANDOM    14

typedef TEXT PACKED_NAME[8];
typedef PACKED_NAME VOLUME_NAME;
typedef PACKED_NAME NAMELISTTYPE[10];

typedef struct
        {
          VOLUME_NAME vol;
          COUNT org;
          LONG  allocs;
          COUNT areas;
        }FATT;

#define F_ORGANIZATION 0
#define F_SIZE         1
#define F_ALLOCSIZE    2
#define F_BODYADDR     3
#define F_AREASIZE     4
#define F_THRESHOLD    5
#define F_LINKS        6
#define F_INBFD        7
#define F_BFDNBR       8
#define F_USERS        9

typedef struct
        {
          LONG firstbyte;
          LONG bytecount;
          LONG transfbytes;
        }FADD;

#define BLOCAL      2
#define BEXTERNAL   4

typedef struct ble
       {
         COUNT xl;
         struct ble *link;
         union
         {
           struct
           {
             BYTES bufaddr;
             COUNT bufsize_in_bytes;
           }case_local;
           struct
           {
             BYTES memory;
           }case_external;
         }case_xl;
       }BLE;

#define TERROR        0
#define TINTEGER      1
#define TIDENTIFIER   2
#define TSPECIAL      3
#define TLONG_INTEGER 4

#define TSPACE  0
#define TDIGIT  1
#define TLETTER 2
#define TOTHER  3


typedef struct
        {
          TINY  delim;
          COUNT byte_count;
          COUNT elemtype;
          union
          {
            struct
             {
               int i;
             }case_tinteger;
            struct
             {
               LONG l;
             }case_tlonginteger;
            struct
             {
               TEXT fpname[8];
             }case_tidentifier;
          }case_elemtype;
        }ELEM;

typedef struct
        {
          struct
          {
            TEXT name[3];
            COUNT nident;
          }pname;
          TEXT gname[2];
        }FILE_SYSTEM_NAME;

typedef struct
        {
         FILE_SYSTEM_NAME fsn;      /* Current file system name */
         VOLUME_NAME      vol;      /* Current volume name      */
         FILE             pfile;    /* Current parameter file   */
         FILE             dfile;    /* Current directory file   */
         FILE             ifile;    /* Current input file       */
         FILE             ofile;    /* Current output file      */
         FILE             efile;    /* Current error file       */
        }PARAMTYPE;

typedef struct
        {
          LONG userid;
          ULONG rights;
        }FACC;

typedef int STREAM;

typedef struct
        {
          COUNT evttype;
          COUNT evtid;
          COUNT msg[5];
        }AMOS_EVENT;

typedef struct
        {
          COUNT opref;
          COUNT user_op;
          FILE  fd_1;
          FILE  fd_2;
          LONG  f_inf;
        }IO_EVENT;

typedef union
        {
          IO_EVENT   io_event;
          AMOS_EVENT amos_event;
        }MULTI_EVENT;
/*%LIST*/ «a5»