Changeset 85c9145f in rtems


Ignore:
Timestamp:
Mar 5, 2020, 8:32:29 PM (4 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
5, master
Children:
83994913
Parents:
624d691b
git-author:
Sebastian Huber <sebastian.huber@…> (03/05/20 20:32:29)
git-committer:
Sebastian Huber <sebastian.huber@…> (03/09/20 16:15:20)
Message:

imfs: Use _IMFS_get_time()

Update #3894.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libfs/src/imfs/imfs_node.c

    r624d691b r85c9145f  
    3333)
    3434{
    35   struct timeval tv;
     35  time_t now;
    3636
    3737  if ( namelen > IMFS_NAME_MAX ) {
     
    4040    return NULL;
    4141  }
    42 
    43   gettimeofday( &tv, 0 );
    4442
    4543  /*
     
    6361   */
    6462
    65   node->stat_atime  = (time_t) tv.tv_sec;
    66   node->stat_mtime  = (time_t) tv.tv_sec;
    67   node->stat_ctime  = (time_t) tv.tv_sec;
     63  now = _IMFS_get_time();
     64  node->stat_atime = now;
     65  node->stat_mtime = now;
     66  node->stat_ctime = now;
    6867
    6968  return (*node_control->node_initialize)( node, arg );
Note: See TracChangeset for help on using the changeset viewer.