diff options
author | Andreas Baumann <abaumann@yahoo.com> | 2012-04-16 21:28:13 +0200 |
---|---|---|
committer | Andreas Baumann <abaumann@yahoo.com> | 2012-04-16 21:28:13 +0200 |
commit | c238be7c2ad11e23304b6d84d173ef54fdfec587 (patch) | |
tree | 3aa0e28799d42c559f20b0622d20a6dae84862e7 /pgsql.h | |
parent | dfb2fa888c347f343423673b7c8bae058b85e3b3 (diff) | |
download | pgfuse-c238be7c2ad11e23304b6d84d173ef54fdfec587.tar.gz pgfuse-c238be7c2ad11e23304b6d84d173ef54fdfec587.tar.bz2 |
started to add timestamps
Diffstat (limited to 'pgsql.h')
-rw-r--r-- | pgsql.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -19,6 +19,7 @@ #define PGSQL_H #include <sys/types.h> /* size_t */ +#include <sys/time.h> /* for struct timespec */ #include <sys/stat.h> /* mode_t */ #include <fuse.h> /* 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 ); |