diff options
author | Nick Mathewson <nickm@torproject.org> | 2011-05-13 15:15:41 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2011-05-15 20:20:29 -0400 |
commit | 3b6cbf253494303f612eeb09a6fbb30a7c15c7fa (patch) | |
tree | c7cc77c25edb68e869c78e47ed934fa1efebbc29 /src/common/compat.h | |
parent | b147c01295deb8c09807fda3b5e4945edcfaf81a (diff) | |
download | tor-3b6cbf253494303f612eeb09a6fbb30a7c15c7fa.tar.gz tor-3b6cbf253494303f612eeb09a6fbb30a7c15c7fa.zip |
Add a function to pull off the final component of a path
Diffstat (limited to 'src/common/compat.h')
-rw-r--r-- | src/common/compat.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common/compat.h b/src/common/compat.h index af795ffba9..eff51ab30c 100644 --- a/src/common/compat.h +++ b/src/common/compat.h @@ -552,6 +552,8 @@ int switch_id(const char *user); char *get_user_homedir(const char *username); #endif +int get_parent_directory(char *fname); + int spawn_func(void (*func)(void *), void *data); void spawn_exit(void) ATTR_NORETURN; |