66 char const *
mode =
"r";
72 fp = fopen(full_path,
mode);
83 fp = fopen(full_path,
mode);
100 return fopen(file,
mode);
106 fp = fopen(full_path,
mode);
141 char homepath[MAX_PATH];
144 char *home = getenv(
"HOME");
149 home = getenv(
"USERPROFILE");
152 char *drive = getenv(
"HOMEDRIVE");
153 char *path = getenv(
"HOMEPATH");
155 snprintf(homepath, MAX_PATH,
"%s/%s", drive, path);
160 struct passwd *pwd = getpwuid(getuid());
int command_run_line(struct command_context *context, char *line)
static char ** config_file_names
void add_config_command(const char *cfg)
char * find_file(const char *file)
static char ** script_search_dirs
FILE * open_file_from_path(const char *file, const char *mode)
int parse_config_file(struct command_context *cmd_ctx)
static size_t num_config_files
char * get_home_dir(const char *append_path)
void add_script_search_dir(const char *dir)
static size_t num_script_dirs
char * alloc_printf(const char *format,...)
#define LOG_DEBUG(expr ...)