Fix catch trace bug and inline cost bug
[hiphop-php.git] / hphp / neo / neo_files.h
blobc740267d69d8c0054a49413a9acc9abd64345794
1 /*
2 * Copyright 2001-2004 Brandon Long
3 * All Rights Reserved.
5 * ClearSilver Templating System
7 * This code is made available under the terms of the ClearSilver License.
8 * http://www.clearsilver.net/license.hdf
12 #ifndef incl_HPHP_NEO_FILES_H_
13 #define incl_HPHP_NEO_FILES_H_ 1
15 __BEGIN_DECLS
17 #include <stdarg.h>
18 #include <sys/types.h>
19 #include "hphp/neo/ulist.h"
23 typedef int (* MATCH_FUNC)(void *rock, const char *filename);
25 NEOERR *ne_mkdirs (const char *path, mode_t mode);
26 NEOERR *ne_load_file (const char *path, char **str);
27 NEOERR *ne_load_file_len (const char *path, char **str, int *len);
28 NEOERR *ne_save_file (const char *path, char *str);
29 NEOERR *ne_remove_dir (const char *path);
30 NEOERR *ne_listdir(const char *path, ULIST **files);
31 NEOERR *ne_listdir_match(const char *path, ULIST **files, const char *match);
32 NEOERR *ne_listdir_fmatch(const char *path, ULIST **files, MATCH_FUNC fmatch,
33 void *rock);
35 __END_DECLS
37 #endif /* incl_HPHP_NEO_FILES_H_ */