Changeset ba9c45c in network-demos


Ignore:
Timestamp:
Apr 1, 1999, 6:19:08 PM (20 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, master, netdemos-4-5-branch, network-demos-4-10-branch, network-demos-4-6-branch, network-demos-4-7-branch, network-demos-4-8-branch, network-demos-4-9-branch, rtems-4-5-branch
Children:
83c159d
Parents:
ce34271
Message:

Patch from Eric Norum <eric@…> to take advantage of new
routines in RTEMS.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ttcp/rtems_ttcp.c

    rce34271 rba9c45c  
    4848{
    4949        return 0;;
    50 }
    51 
    52 int
    53 gettimeofday (struct timeval *tp, struct timezone *tzp)
    54 {
    55         rtems_clock_time_value now;
    56 
    57         rtems_clock_get (RTEMS_CLOCK_GET_TIME_VALUE, &now);
    58         tp->tv_sec = now.seconds;
    59         tp->tv_usec = now.microseconds;
    60         return 0;
    6150}
    6251
     
    230219#define main            rtems_ttcp_main
    231220#define exit(code)      close(fd),rtems_ttcp_exit(code)
    232 #define read_timer      rtems_read_timer
    233 #undef delay
    234221
    235222#include "ttcp_orig/ttcp.c"
Note: See TracChangeset for help on using the changeset viewer.