From d3c4df72b1e9d16644c2676ec5fc1fd2f26fb301 Mon Sep 17 00:00:00 2001 From: Jonas 'Sortie' Termansen Date: Sun, 4 Mar 2012 22:25:47 +0100 Subject: [PATCH] Added st_{a,c,m}time to struct stat. --- libmaxsi/include/sys/stat.h | 1 + sortix/stat.h | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/libmaxsi/include/sys/stat.h b/libmaxsi/include/sys/stat.h index b19b9375..dfc6bc5c 100644 --- a/libmaxsi/include/sys/stat.h +++ b/libmaxsi/include/sys/stat.h @@ -39,6 +39,7 @@ __BEGIN_DECLS @include(uid_t.h) @include(gid_t.h) @include(off_t.h) +@include(time_t.h) __END_DECLS #include diff --git a/sortix/stat.h b/sortix/stat.h index 2d364ab7..12a37afd 100644 --- a/sortix/stat.h +++ b/sortix/stat.h @@ -39,7 +39,10 @@ struct stat uid_t st_uid; gid_t st_gid; off_t st_size; - /* TODO: st_atim, st_mtim, st_st_ctim */ + time_t st_atime; + time_t st_mtime; + time_t st_ctime; + /* TODO: st_atim, st_mtim, st_ctim */ blksize_t st_blksize; blkcnt_t st_blocks; };