aboutsummaryrefslogtreecommitdiff
path: root/file_io/unix/filepath.c
diff options
context:
space:
mode:
authorWilliam A. Rowe Jr <wrowe@apache.org>2001-09-09 06:03:05 +0000
committerWilliam A. Rowe Jr <wrowe@apache.org>2001-09-09 06:03:05 +0000
commitca38c6739721bb5f78005da21bd7ca6499c1e1c7 (patch)
tree2bfd46d5bb54ee12ff41ac1f18e8794f951f54d5 /file_io/unix/filepath.c
parent7aa400295c6466171d9154c726e6f9b636877979 (diff)
downloadapr-ca38c6739721bb5f78005da21bd7ca6499c1e1c7.tar.gz
apr-ca38c6739721bb5f78005da21bd7ca6499c1e1c7.zip
Fix the apr_proc_create for win32. In order to do so, this patch
introduces a flags arg for apr_filepath_get(), like apr_filepath_merge(), that allows the APR_FILEPATH_NATIVE result format. This launches win32 processes with the Unicode semantics (although it runs sbcs apps equally well) and changes the default to 'not detached', in sync with the unix default. Finally, assures apr_filepath_get() uses the '/' semantics on OS2 by default. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@62296 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'file_io/unix/filepath.c')
-rw-r--r--file_io/unix/filepath.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/file_io/unix/filepath.c b/file_io/unix/filepath.c
index c7ae8ca5f..be4dd3b19 100644
--- a/file_io/unix/filepath.c
+++ b/file_io/unix/filepath.c
@@ -71,7 +71,8 @@
/* Any OS that requires/refuses trailing slashes should be dealt with here.
*/
-APR_DECLARE(apr_status_t) apr_filepath_get(char **defpath, apr_pool_t *p)
+APR_DECLARE(apr_status_t) apr_filepath_get(char **defpath, apr_int32_t flags,
+ apr_pool_t *p)
{
char path[APR_PATH_MAX];
if (!getcwd(path, sizeof(path))) {
@@ -170,7 +171,7 @@ APR_DECLARE(apr_status_t) apr_filepath_merge(char **newpath,
* passing the address of a char const* for a char** arg.
*/
char *getpath;
- rv = apr_filepath_get(&getpath, p);
+ rv = apr_filepath_get(&getpath, apr_int32_t flags, p);
rootpath = getpath;
if (rv != APR_SUCCESS)
return errno;