aboutsummaryrefslogtreecommitdiffstats
path: root/src/libutil/util.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/libutil/util.h')
-rw-r--r--src/libutil/util.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/libutil/util.h b/src/libutil/util.h
index 605822fee..7f6ccc2f6 100644
--- a/src/libutil/util.h
+++ b/src/libutil/util.h
@@ -479,7 +479,8 @@ struct event_base * event_get_base (struct event *ev);
* @param mode mode to open
* @return fd or -1 in case of error
*/
-int rspamd_file_xopen (const char *fname, int oflags, guint mode);
+int rspamd_file_xopen (const char *fname, int oflags, guint mode,
+ gboolean allow_symlink);
/**
* Map file without following symlinks or special stuff
@@ -488,8 +489,8 @@ int rspamd_file_xopen (const char *fname, int oflags, guint mode);
* @param size target size (must NOT be NULL)
* @return pointer to memory (should be freed using munmap) or NULL in case of error
*/
-gpointer rspamd_file_xmap (const char *fname, guint mode,
- gsize *size);
+gpointer rspamd_file_xmap (const char *fname, guint mode, gsize *size,
+ gboolean allow_symlink);
/**
* Map named shared memory segment