source: buchla-68k/libcio/fstubs.c@ e225e77

Last change on this file since e225e77 was e225e77, checked in by Thomas Lopatic <thomas@…>, 7 years ago

Added missing includes and declarations.

  • Property mode set to 100644
File size: 1.2 KB
Line 
1/*
2 =============================================================================
3 fstubs.c -- stubs for testing with
4 Version 13 -- 1987-11-13 -- D.N. Lynx Crowe
5 =============================================================================
6*/
7
8#include "biosdefs.h"
9#include "errno.h"
10#include "stdio.h"
11#include "io.h"
12#include "stddefs.h"
13
14extern void xtrap15(void);
15
16/*
17 =============================================================================
18 readbuf() -- Reads an edited string from 'dev' into 'buf'
19 in {MS|GEM}DOS buffer format.
20
21 Buffer format:
22
23 buf[0] = buffer length, buf[1] = number of bytes read,
24 buf[2]..buf[buf[0]-1 = data area
25
26 Editing characters:
27
28 CR, LF End the line
29 BS, DEL Erase last character
30 ^U,^X Cancel (erase) entire line
31 ^R Retype line
32 ^C Terminate the process
33 ^Z End of file / end of line
34
35 Returns:
36 Value stddef Meaning
37 ----- ------- --------------------------------------------
38 1 Terminate process (^C entered)
39 0 SUCCESS Line available in buffer (CR or LF entered)
40 -1 EOF End of file (^Z entered)
41 =============================================================================
42*/
43
44int16_t readbuf(int16_t dev, int8_t *buf)
45{
46 xtrap15();
47 return(1);
48}
Note: See TracBrowser for help on using the repository browser.