Changeset 80f7732 in rtems for cpukit/telnetd


Ignore:
Timestamp:
Dec 2, 2009, 9:48:25 AM (10 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, master
Children:
46e483b8
Parents:
882b1875
Message:

Whitespace removal.

Location:
cpukit/telnetd
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • cpukit/telnetd/des.c

    r882b1875 r80f7732  
    7272
    7373#define REENTRANT
    74 /* Re-entrantify me -- all this junk needs to be in 
     74/* Re-entrantify me -- all this junk needs to be in
    7575 * struct crypt_data to make this really reentrant... */
    7676
     
    128128#define old_rawkey1 des_ctx->old_rawkey1
    129129
    130 /* Static stuff that stays resident and doesn't change after 
    131  * being initialized, and therefore doesn't need to be made 
     130/* Static stuff that stays resident and doesn't change after
     131 * being initialized, and therefore doesn't need to be made
    132132 * reentrant. */
    133133static u_char   init_perm[64], final_perm[64];
     
    242242
    243243
    244 static int 
     244static int
    245245ascii_to_bin(char ch)
    246246{
     
    774774    output[9] = '\0';
    775775    p = (u_char *)output + strlen(output);
    776   } else 
     776  } else
    777777#endif
    778778  {
  • cpukit/telnetd/genpw.c

    r882b1875 r80f7732  
    33#include <unistd.h>
    44
    5 /* 
     5/*
    66 * Authorship
    77 * ----------
     
    99 *     Till Straumann <strauman@slac.stanford.edu>, 2003-2007
    1010 *         Stanford Linear Accelerator Center, Stanford University.
    11  * 
     11 *
    1212 * Acknowledgement of sponsorship
    1313 * ------------------------------
     
    1515 *     the Stanford Linear Accelerator Center, Stanford University,
    1616 *         under Contract DE-AC03-76SFO0515 with the Department of Energy.
    17  * 
     17 *
    1818 * Government disclaimer of liability
    1919 * ----------------------------------
     
    2424 * disclosed, or represents that its use would not infringe privately owned
    2525 * rights.
    26  * 
     26 *
    2727 * Stanford disclaimer of liability
    2828 * --------------------------------
    2929 * Stanford University makes no representations or warranties, express or
    3030 * implied, nor assumes any liability for the use of this software.
    31  * 
     31 *
    3232 * Stanford disclaimer of copyright
    3333 * --------------------------------
    3434 * Stanford University, owner of the copyright, hereby disclaims its
    3535 * copyright and all other rights in this software.  Hence, anyone may
    36  * freely use it for any purpose without restriction. 
    37  * 
     36 * freely use it for any purpose without restriction.
     37 *
    3838 * Maintenance of notices
    3939 * ----------------------
     
    4444 * software made or distributed by the recipient that contains a copy or
    4545 * derivative of this software.
    46  * 
     46 *
    4747 * ------------------ SLAC Software Notices, Set 4 OTT.002a, 2004 FEB 03
    48  */ 
     48 */
    4949static void
    5050usage(char *nm)
  • cpukit/telnetd/icmds.c

    r882b1875 r80f7732  
    5555
    5656void _rtems_telnetd_register_icmds(void) {
    57  rtems_shell_add_cmd("inet"    ,"net","inet routes"               ,main_inet);   
    58  rtems_shell_add_cmd("mbuf"    ,"net","mbuf stats"                ,main_mbuf);   
    59  rtems_shell_add_cmd("if"      ,"net","if   stats"                ,main_if  );   
    60  rtems_shell_add_cmd("ip"      ,"net","ip   stats"                ,main_ip  );   
    61  rtems_shell_add_cmd("icmp"    ,"net","icmp stats"                ,main_icmp);   
    62  rtems_shell_add_cmd("tcp"     ,"net","tcp  stats"                ,main_tcp );   
    63  rtems_shell_add_cmd("udp"     ,"net","udp  stats"                ,main_udp );   
     57 rtems_shell_add_cmd("inet"    ,"net","inet routes"               ,main_inet);
     58 rtems_shell_add_cmd("mbuf"    ,"net","mbuf stats"                ,main_mbuf);
     59 rtems_shell_add_cmd("if"      ,"net","if   stats"                ,main_if  );
     60 rtems_shell_add_cmd("ip"      ,"net","ip   stats"                ,main_ip  );
     61 rtems_shell_add_cmd("icmp"    ,"net","icmp stats"                ,main_icmp);
     62 rtems_shell_add_cmd("tcp"     ,"net","tcp  stats"                ,main_tcp );
     63 rtems_shell_add_cmd("udp"     ,"net","udp  stats"                ,main_udp );
    6464}
  • cpukit/telnetd/pty.c

    r882b1875 r80f7732  
    1818 *     they may cleanup. Some magic hack works around termios
    1919 *     limitation.
    20  * 
     20 *
    2121 *  $Id$
    2222 */
     
    7878 int                       socket;
    7979 int                       last_cr;
    80  unsigned                  iac_mode;   
    81  unsigned char             sb_buf[SB_MAX]; 
     80 unsigned                  iac_mode;
     81 unsigned char             sb_buf[SB_MAX];
    8282 int                       sb_ind;
    8383 int                       width;
     
    9393
    9494/* This procedure returns the devname for a pty slot free.
    95  * If not slot availiable (field socket>=0) 
     95 * If not slot availiable (field socket>=0)
    9696 *  then the socket argument is closed
    9797 */
     
    111111      return NULL;
    112112    }
    113      
     113
    114114    for (ndx=0;ndx<rtems_telnetd_maximum_ptys;ndx++) {
    115115
     
    133133/*
    134134 * The NVT terminal is negociated in PollRead and PollWrite
    135  * with every BYTE sendded or received. 
    136  * A litle status machine in the pty_read_byte(int minor) 
    137  * 
     135 * with every BYTE sendded or received.
     136 * A litle status machine in the pty_read_byte(int minor)
     137 *
    138138 */
    139139static const char IAC_AYT_RSP[]="\r\nAYT? Yes, RTEMS-SHELL is here\r\n";
     
    270270       case IAC_WILL:
    271271           if (value==34){
    272               send_iac(minor,IAC_DONT,   34);  /*LINEMODE*/ 
     272              send_iac(minor,IAC_DONT,   34);  /*LINEMODE*/
    273273              send_iac(minor,IAC_DO  ,    1);  /*ECHO    */
    274274           } else if (value==31) {
     
    286286           if (value==3) {
    287287              send_iac(minor,IAC_WILL,    3);  /* GO AHEAD*/
    288            } else  if (value==1) {                         
     288           } else  if (value==1) {
    289289              /* ECHO */
    290290           } else {
     
    304304              return -1;
    305305           } else {
    306               result=value; 
     306              result=value;
    307307              if ( 0
    308308#if 0               /* pass CRLF through - they should use termios to handle it */
     
    328328static const rtems_termios_callbacks * pty_get_termios_handlers(int polled) ;
    329329/*-----------------------------------------------------------*/
    330 /* Set the 'Hardware'                                        */ 
     330/* Set the 'Hardware'                                        */
    331331/*-----------------------------------------------------------*/
    332332static int
     
    340340}
    341341/*-----------------------------------------------------------*/
    342 static int 
     342static int
    343343ptyPollInitialize(int major,int minor,void * arg) {
    344344  rtems_libio_open_close_args_t * args = (rtems_libio_open_close_args_t*)arg;
     
    359359}
    360360/*-----------------------------------------------------------*/
    361 static int 
     361static int
    362362ptyShutdown(int major,int minor,void * arg) {
    363363  if (minor<rtems_telnetd_maximum_ptys) {
     
    372372}
    373373/*-----------------------------------------------------------*/
    374 /* Write Characters into pty device                          */ 
     374/* Write Characters into pty device                          */
    375375/*-----------------------------------------------------------*/
    376376static int
     
    426426  telnet_ptys = malloc( rtems_telnetd_maximum_ptys * sizeof (pty_t) );
    427427
    428   /* 
     428  /*
    429429   * Set up ptys
    430430   */
     
    511511  return sc;
    512512}
    513  
     513
    514514/*
    515515 *  Close entry point
  • cpukit/telnetd/pty.h

    r882b1875 r80f7732  
    88 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
    99 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
    10  * 
     10 *
    1111 *  $Id$
    1212 */
     
    2525
    2626/* Return the devname for a free pty slot.
    27  * If no slot available (socket>=0) 
     27 * If no slot available (socket>=0)
    2828 * then the socket argument is closed
    2929 */
Note: See TracChangeset for help on using the changeset viewer.