Changeset 531cbf9 in rtems


Ignore:
Timestamp:
06/12/00 14:09:52 (23 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Children:
f18d2e74
Parents:
f981326
Message:

Changed st_atime, st_ctime, and st_mtime for IMFS nodes to be
stat_ to avoid conflicts with macros on Solaris.

Location:
c/src/lib/libc
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libc/imfs.h

    rf981326 r531cbf9  
    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/lib/libc/imfs_creat.c

    rf981326 r531cbf9  
    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/lib/libc/imfs_directory.c

    rf981326 r531cbf9  
    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/lib/libc/imfs_stat.c

    rf981326 r531cbf9  
    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/lib/libc/imfs_utime.c

    rf981326 r531cbf9  
    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.