source: rtems/c/src/lib/libbsp/unix/posix/console/console.c @ 49c8f45

4.104.115
Last change on this file since 49c8f45 was f05b2ac, checked in by Ralf Corsepius <ralf.corsepius@…>, on 04/21/04 at 16:01:48

Remove duplicate white lines.

  • Property mode set to 100644
File size: 1.7 KB
Line 
1/*
2 *  Console IO Support Routines
3 *
4 *  These provide UNIX-like read and write calls for the C library.
5 *
6 *  NOTE:  For the most part, this is just a space holder.
7 *
8 *  COPYRIGHT (c) 1994 by Division Incorporated
9 *
10 *  The license and distribution terms for this file may be
11 *  found in the file LICENSE in this distribution or at
12 *  http://www.rtems.com/license/LICENSE.
13 *
14 *  $Id$
15 */
16
17#include <bsp.h>
18
19#include <unistd.h>
20#include <errno.h>
21
22rtems_device_driver
23console_initialize(rtems_device_major_number major,
24                   rtems_device_minor_number minor,
25                   void                    * arg
26)
27{
28  return 0;
29}
30
31/*
32 *  Open entry point
33 */
34
35rtems_device_driver console_open(
36  rtems_device_major_number major,
37  rtems_device_minor_number minor,
38  void                    * arg
39)
40{
41  return RTEMS_SUCCESSFUL;
42}
43
44/*
45 *  Close entry point
46 */
47
48rtems_device_driver console_close(
49  rtems_device_major_number major,
50  rtems_device_minor_number minor,
51  void                    * arg
52)
53{
54  return RTEMS_SUCCESSFUL;
55}
56
57/*
58 * read bytes from the serial port. We only have stdin.
59 */
60
61rtems_device_driver console_read(
62  rtems_device_major_number major,
63  rtems_device_minor_number minor,
64  void                    * arg
65)
66{
67  return RTEMS_UNSATISFIED;
68}
69
70/*
71 * write bytes to the serial port. Stdout and stderr are the same.
72 */
73
74rtems_device_driver console_write(
75  rtems_device_major_number major,
76  rtems_device_minor_number minor,
77  void                    * arg
78)
79{
80  return -1;
81}
82
83/*
84 *  IO Control entry point
85 */
86
87rtems_device_driver console_control(
88  rtems_device_major_number major,
89  rtems_device_minor_number minor,
90  void                    * arg
91)
92{
93  return RTEMS_SUCCESSFUL;
94}
Note: See TracBrowser for help on using the repository browser.