Tor  0.4.4.0-alpha-dev
path.h
Go to the documentation of this file.
1 /* Copyright (c) 2003-2004, Roger Dingledine
2  * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
3  * Copyright (c) 2007-2020, The Tor Project, Inc. */
4 /* See LICENSE for licensing information */
5 
6 /**
7  * \file path.h
8  *
9  * \brief Header for path.c
10  **/
11 
12 #ifndef TOR_PATH_H
13 #define TOR_PATH_H
14 
15 #include "lib/cc/compat_compiler.h"
16 
17 #ifdef _WIN32
18 #define PATH_SEPARATOR "\\"
19 #else
20 #define PATH_SEPARATOR "/"
21 #endif
22 
23 char *get_unquoted_path(const char *path);
24 char *expand_filename(const char *filename);
25 int path_is_relative(const char *filename);
26 void clean_fname_for_stat(char *name);
27 int get_parent_directory(char *fname);
28 char *make_path_absolute(const char *fname);
29 
30 #endif /* !defined(TOR_PATH_H) */
const char * name
Definition: config.c:2441
char * make_path_absolute(const char *fname)
Definition: path.c:261
int path_is_relative(const char *filename)
Definition: path.c:126
int get_parent_directory(char *fname)
Definition: path.c:176
char * get_unquoted_path(const char *path)
Definition: path.c:32
Utility macros to handle different features and behavior in different compilers.
char * expand_filename(const char *filename)
Definition: path.c:66
void clean_fname_for_stat(char *name)
Definition: path.c:145