diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2009-11-10 10:26:52 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2009-11-10 10:26:52 +0000 |
commit | e6a9c88ada2f11dd61e4c4e39dff84944bed5787 (patch) | |
tree | fc83368bc46443e81c90a00e6864dd335a38f48e /Build/source/texk/kpathsea/tex-file.h | |
parent | 522d28cda597706bae8ff7308c71f17901457300 (diff) |
towards TL2010: texk/kpathsea
git-svn-id: svn://tug.org/texlive/trunk@15963 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/kpathsea/tex-file.h')
-rw-r--r-- | Build/source/texk/kpathsea/tex-file.h | 7 |
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) |