From c238be7c2ad11e23304b6d84d173ef54fdfec587 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Mon, 16 Apr 2012 21:28:13 +0200 Subject: started to add timestamps --- pgsql.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'pgsql.h') diff --git a/pgsql.h b/pgsql.h index 53474a8..45f4fc5 100644 --- a/pgsql.h +++ b/pgsql.h @@ -19,6 +19,7 @@ #define PGSQL_H #include /* size_t */ +#include /* for struct timespec */ #include /* mode_t */ #include /* for user-land filesystem */ @@ -30,6 +31,9 @@ typedef struct PgMeta { mode_t mode; /* type and permissions of file/directory */ uid_t uid; /* owner of the file/directory */ gid_t gid; /* group owner of the file/directory */ + struct timespec ctime; /* creation time */ + struct timespec mtime; /* last modification time */ + struct timespec atime; /* last access time */ } PgMeta; int psql_get_meta( PGconn *conn, const char *path, PgMeta *meta ); -- cgit v1.2.3-54-g00ecf