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

4.104.114.84.95
Last change on this file since d3d2afdf was d3d2afdf, checked in by Joel Sherrill <joel.sherrill@…>, on Oct 25, 2005 at 11:17:35 AM

2005-10-25 Joel Sherrill <joel@…>

  • sapi/include/confdefs.h, telnetd/pty.c, telnetd/pty.h: Attempt to fix MAX_PTYS and provide a real configuration entry. This should make telnetd some suitable for inclusion in cpukit.
  • Property mode set to 100644
File size: 1.4 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
23char * get_pty(int socket);
24
25rtems_device_driver pty_initialize(
26  rtems_device_major_number  major,
27  rtems_device_minor_number  minor,
28  void                      *arg);
29rtems_device_driver pty_open(
30  rtems_device_major_number major,
31  rtems_device_minor_number minor,
32  void                    * arg);
33rtems_device_driver pty_close(
34  rtems_device_major_number major,
35  rtems_device_minor_number minor,
36  void                    * arg);
37rtems_device_driver pty_read(
38  rtems_device_major_number major,
39  rtems_device_minor_number minor,
40  void                    * arg);
41rtems_device_driver pty_write(
42  rtems_device_major_number major,
43  rtems_device_minor_number minor,
44  void                    * arg);
45rtems_device_driver pty_control(
46  rtems_device_major_number major,
47  rtems_device_minor_number minor,
48  void                    * arg);
49
50
51#define PTY_DRIVER_TABLE_ENTRY \
52       { pty_initialize , pty_open , pty_close , \
53         pty_read , pty_write , pty_control }
54
55#ifdef __cplusplus
56}
57#endif 
58
59#endif
Note: See TracBrowser for help on using the repository browser.