Navigation

Operators and Keywords

Function List:

C++ API

kpse.cc File Reference

#include <map>
#include <string>
#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 <sys/types.h>
#include <unistd.h>
#include "sysdir.h"
#include "statdefs.h"
#include <cctype>
#include <ctime>
Include dependency graph for kpse.cc:
This graph shows which files directly or indirectly include this file:

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 DIR_SEP   '/'
#define DIR_SEP_STRING   "/"
#define IS_DIR_SEP(ch)   ((ch) == DIR_SEP)
#define IS_DEVICE_SEP(ch)   0
#define NAME_BEGINS_WITH_DEVICE(name)   0
#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 { gnulib::fputs ("kdebug:", stderr)
#define DEBUGF_END()   fflush (stderr); } while (0)
#define DEBUGF(str)   DEBUGF_START (); gnulib::fputs (str, stderr); DEBUGF_END ()
#define DEBUGF1(str, e1)   DEBUGF_START (); gnulib::fprintf (stderr, str, e1); DEBUGF_END ()
#define DEBUGF2(str, e1, e2)   DEBUGF_START (); gnulib::fprintf (stderr, str, e1, e2); DEBUGF_END ()
#define DEBUGF3(str, e1, e2, e3)   DEBUGF_START (); gnulib::fprintf (stderr, str, e1, e2, e3); DEBUGF_END ()
#define DEBUGF4(str, e1, e2, e3, e4)   DEBUGF_START (); gnulib::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)

Typedefs

typedef str_llist_elt str_llist_elt_type
typedef str_llist_eltstr_llist_type

Define Documentation

#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 (); gnulib::fputs (str, stderr); DEBUGF_END ()
#define DEBUGF1 (   str,
  e1 
)    DEBUGF_START (); gnulib::fprintf (stderr, str, e1); DEBUGF_END ()
#define DEBUGF2 (   str,
  e1,
  e2 
)    DEBUGF_START (); gnulib::fprintf (stderr, str, e1, e2); DEBUGF_END ()
#define DEBUGF3 (   str,
  e1,
  e2,
  e3 
)    DEBUGF_START (); gnulib::fprintf (stderr, str, e1, e2, e3); DEBUGF_END ()
#define DEBUGF4 (   str,
  e1,
  e2,
  e3,
  e4 
)    DEBUGF_START (); gnulib::fprintf (stderr, str, e1, e2, e3, e4); DEBUGF_END ()
#define DEBUGF_END (  )     fflush (stderr); } while (0)
#define DEBUGF_START (  )     do { gnulib::fputs ("kdebug:", stderr)
#define DIR_SEP   '/'
#define DIR_SEP_STRING   "/"
#define ENV_SEP   ':'
#define ENV_SEP_STRING   ":"
#define EXPAND_DEFAULT (   try_path,
  source_string 
)
Value:
do \
    { \
      if (! try_path.empty ()) \
        { \
          info.raw_path = try_path;     \
          info.path = kpse_expand_default (try_path, info.path); \
          info.path_source = source_string;     \
        } \
    } \
  while (0)
#define FATAL (   str  ) 
Value:
do \
    { \
      gnulib::fputs ("pathsearch: fatal: ", stderr); \
      gnulib::fputs (str, stderr); \
      gnulib::fputs (".\n", stderr); \
      exit (1); \
    } \
  while (0)
#define FATAL_PERROR (   str  ) 
Value:
do \
    { \
      gnulib::fputs ("pathsearch: ", stderr); \
      perror (str); exit (EXIT_FAILURE); \
    } \
  while (0)
#define fopen   kpse_fopen_trace
#define IS_DEVICE_SEP (   ch  )     0
#define IS_DIR_SEP (   ch  )     ((ch) == DIR_SEP)
#define IS_ENV_SEP (   ch  )     ((ch) == ENV_SEP)
#define KPATHSEA   32
#define KPSE_DEBUG
#define KPSE_DEBUG_EXPAND   4
#define KPSE_DEBUG_FOPEN   2
#define KPSE_DEBUG_HASH   1
#define KPSE_DEBUG_P (   bit  )     (kpathsea_debug & (1 << (bit)))
#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_BEGINS_WITH_DEVICE (   name  )     0
#define NAME_MAX   _POSIX_NAME_MAX
#define PATH_MAX   _POSIX_PATH_MAX
#define ST_NLINK_TRICK
#define STR_LLIST (   sl  )     ((sl).str)
#define STR_LLIST_MOVED (   sl  )     ((sl).moved)
#define STR_LLIST_NEXT (   sl  )     ((sl).next)

Typedef Documentation

 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines