Changeset cfcdb5b2 in rtems


Ignore:
Timestamp:
Jul 1, 2010, 4:29:17 PM (9 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, master
Children:
58f09375
Parents:
f56f8e2
Message:

2010-07-01 Vinu Rajashekhar <vinutheraj@…>

PR 1529/cpukit

  • utime.c: Change file access time and modified time to current time if pointer to struct utimbuf is NULL.
  • imfs_utime.c: Upon successful completion, imfs_utime() marks the time of the last file status change, st_ctime, to be updated.
Location:
cpukit
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    rf56f8e2 rcfcdb5b2  
     12010-07-01      Vinu Rajashekhar <vinutheraj@gmail.com>
     2
     3        PR 1529/cpukit
     4        * utime.c: Change file access time and modified time to
     5        current time if pointer to struct utimbuf is NULL.
     6        * imfs_utime.c: Upon successful completion, imfs_utime() marks
     7        the time of the last file status change, st_ctime, to be updated.
     8
    192010-07-01      Joel Sherrill <joel.sherrill@oarcorp.com>
    210
  • cpukit/libcsupport/src/utime.c

    rf56f8e2 rcfcdb5b2  
    3030  rtems_filesystem_location_info_t   temp_loc;
    3131  int                                result;
     32  struct utimbuf                     now;
    3233
    3334  if ( rtems_filesystem_evaluate_path( path, strlen( path ), 0x00, &temp_loc, true ) )
     
    3940  }
    4041
     42  if ( times == NULL ) {
     43    now.actime = now.modtime = time( NULL );
     44    times = &now;
     45  }
     46
    4147  result = (*temp_loc.ops->utime_h)( &temp_loc, times->actime, times->modtime );
    4248
  • cpukit/libfs/src/imfs/imfs_utime.c

    rf56f8e2 rcfcdb5b2  
    3737  the_jnode->stat_atime = actime;
    3838  the_jnode->stat_mtime = modtime;
     39  the_jnode->stat_ctime = time( NULL );
    3940
    4041  return 0;
Note: See TracChangeset for help on using the changeset viewer.