diff options
author | David 'Digit' Turner <digit@android.com> | 2011-05-03 00:17:48 -0700 |
---|---|---|
committer | Android Code Review <code-review@android.com> | 2011-05-03 00:17:48 -0700 |
commit | 5bdf6459919c143aef5f285927501629d1c596ca (patch) | |
tree | 4bdffdfddd36864cd50d3a8d1dfad07c325d1f21 /android/utils/path.h | |
parent | 5c1dcb21388749d6aa45eb92bca79c5ae5b0a929 (diff) | |
parent | 2d238fd9871687b1557f15b8878a6cf3e9634b57 (diff) | |
download | external_qemu-5bdf6459919c143aef5f285927501629d1c596ca.zip external_qemu-5bdf6459919c143aef5f285927501629d1c596ca.tar.gz external_qemu-5bdf6459919c143aef5f285927501629d1c596ca.tar.bz2 |
Merge "Add 'emulator' launcher program."
Diffstat (limited to 'android/utils/path.h')
-rw-r--r-- | android/utils/path.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/android/utils/path.h b/android/utils/path.h index e15e6ed..419e6bf 100644 --- a/android/utils/path.h +++ b/android/utils/path.h @@ -64,6 +64,9 @@ extern ABool path_is_absolute( const char* path ); extern ABool path_can_read( const char* path ); extern ABool path_can_write( const char* path ); +/* checks that one can execute a given file */ +extern ABool path_can_exec( const char* path ); + /* try to make a directory */ extern APosixStatus path_mkdir( const char* path, int mode ); @@ -109,6 +112,12 @@ extern char* path_dirname( const char* path ); */ extern char* path_basename( const char* path ); +/* look for a given executable in the system path and return its full path. + * Returns NULL if not found. Note that on Windows this doesn't not append + * an .exe prefix, or other magical thing like Cygwin usually does. + */ +extern char* path_search_exec( const char* filename ); + /** OTHER FILE UTILITIES ** ** path_empty_file() creates an empty file at a given path location. |