File: fileutils.h

package info (click to toggle)
dvipsk-ja 5.94a%2Bjp1.6-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 6,824 kB
  • ctags: 4,012
  • sloc: ansic: 37,736; sh: 7,192; makefile: 620; perl: 365; csh: 47; awk: 35
file content (26 lines) | stat: -rw-r--r-- 866 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#ifndef _FILEUTILS_H_

#define _FILEUTILS_H_

#include "mktexlib.h"
#include "stackenv.h"


/* Type of function to execute */
typedef void (*execfn)(string, struct stat*);

extern MKTEXDLL void recurse_dir(string, execfn, execfn);
extern MKTEXDLL void do_rmdir(string);
extern MKTEXDLL void rec_rmdir(string);
extern MKTEXDLL int  do_makedir(string);
extern MKTEXDLL void remove_path(string, struct stat*);
extern MKTEXDLL int  mvfile(const char *, const char *);
extern MKTEXDLL int  catfile(const char *, const char *, int);
extern MKTEXDLL boolean test_file(int, string);
extern MKTEXDLL boolean is_writable(string);
extern MKTEXDLL int execute_command(string);
extern MKTEXDLL char *normalize(char *path);
extern MKTEXDLL char *my_basename(char *name,char *suffix);
extern MKTEXDLL char *concat_pathes(const char *p1,const char *p2);

#endif /* _FILEUTILS_H_ */