summaryrefslogtreecommitdiff
path: root/navit/file.h
diff options
context:
space:
mode:
authormartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2012-11-06 15:47:56 +0000
committermartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2012-11-06 15:47:56 +0000
commit142bf0d675d1bfba7ace95a23afc5bdd1e8cbf2b (patch)
tree6b14b57f5292750eb280c7c1071c8fd6ea5b1804 /navit/file.h
parent984fffc1acca84bd3569ca60c4d46cf74ce9398d (diff)
downloadnavit-142bf0d675d1bfba7ace95a23afc5bdd1e8cbf2b.tar.gz
Fix:Core:Add file_sync function, truncate files if create flag is set, avoid crashing file_get_content on seek errors
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@5260 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/file.h')
-rw-r--r--navit/file.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/navit/file.h b/navit/file.h
index b6ee01e77..124db12ad 100644
--- a/navit/file.h
+++ b/navit/file.h
@@ -85,6 +85,7 @@ void *file_opendir(char *dir);
char *file_readdir(void *hnd);
void file_closedir(void *hnd);
struct file *file_create_caseinsensitive(char *name, struct attr **options);
+void file_fsync(struct file *f);
void file_destroy(struct file *f);
struct file_wordexp *file_wordexp_new(const char *pattern);
int file_wordexp_get_count(struct file_wordexp *wexp);