M include/npe/unistd.h => include/npe/unistd.h +1 -0
@@ 47,6 47,7 @@ struct stat {
uvlong st_size;
int st_mode;
long st_mtime;
+ long st_atime;
};
int npe_stat(char *filename, struct stat *buf);
M libnpe/fstat.c => libnpe/fstat.c +1 -0
@@ 15,6 15,7 @@ npe_fstat(int fd, struct npe_stat *buf)
buf->st_size = d->length;
buf->st_mtime = d->mtime;
+ buf->st_atime = d->atime;
buf->st_mode = d->mode & 0777;
if(d->mode & DMDIR)
buf->st_mode |= S_IFDIR;
M libnpe/stat.c => libnpe/stat.c +1 -0
@@ 15,6 15,7 @@ npe_stat(char *filename, struct npe_stat *buf)
buf->st_size = d->length;
buf->st_mtime = d->mtime;
+ buf->st_atime = d->atime;
buf->st_mode = d->mode & 0777;
if(d->mode & DMDIR)
buf->st_mode |= S_IFDIR;