Allow output files to overwrite input files (bug #21280). Thanks to
[pspp-builds.git] / src / data / file-name.h
index d18ce22a5f51d418ea16c6d838e14ccca1412cc9..b4231d2f87178b841f85cf62d69a76e15b871b5e 100644 (file)
@@ -20,6 +20,7 @@
 #include <stdio.h>
 #include <stdbool.h>
 #include <libpspp/str.h>
+#include <sys/types.h>
 
 /* Search path for configuration files. */
 extern const char *config_path;
@@ -43,9 +44,12 @@ const char *fn_getenv_default (const char *variable, const char *def);
 FILE *fn_open (const char *fn, const char *mode);
 int fn_close (const char *fn, FILE *file);
 
+FILE *create_stream (const char *fn, const char *mode, mode_t permissions);
+
 struct file_identity *fn_get_identity (const char *file_name);
 void fn_free_identity (struct file_identity *);
 int fn_compare_file_identities (const struct file_identity *,
                                 const struct file_identity *);
+unsigned int fn_hash_identity (const struct file_identity *);
 
 #endif /* file-name.h */