source: rtems/cpukit/telnetd/pty.h @ f26145b

4.104.114.84.95
Last change on this file since f26145b was 73b5bd5d, checked in by Ralf Corsepius <ralf.corsepius@…>, on 04/15/04 at 13:33:58

Remove stray white spaces.

  • Property mode set to 100644
File size: 1.5 KB
Line 
1/*
2 * /dev/ptyXX  (A first version for pseudo-terminals)
3 *
4 *  Author: Fernando RUIZ CASAS (fernando.ruiz@ctv.es)
5 *  May 2001
6 *
7 *  This program is distributed in the hope that it will be useful,
8 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
9 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10 *
11 *  $Id$
12 */
13
14#ifndef __PTY_H
15#define __PTY_H
16
17#ifdef __cplusplus
18extern "C" {
19#endif 
20
21#include <rtems.h>     
22
23#ifndef MAX_PTYS       
24#define MAX_PTYS        16
25#endif
26
27char * get_pty(int socket);
28
29rtems_device_driver pty_initialize(
30  rtems_device_major_number  major,
31  rtems_device_minor_number  minor,
32  void                      *arg);
33rtems_device_driver pty_open(
34  rtems_device_major_number major,
35  rtems_device_minor_number minor,
36  void                    * arg);
37rtems_device_driver pty_close(
38  rtems_device_major_number major,
39  rtems_device_minor_number minor,
40  void                    * arg);
41rtems_device_driver pty_read(
42  rtems_device_major_number major,
43  rtems_device_minor_number minor,
44  void                    * arg);
45rtems_device_driver pty_write(
46  rtems_device_major_number major,
47  rtems_device_minor_number minor,
48  void                    * arg);
49rtems_device_driver pty_control(
50  rtems_device_major_number major,
51  rtems_device_minor_number minor,
52  void                    * arg);
53
54
55#define PTY_DRIVER_TABLE_ENTRY \
56       { pty_initialize , pty_open , pty_close , \
57         pty_read , pty_write , pty_control }
58
59#ifdef __cplusplus
60}
61#endif 
62
63#endif
Note: See TracBrowser for help on using the repository browser.