#include <map>
#include <string>
#include "kpse-xfns.h"
#include "lo-error.h"
#include "oct-env.h"
#include "oct-passwd.h"
#include "str-vec.h"
#include <cstdio>
#include <cstdarg>
#include <cstdlib>
#include <climits>
#include <cerrno>
#include <cassert>
#include "sysdir.h"
#include "statdefs.h"
#include <cctype>
#include <ctime>
Classes | |
struct | str_llist_elt |
struct | hash_element_type |
struct | hash_table_type |
class | kpse_path_iterator |
struct | kpse_format_info_type |
struct | cache_entry |
Defines | |
#define | KPATHSEA 32 |
#define | ST_NLINK_TRICK |
#define | _POSIX_NAME_MAX 255 |
#define | NAME_MAX _POSIX_NAME_MAX |
#define | ENV_SEP ':' |
#define | ENV_SEP_STRING ":" |
#define | IS_ENV_SEP(ch) ((ch) == ENV_SEP) |
#define | _POSIX_PATH_MAX 255 |
#define | PATH_MAX _POSIX_PATH_MAX |
#define | KPSE_DEBUG |
#define | KPSE_DEBUG_P(bit) (kpathsea_debug & (1 << (bit))) |
#define | KPSE_DEBUG_STAT 0 |
#define | KPSE_DEBUG_HASH 1 |
#define | KPSE_DEBUG_FOPEN 2 |
#define | KPSE_DEBUG_PATHS 3 |
#define | KPSE_DEBUG_EXPAND 4 |
#define | KPSE_DEBUG_SEARCH 5 |
#define | KPSE_DEBUG_VARS 6 |
#define | KPSE_LAST_DEBUG KPSE_DEBUG_VARS |
#define | DEBUGF_START() do { fputs ("kdebug:", stderr) |
#define | DEBUGF_END() fflush (stderr); } while (0) |
#define | DEBUGF(str) DEBUGF_START (); fputs (str, stderr); DEBUGF_END () |
#define | DEBUGF1(str, e1) DEBUGF_START (); fprintf (stderr, str, e1); DEBUGF_END () |
#define | DEBUGF2(str, e1, e2) DEBUGF_START (); fprintf (stderr, str, e1, e2); DEBUGF_END () |
#define | DEBUGF3(str, e1, e2, e3) DEBUGF_START (); fprintf (stderr, str, e1, e2, e3); DEBUGF_END () |
#define | DEBUGF4(str, e1, e2, e3, e4) DEBUGF_START (); fprintf (stderr, str, e1, e2, e3, e4); DEBUGF_END () |
#define | fopen kpse_fopen_trace |
#define | FATAL_PERROR(str) |
#define | FATAL(str) |
#define | STR_LLIST(sl) ((sl).str) |
#define | STR_LLIST_MOVED(sl) ((sl).moved) |
#define | STR_LLIST_NEXT(sl) ((sl).next) |
#define | brace_whitespace(c) (! (c) || (c) == ' ' || (c) == '\t' || (c) == '\n') |
#define | EXPAND_DEFAULT(try_path, source_string) |
#define | IS_VAR_START(c) ((c) == '$') |
#define | IS_VAR_CHAR(c) (isalnum (c) || (c) == '_') |
#define | IS_VAR_BEGIN_DELIMITER(c) ((c) == '{') |
#define | IS_VAR_END_DELIMITER(c) ((c) == '}') |
Typedefs | |
typedef str_llist_elt | str_llist_elt_type |
typedef str_llist_elt * | str_llist_type |
Functions | |
return (access(t, R_OK)==0 &&stat(t,&(st))==0 &&!S_ISDIR(st.st_mode)) |
#define _POSIX_NAME_MAX 255 |
#define _POSIX_PATH_MAX 255 |
#define brace_whitespace | ( | c | ) | (! (c) || (c) == ' ' || (c) == '\t' || (c) == '\n') |
#define DEBUGF | ( | str | ) | DEBUGF_START (); fputs (str, stderr); DEBUGF_END () |
#define DEBUGF3 | ( | str, | |||
e1, | |||||
e2, | |||||
e3 | ) | DEBUGF_START (); fprintf (stderr, str, e1, e2, e3); DEBUGF_END () |
#define DEBUGF4 | ( | str, | |||
e1, | |||||
e2, | |||||
e3, | |||||
e4 | ) | DEBUGF_START (); fprintf (stderr, str, e1, e2, e3, e4); DEBUGF_END () |
#define DEBUGF_END | ( | ) | fflush (stderr); } while (0) |
#define DEBUGF_START | ( | ) | do { fputs ("kdebug:", stderr) |
#define ENV_SEP ':' |
#define ENV_SEP_STRING ":" |
#define EXPAND_DEFAULT | ( | try_path, | |||
source_string | ) |
#define FATAL | ( | str | ) |
#define FATAL_PERROR | ( | str | ) |
#define fopen kpse_fopen_trace |
#define IS_VAR_BEGIN_DELIMITER | ( | c | ) | ((c) == '{') |
#define IS_VAR_CHAR | ( | c | ) | (isalnum (c) || (c) == '_') |
#define IS_VAR_END_DELIMITER | ( | c | ) | ((c) == '}') |
#define IS_VAR_START | ( | c | ) | ((c) == '$') |
#define KPATHSEA 32 |
#define KPSE_DEBUG |
#define KPSE_DEBUG_EXPAND 4 |
#define KPSE_DEBUG_FOPEN 2 |
#define KPSE_DEBUG_HASH 1 |
#define KPSE_DEBUG_PATHS 3 |
#define KPSE_DEBUG_SEARCH 5 |
#define KPSE_DEBUG_STAT 0 |
#define KPSE_DEBUG_VARS 6 |
#define KPSE_LAST_DEBUG KPSE_DEBUG_VARS |
#define NAME_MAX _POSIX_NAME_MAX |
#define PATH_MAX _POSIX_PATH_MAX |
#define ST_NLINK_TRICK |
typedef str_llist_elt str_llist_elt_type |
typedef str_llist_elt* str_llist_type |
return | ( | access(t, R_OK) | = =0 &&stat(t,&(st))==0 &&!S_ISDIR(st.st_mode) |
) |