~ft/npe

0d98a32151079982dd23af0f3eca91b971eb1d6b — Jacob Moody a month ago 720ba97 master
npe: add atime to *stat
3 files changed, 3 insertions(+), 0 deletions(-)

M include/npe/unistd.h
M libnpe/fstat.c
M libnpe/stat.c
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;