summaryrefslogtreecommitdiff
path: root/Build/source/texk/kpathsea/tex-file.h
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/texk/kpathsea/tex-file.h')
-rw-r--r--Build/source/texk/kpathsea/tex-file.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/Build/source/texk/kpathsea/tex-file.h b/Build/source/texk/kpathsea/tex-file.h
index a99d049fd10..49b0a41e878 100644
--- a/Build/source/texk/kpathsea/tex-file.h
+++ b/Build/source/texk/kpathsea/tex-file.h
@@ -63,6 +63,10 @@ extern KPSEDLL string *kpathsea_find_file_generic
(kpathsea kpse, const_string name, kpse_file_format_type format,
boolean must_exist, boolean all);
+/* Return true if FNAME is acceptable to open for reading or writing. */
+extern KPSEDLL boolean kpathsea_in_name_ok (kpathsea kpse, const_string fname);
+extern KPSEDLL boolean kpathsea_out_name_ok (kpathsea kpse, const_string fname);
+
/* Don't just look up the name, actually open the file. */
extern KPSEDLL FILE *kpathsea_open_file (kpathsea kpse, const_string name,
kpse_file_format_type format);
@@ -95,6 +99,9 @@ extern KPSEDLL string *kpse_find_file_generic
(const_string name, kpse_file_format_type format,
boolean must_exist, boolean all);
+extern KPSEDLL boolean kpse_in_name_ok (const_string fname);
+extern KPSEDLL boolean kpse_out_name_ok (const_string fname);
+
/* Here are some abbreviations. */
#define kpse_find_mf(name) kpse_find_file (name, kpse_mf_format, true)
#define kpse_find_mft(name) kpse_find_file (name, kpse_mft_format, true)