Changeset 531cbf9 in rtems
- Timestamp:
- 06/12/00 14:09:52 (23 years ago)
- Children:
- f18d2e74
- Parents:
- f981326
- Location:
- c/src/lib/libc
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/lib/libc/imfs.h
rf981326 r531cbf9 158 158 gid_t st_gid; /* Group ID of owner */ 159 159 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 */ 163 163 IMFS_jnode_types_t type; /* Type of this entry */ 164 164 IMFS_types_union info; … … 169 169 struct timeval tv; \ 170 170 gettimeofday( &tv, 0 ); \ 171 _jnode->st _atime = (time_t) tv.tv_sec; \171 _jnode->stat_atime = (time_t) tv.tv_sec; \ 172 172 } while (0) 173 173 … … 176 176 struct timeval tv; \ 177 177 gettimeofday( &tv, 0 ); \ 178 _jnode->st _mtime = (time_t) tv.tv_sec; \178 _jnode->stat_mtime = (time_t) tv.tv_sec; \ 179 179 } while (0) 180 180 … … 183 183 struct timeval tv; \ 184 184 gettimeofday( &tv, 0 ); \ 185 _jnode->st _ctime = (time_t) tv.tv_sec; \185 _jnode->stat_ctime = (time_t) tv.tv_sec; \ 186 186 } while (0) 187 187 … … 190 190 struct timeval tv; \ 191 191 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; \ 194 194 } while (0) 195 195 -
c/src/lib/libc/imfs_creat.c
rf981326 r531cbf9 73 73 gettimeofday( &tv, 0 ); 74 74 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; 78 78 79 79 /* -
c/src/lib/libc/imfs_directory.c
rf981326 r531cbf9 220 220 * st_blksize 0 221 221 * st_blocks 0 222 * st _atime time of last access223 * st _mtime time of last modification224 * st _ctime time of the last change222 * stat_atime time of last access 223 * stat_mtime time of last modification 224 * stat_ctime time of the last change 225 225 * 226 226 * This information will be returned to the calling function in a -stat- struct … … 249 249 buf->st_blksize = 0; 250 250 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; 254 254 255 255 buf->st_size = 0; -
c/src/lib/libc/imfs_stat.c
rf981326 r531cbf9 51 51 buf->st_gid = the_jnode->st_gid; 52 52 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; 56 56 57 57 return 0; -
c/src/lib/libc/imfs_utime.c
rf981326 r531cbf9 31 31 the_jnode = (IMFS_jnode_t *) pathloc->node_access; 32 32 33 the_jnode->st _atime = actime;34 the_jnode->st _mtime = modtime;33 the_jnode->stat_atime = actime; 34 the_jnode->stat_mtime = modtime; 35 35 36 36 return 0;
Note: See TracChangeset
for help on using the changeset viewer.