91cc7d5bc9595de6c846259d6a1c54b826a19b6f
[deliverable/binutils-gdb.git] / gdb / nlm / fake_aio.c
1 #include <nwtypes.h>
2 #include <errno.h>
3 #include <stdio.h>
4 #include <aio.h>
5
6 #define CONST const
7
8 /* This file provides stubs and equivalent interfaces for all functions that
9 the debugger stub needs, but aren't yet implemented. */
10
11 int
12 AIOReadData (int portHandle, char *buffer, LONG length, LONG *numberBytesRead)
13 {
14 return AIO_SUCCESS;
15 }
16
17 int
18 AIOWriteData (int portHandle, char *buffer, LONG length,
19 LONG *numberBytesWritten)
20
21 {
22 return AIO_SUCCESS;
23 }
24
25 int
26 AIOAcquirePort (int *hardwareType, int *boardNumber, int *portNumber,
27 int *portHandle)
28 {
29 return AIO_SUCCESS;
30 }
31
32 int
33 AIOConfigurePort (int portHandle, BYTE bitRate, BYTE dataBits, BYTE stopBits,
34 BYTE parityMode, BYTE flowCtrlMode)
35 {
36 return AIO_SUCCESS;
37 }
38
39 int
40 AIOGetPortConfiguration (int portHandle, AIOPORTCONFIG *pPortConfig,
41 AIODVRCONFIG *pDvrConfig)
42 {
43 fprintf (stderr, "AIOGetPortConfiguration stubbed out\n");
44 exit (1);
45 }
46
47 int
48 AIOReleasePort (int portHandle)
49 {
50 return AIO_SUCCESS;
51 }
52
53 int
54 AIOSetExternalControl (int portHandle, int requestType, int requestValue)
55 {
56 return AIO_SUCCESS;
57 }
58
59 int
60 AIOGetExternalStatus (int portHandle, LONG *extStatus, LONG *chgdExtStatus)
61 {
62 fprintf (stderr, "AIOGetExternalStatus stubbed out\n");
63 exit (1);
64 }
65
66 void
67 StopBell ()
68 {
69 }
70
71 int
72 Breakpoint (int __arg)
73 {
74 fprintf (stderr, "Breakpoint() stubbed out\n");
75 exit (1);
76 }
This page took 0.0312 seconds and 3 git commands to generate.