tor  0.4.2.1-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-2019, The Tor Project, Inc. */
4 /* See LICENSE for licensing information */
5 
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(char *fname);
29 
30 #endif /* !defined(TOR_PATH_H) */
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
char * make_path_absolute(char *fname)
Definition: path.c:260
void clean_fname_for_stat(char *name)
Definition: path.c:145