summaryrefslogtreecommitdiff
path: root/pgsql.h
diff options
context:
space:
mode:
authorAndreas Baumann <abaumann@yahoo.com>2012-04-30 22:22:05 +0200
committerAndreas Baumann <abaumann@yahoo.com>2012-04-30 22:22:05 +0200
commit6297d437585be15616a47802c84f592447ed5cdd (patch)
tree19b7469df229c245b689f08ab551ae43c76c7a15 /pgsql.h
parent0803c7828d34202f14f2d4b0e9a89044ffcf0bd6 (diff)
downloadpgfuse-6297d437585be15616a47802c84f592447ed5cdd.tar.gz
pgfuse-6297d437585be15616a47802c84f592447ed5cdd.tar.bz2
changed size to a bigint
Diffstat (limited to 'pgsql.h')
-rw-r--r--pgsql.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/pgsql.h b/pgsql.h
index 0b9c96c..46a3bab 100644
--- a/pgsql.h
+++ b/pgsql.h
@@ -21,6 +21,7 @@
#include <sys/types.h> /* size_t */
#include <sys/time.h> /* for struct timespec */
#include <sys/stat.h> /* mode_t */
+#include <stdint.h> /* for uint64_t */
#include <fuse.h> /* for user-land filesystem */
@@ -29,7 +30,7 @@
/* --- metadata stored about a file/directory/synlink --- */
typedef struct PgMeta {
- size_t size; /* the size of the file */
+ int64_t size; /* the size of the file (naturally the bigint on PostgreSQL) */
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 */