|
|
DataMuseum.dkPresents historical artifacts from the history of: Regnecentalen RC-900 |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about Regnecentalen RC-900 Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: T U d
Length: 1786 (0x6fa)
Types: TextFile
Notes: UNIX file
Names: »doschan.h«
└─⟦0cfe73749⟧ Bits:30004154/config.imd SW95707I VP/ix MS-DOS emulator Rel. 1.1
└─⟦0cfe73749⟧ UNIX Filesystem
└─⟦this⟧ »vc/new/usr/vpix/src/channels/doschan.h«
/*\r
* MSDOS channel library definitions.\r
*\r
* (This file contains several definitions that must match those\r
* used by the UNIX channel-manager routines. Modify with care!)\r
*/\r
\r
\r
/*\r
* miscellaneous typedefs and defines\r
*/\r
\r
typedef short CHANNEL_ID; /* channel ID type */\r
typedef void (far *FPFV)(); /* far pointer to void function */\r
typedef char far *FPTR; /* far pointer to buffer */\r
\r
\r
/*\r
* return code definitions\r
*/\r
\r
#define ERR_NONE 0 /* no errors */\r
#define ERR_NOTFOUND 1 /* error - channel ID not found */\r
#define ERR_NOSLOT 2 /* error - no channel available */\r
#define ERR_BUSY 3 /* error - channel is busy */\r
\r
\r
/*\r
* global error-flag\r
*/\r
\r
extern int far ch_errno;\r
\r
\r
/*\r
* channel-open structure\r
*/\r
\r
#define CH_NAMELEN 12 /* Size of channel name */\r
\r
typedef struct ch_open_s\r
{\r
FPTR dosbuff; /* address of DOS->UNIX buffer */\r
long dbufflen; /* length of DOS->UNIX buffer */\r
FPTR unixbuff; /* address of UNIX->DOS buffer */\r
long ubufflen; /* length of UNIX->DOS buffer */\r
FPFV funcptr; /* interrupt handler */\r
char chname[CH_NAMELEN]; /* channel name string */\r
}CH_OPEN;\r
\r
\r
/*\r
* function prototypes\r
*\r
* (note that the channel-library functions were compiled LARGE model,\r
* so they must be declared "far" when called from a small-model program)\r
*/\r
\r
extern short far dos_ch_open(CH_OPEN far *ch_open_parms);\r
extern int far dos_ch_send(short id);\r
extern int far dos_ch_close(short id);\r
\r
\r