source: rtems/c/src/libnetworking/rtems_telnetd/pty.h @ d0d73ec

4.104.114.84.95
Last change on this file since d0d73ec was bd520203, checked in by Joel Sherrill <joel.sherrill@…>, on Aug 9, 2001 at 10:06:51 PM

2001-08-09 Fernando-Ruiz Casas <correo@…>

  • Makefile.am, configure.in, rtems_servers/Makefile.am, rtems_servers/telnetd.c, rtems_servers/telnetd.h, rtems_telnetd/Makefile.am, rtems_telnetd/README, rtems_telnetd/icmds.c, rtems_telnetd/pty.c, rtems_telnetd/pty.h, rtems_telnetd/telnetd.c, rtems_telnetd/telnetd.h, wrapup/Makefile.am:
    • pty and telnetd have a new subdir rtems_telnetd to avoid the side effect when ftpd change.
    • the tcp/ip stats have been implemented into icmds.c and started when telnetd daemon is started.
  • rtems_servers/telnetd.c, rtems_servers/telnetd.h: Removed.
  • rtems_telnetd: New directory.
  • rtems_telnetd/Makefile.am, rtems_telnetd/README, rtems_telnetd/icmds.c, rtems_telnetd/pty.c, rtems_telnetd/pty.h, rtems_telnetd/telnetd.c, rtems_telnetd/telnetd.h: New files.
  • 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.