Changeset cd8aff0 in network-demos


Ignore:
Timestamp:
Jul 18, 2007, 7:05:39 PM (12 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, master, network-demos-4-10-branch, network-demos-4-8-branch, network-demos-4-9-branch
Children:
6d031d5
Parents:
9727f68
Message:

2007-07-18 Joel Sherrill <joel.sherrill@…>

  • ChangeLog?, init.c: Clean up and now works on PowerPC/ep5200.
Location:
nfsClientTest
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • nfsClientTest/ChangeLog

    r9727f68 rcd8aff0  
     12007-07-18      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * ChangeLog, init.c: Clean up and now works on PowerPC/ep5200.
     4
     52007-07-18      Joel Sherrill <joel.sherrill@oarcorp.com>
     6
     7        * init.c: Clean up and now works on ep5200.
     8        * mon.c: New file.
     9
    1102007-07-16      Joel Sherrill <joel.sherrill@oarcorp.com>
    211
  • nfsClientTest/init.c

    r9727f68 rcd8aff0  
    103103  pwd();
    104104 
    105   printf( "\nls /\n" );
     105  printf( "\n--->ls /\n" );
    106106  ls("/");
    107107
    108   printf( "\nls /etc\n" );
     108  printf( "\n--->ls /etc\n" );
    109109  ls("/etc");
    110110
    111111  printf("============== Initializing Network ==============\n");
    112112  rtems_bsdnet_initialize_network ();
     113
     114  printf("============== Add Route ==============\n");
     115  rtems_bsdnet_show_inet_routes ();
    113116
    114117  printf("============== Initializing RPC ==============\n");
     
    121124
    122125  printf("============== Mounting Remote Filesystem ==============\n");
    123 #if 0
     126#if 1
     127  /* This code uses the NFS mount wrapper function */
    124128  int_status = nfsMount("192.168.1.210", "/home", "/home" );
    125129#else
     130  /* This section does it more explicitly */
     131  mkdir( "/home", 0777 );
    126132  int_status = mount(
    127133    NULL,                        /* mount_table_entry_pointer */
     
    131137    "/home"                      /* mount_point */
    132138  );
    133 
    134139#endif
    135 
    136140  if ( int_status )
    137141    printf( "NFS Mount failed -- %s\n", strerror(errno) );
    138142
    139143  printf("============== Look at Remote Filesystem ==============\n");
    140   printf( "\nls /home\n" );
     144  printf( "\n---> ls /home\n" );
    141145  ls("/home");
     146  printf( "\n---> ls /home/nfstest\n" );
     147  ls("/home/nfstest");
    142148
    143149  exit(0);
Note: See TracChangeset for help on using the changeset viewer.