Changeset 79061679 in rtems


Ignore:
Timestamp:
Oct 25, 2005, 2:19:45 PM (15 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
d056c7ec
Parents:
af028338
Message:

2005-10-25 Ralf Corsepius <ralf.corsepius@…>

  • telnetd/icmds.c: Rename register_icmds to _rtems_telnet_register_icmds. Make main_* functions static.
  • telnetd/pty.c: Make many functions static. Rename rtems_telnetd_maximum_ptys to rtems_pty_maximum_ptys.
  • telnetd/pty.h: Reflect changes above. Rename get_pty to rtems_pty_get. New header guards.
  • telnetd/telnetd.c: Reflect changes above.
  • telnetd/telnetd.h: New header guards.
Location:
cpukit
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    raf028338 r79061679  
     12005-10-25      Ralf Corsepius <ralf.corsepius@rtems.org>
     2
     3        * telnetd/icmds.c: Rename register_icmds to
     4        _rtems_telnet_register_icmds. Make main_* functions static.
     5        * telnetd/pty.c: Make many functions static.
     6        Rename rtems_telnetd_maximum_ptys to rtems_pty_maximum_ptys.
     7        * telnetd/pty.h: Reflect changes above.
     8        Rename get_pty to rtems_pty_get. New header guards.
     9        * telnetd/telnetd.c: Reflect changes above.
     10        * telnetd/telnetd.h: New header guards.
     11
    1122005-10-25      Ralf Corsepius <ralf.corsepius@rtems.org>
    213
  • cpukit/telnetd/pty.h

    raf028338 r79061679  
    1212 */
    1313
    14 #ifndef __PTY_H
    15 #define __PTY_H
     14#ifndef _RTEMS_PTY_H
     15#define _RTEMS_PTY_H
    1616
    1717#ifdef __cplusplus
     
    2121#include <rtems.h>     
    2222
    23 char * get_pty(int socket);
     23/* Number of ptys to setup */
     24extern size_t rtems_pty_maximum_ptys;
     25
     26/* Return the devname for a free pty slot.
     27 * If no slot available (socket>=0)
     28 * then the socket argument is closed
     29 */
     30char * rtems_pty_get(int socket);
     31
     32
     33/* OBSOLETE */
     34#define get_pty         rtems_pty_get
    2435
    2536rtems_device_driver pty_initialize(
  • cpukit/telnetd/telnetd.c

    raf028338 r79061679  
    3535#include <string.h>     /* memset */
    3636#include <stdio.h>
     37
     38/* FIXME: This should not be here */
     39extern void _rtems_telnetd_register_icmds(void);
     40
    3741/***********************************************************/
    3842rtems_id            telnetd_task_id      =0;
     
    7276                break;
    7377          };
    74           if ((devname = get_pty(acp_socket)) ) {
     78          if ((devname = rtems_pty_get(acp_socket)) ) {
    7579           shell_init(&devname[5],
    7680                      telnetd_stack_size,
     
    8690/***********************************************************/
    8791int rtems_telnetd_initialize(void) {
    88         void register_icmds(void);
    8992        rtems_status_code sc;
    9093       
    91         register_icmds(); /* stats for tcp/ip */
     94        _rtems_telnetd_register_icmds(); /* stats for tcp/ip */
    9295       
    9396        if (telnetd_task_id         ) return RTEMS_RESOURCE_IN_USE;
  • cpukit/telnetd/telnetd.h

    raf028338 r79061679  
    1717 */
    1818
    19 #ifndef __TELNETD_H
    20 #define __TELNETD_H
     19#ifndef _RTEMS_TELNETD_H
     20#define _RTEMS_TELNETD_H
    2121
    2222#ifdef __cplusplus
Note: See TracChangeset for help on using the changeset viewer.