aboutsummaryrefslogtreecommitdiff
path: root/src/common/compat.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/compat.h')
-rw-r--r--src/common/compat.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/common/compat.h b/src/common/compat.h
index 5567f5e9c1..79825fc057 100644
--- a/src/common/compat.h
+++ b/src/common/compat.h
@@ -129,10 +129,11 @@ size_t strlcpy(char *dst, const char *src, size_t siz) ATTR_NONNULL((1,2));
#define U64_LITERAL(n) (n ## llu)
#endif
-/** Opaque bookkeeping type used for mmap accounting. */
+/** Represents an mmaped file. Allocated via tor_mmap_file; freed with
+ * tor_munmap_file. */
typedef struct tor_mmap_t {
- const char *data;
- size_t size;
+ const char *data; /**< Mapping of the file's contents. */
+ size_t size; /**< Size of the file. */
} tor_mmap_t;
tor_mmap_t *tor_mmap_file(const char *filename) ATTR_NONNULL((1));