Changeset 1f67156 in rtems


Ignore:
Timestamp:
Mar 9, 2015, 12:18:36 PM (4 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
f244bfc5
Parents:
77e682ec
git-author:
Sebastian Huber <sebastian.huber@…> (03/09/15 12:18:36)
git-committer:
Sebastian Huber <sebastian.huber@…> (03/10/15 07:56:06)
Message:

libcsupport: Delete superfluous _gettimeofday()

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libcsupport/src/__gettod.c

    r77e682ec r1f67156  
    8181#endif
    8282
    83 #if defined(RTEMS_NEWLIB) && !defined(HAVE__GETTIMEOFDAY)
    84 
    85 /**
    86  *  "System call" version
    87  */
    88 int _gettimeofday(
    89   struct timeval *tp,
    90   void           *__tz
    91 )
    92 {
    93   struct timezone *tzp = __tz;
    94 
    95   return gettimeofday( tp, tzp );
    96 }
    97 #endif
    98 
    9983#endif /* defined(RTEMS_NEWLIB) */
  • testsuites/psxtests/psxtime/test.c

    r77e682ec r1f67156  
    3737extern int adjtime(const struct timeval *delta, struct timeval *olddelta);
    3838#endif
    39 
    40 extern int _gettimeofday(struct timeval *__p, void *__tz);
    4139
    4240void test_adjtime(void);
     
    222220  rtems_test_assert( errno == EFAULT );
    223221
    224   puts( "_gettimeofday( NULL, NULL ) - EFAULT" );
    225   sc = _gettimeofday( NULL, NULL );
    226   rtems_test_assert( sc == -1 );
    227   rtems_test_assert( errno == EFAULT );
    228 
    229222  test_adjtime();
    230223
Note: See TracChangeset for help on using the changeset viewer.