Changeset df49c60 in rtems for c/src/libfs


Ignore:
Timestamp:
Jun 12, 2000, 3:00:15 PM (21 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
edeed26
Parents:
0ab65474
Message:

Merged from 4.5.0-beta3a

Location:
c/src/libfs/src/imfs
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • c/src/libfs/src/imfs/imfs.h

    r0ab65474 rdf49c60  
    158158  gid_t               st_gid;                /* Group ID of owner */
    159159
    160   time_t              st_atime;              /* Time of last access */
    161   time_t              st_mtime;              /* Time of last modification */
    162   time_t              st_ctime;              /* Time of last status change */
     160  time_t              stat_atime;            /* Time of last access */
     161  time_t              stat_mtime;            /* Time of last modification */
     162  time_t              stat_ctime;            /* Time of last status change */
    163163  IMFS_jnode_types_t  type;                  /* Type of this entry */
    164164  IMFS_types_union    info;
     
    169169    struct timeval tv;                      \
    170170    gettimeofday( &tv, 0 );                 \
    171     _jnode->st_atime  = (time_t) tv.tv_sec; \
     171    _jnode->stat_atime  = (time_t) tv.tv_sec; \
    172172  } while (0)
    173173               
     
    176176    struct timeval tv;                      \
    177177    gettimeofday( &tv, 0 );                 \
    178     _jnode->st_mtime  = (time_t) tv.tv_sec; \
     178    _jnode->stat_mtime  = (time_t) tv.tv_sec; \
    179179  } while (0)
    180180               
     
    183183    struct timeval tv;                      \
    184184    gettimeofday( &tv, 0 );                 \
    185     _jnode->st_ctime  = (time_t) tv.tv_sec; \
     185    _jnode->stat_ctime  = (time_t) tv.tv_sec; \
    186186  } while (0)
    187187
     
    190190    struct timeval tv;                      \
    191191    gettimeofday( &tv, 0 );                 \
    192     _jnode->st_mtime  = (time_t) tv.tv_sec; \
    193     _jnode->st_atime  = (time_t) tv.tv_sec; \
     192    _jnode->stat_mtime  = (time_t) tv.tv_sec; \
     193    _jnode->stat_atime  = (time_t) tv.tv_sec; \
    194194  } while (0)
    195195
  • c/src/libfs/src/imfs/imfs_creat.c

    r0ab65474 rdf49c60  
    7373  gettimeofday( &tv, 0 );
    7474
    75   node->st_atime  = (time_t) tv.tv_sec;
    76   node->st_mtime  = (time_t) tv.tv_sec;
    77   node->st_ctime  = (time_t) tv.tv_sec;
     75  node->stat_atime  = (time_t) tv.tv_sec;
     76  node->stat_mtime  = (time_t) tv.tv_sec;
     77  node->stat_ctime  = (time_t) tv.tv_sec;
    7878
    7979  /*
  • c/src/libfs/src/imfs/imfs_directory.c

    r0ab65474 rdf49c60  
    220220 *      st_blksize      0
    221221 *      st_blocks       0
    222  *      st_atime        time of last access
    223  *      st_mtime        time of last modification
    224  *      st_ctime        time of the last change
     222 *      stat_atime      time of last access
     223 *      stat_mtime      time of last modification
     224 *      stat_ctime      time of the last change
    225225 *
    226226 * This information will be returned to the calling function in a -stat- struct
     
    249249   buf->st_blksize = 0;
    250250   buf->st_blocks = 0;
    251    buf->st_atime = the_jnode->st_atime;
    252    buf->st_mtime = the_jnode->st_mtime;
    253    buf->st_ctime = the_jnode->st_ctime;
     251   buf->st_atime = the_jnode->stat_atime;
     252   buf->st_mtime = the_jnode->stat_mtime;
     253   buf->st_ctime = the_jnode->stat_ctime;
    254254
    255255   buf->st_size = 0;
  • c/src/libfs/src/imfs/imfs_stat.c

    r0ab65474 rdf49c60  
    5151  buf->st_gid   = the_jnode->st_gid;
    5252
    53   buf->st_atime = the_jnode->st_atime;
    54   buf->st_mtime = the_jnode->st_mtime;
    55   buf->st_ctime = the_jnode->st_ctime;
     53  buf->st_atime = the_jnode->stat_atime;
     54  buf->st_mtime = the_jnode->stat_mtime;
     55  buf->st_ctime = the_jnode->stat_ctime;
    5656
    5757  return 0;
  • c/src/libfs/src/imfs/imfs_utime.c

    r0ab65474 rdf49c60  
    3131  the_jnode = (IMFS_jnode_t *) pathloc->node_access;
    3232
    33   the_jnode->st_atime = actime;
    34   the_jnode->st_mtime = modtime;
     33  the_jnode->stat_atime = actime;
     34  the_jnode->stat_mtime = modtime;
    3535
    3636  return 0;
Note: See TracChangeset for help on using the changeset viewer.