aboutsummaryrefslogtreecommitdiff
path: root/file_io/unix/filepath.c
Commit message (Collapse)AuthorAge
* Fix typoChristophe Jaillet2019-06-13
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1861263 13f79535-47bb-0310-9956-ffa450edef68
* * file_io/unix/filepath.c (apr_filepath_merge): Fix Coverity warning;Joe Orton2019-03-22
| | | | | | | don't copy bogus pointer after apr_filepath_get() error return. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1856030 13f79535-47bb-0310-9956-ffa450edef68
* Nothing interesting existed in apr_common_private.h, this wouldWilliam A. Rowe Jr2009-12-18
| | | | | | | | | | | | | | | | have just as well been an include/arch/unix/apr_arch_common.h but is entirely unnecessary. The right solution is dozens of lines less code and confusion, simply drive apr_filepath_list_split|merge from filepath_util.c brought in from the unix/ directory, across all platforms. One 'temporary' cast was in use by apr_pools.c, the other was entirely unused. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@892127 13f79535-47bb-0310-9956-ffa450edef68
* In Mac OS X's VFS API file names are, by definition, canonicallyJim Jagielski2007-08-13
| | | | | | | | decomposed Unicode, encoded using UTF-8. Shortest rep also uses composed UTF-8 git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@565326 13f79535-47bb-0310-9956-ffa450edef68
* Solve svn issue 1869, only one symptom on the Unix platform; when William A. Rowe Jr2006-09-21
| | | | | | | | | | | | | a trailing .. element is present without a trailing slash, always avoid appending a trailing slash. Solved with hints from Lieven Govaerts <lgo mobsol.be>. Resolves test fail identified by test/testnames.c commit 424831 Crossports: patch 424914 from Win32 git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@448480 13f79535-47bb-0310-9956-ffa450edef68
* Fix the typo.Joe Orton2006-08-03
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@428317 13f79535-47bb-0310-9956-ffa450edef68
* Update license header.Joe Orton2006-08-03
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@428313 13f79535-47bb-0310-9956-ffa450edef68
* Update copyright year to 2005 and standardize on current copyright owner line.Justin Erenkrantz2005-02-04
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@151412 13f79535-47bb-0310-9956-ffa450edef68
* Relicense APR under Apache License, Version 2.0Justin Erenkrantz2004-02-13
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64904 13f79535-47bb-0310-9956-ffa450edef68
* Move the apr_filepath_list_split_impl and apr_filepath_list_merge_implBranko Čibej2003-02-16
| | | | | | | | | | prototypes from include/arch/unix/apr_arch_file_io.h into a new private header, include/arch/apr_private_common.h, and include that from the various apr_private.h instances. Update the filepath.c and filepath_util.c files to reflect this change. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64361 13f79535-47bb-0310-9956-ffa450edef68
* get the prototypes for these functions in the right placeJeff Trawick2003-02-13
| | | | | | | | | | | | so they actually do some good > filepath_util.c:70: warning: no previous prototype for \ `apr_filepath_list_split_impl' > filepath_util.c:107: warning: no previous prototype for \ `apr_filepath_list_merge_impl' git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64354 13f79535-47bb-0310-9956-ffa450edef68
* Added two new functions, apr_filepath_list_split and apr_filepath_list_merge,Branko Čibej2003-02-12
| | | | | | | | | | for managing search paths. The common implementation is in a new file, file_io/unix/filepath_util.c. Also added tests for these functions a new file in the test suite, testpath.c. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64349 13f79535-47bb-0310-9956-ffa450edef68
* rename apr_arch_fileio.h to apr_arch_file_io.h for consistencyThom May2003-01-07
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64275 13f79535-47bb-0310-9956-ffa450edef68
* Namespace protection for include/arch/ header filesThom May2003-01-06
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | aix/dso.h -> -> aix/apr_arch_dso.h beos/dso.h -> beos/apr_arch_dso.h beos/proc_mutex.h -> beos/apr_arch_proc_mutex.h beos/thread_cond.h -> beos/apr_arch_thread_cond.h beos/thread_mutex.h -> beos/apr_arch_thread_mutex.h beos/threadproc.h -> beos/apr_arch_threadproc.h beos/thread_rwlock.h -> beos/apr_arch_thread_rwlock.h netware/dso.h -> -> netware/apr_arch_dso.h netware/fileio.h -> -> netware/apr_arch_fileio.h netware/global_mutex.h -> netware/apr_arch_global_mutex.h netware/internal_time.h -> netware/apr_arch_internal_time.h netware/networkio.h -> netware/apr_arch_networkio.h netware/pre_nw.h -> netware/apr_arch_pre_nw.h netware/proc_mutex.h -> netware/apr_arch_proc_mutex.h netware/thread_cond.h -> netware/apr_arch_thread_cond.h netware/thread_mutex.h -> netware/apr_arch_thread_mutex.h netware/threadproc.h -> netware/apr_arch_threadproc.h netware/thread_rwlock.h -> netware/apr_arch_thread_rwlock.h os2/dso.h -> os2/apr_arch_dso.h os2/fileio.h -> os2/apr_arch_fileio.h os2/networkio.h -> os2/apr_arch_networkio.h os2/os2calls.h -> os2/apr_arch_os2calls.h os2/proc_mutex.h -> os2/apr_arch_proc_mutex.h os2/thread_cond.h -> os2/apr_arch_thread_cond.h os2/thread_mutex.h -> os2/apr_arch_thread_mutex.h os2/threadproc.h -> os2/apr_arch_threadproc.h os2/thread_rwlock.h -> os2/apr_arch_thread_rwlock.h os390/dso.h -> os390/apr_arch_dso.h unix/dso.h -> unix/apr_arch_dso.h unix/fileio.h -> unix/apr_arch_fileio.h unix/global_mutex.h -> unix/apr_arch_global_mutex.h unix/inherit.h -> unix/apr_arch_inherit.h unix/internal_time.h -> unix/apr_arch_internal_time.h unix/misc.h -> unix/apr_arch_misc.h unix/networkio.h -> unix/apr_arch_networkio.h unix/proc_mutex.h -> unix/apr_arch_proc_mutex.h unix/shm.h -> unix/apr_arch_shm.h unix/thread_cond.h -> unix/apr_arch_thread_cond.h unix/thread_mutex.h -> unix/apr_arch_thread_mutex.h unix/threadproc.h -> unix/apr_arch_threadproc.h unix/thread_rwlock.h -> unix/apr_arch_thread_rwlock.h win32/atime.h -> win32/apr_arch_atime.h win32/dso.h -> win32/apr_arch_dso.h win32/fileio.h -> win32/apr_arch_fileio.h win32/inherit.h -> win32/apr_arch_inherit.h win32/misc.h -> win32/apr_arch_misc.h win32/networkio.h -> win32/apr_arch_networkio.h win32/proc_mutex.h -> win32/apr_arch_proc_mutex.h win32/thread_cond.h -> win32/apr_arch_thread_cond.h win32/thread_mutex.h -> win32/apr_arch_thread_mutex.h win32/threadproc.h -> win32/apr_arch_threadproc.h win32/thread_rwlock.h -> win32/apr_arch_thread_rwlock.h win32/utf8.h -> win32/apr_arch_utf8.h git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64271 13f79535-47bb-0310-9956-ffa450edef68
* Added a new function, apr_filepath_encoding, to determine the characterBranko Čibej2003-01-03
| | | | | | | | | encoding used internally by the file_io and file_info functions. In most cases, the encoding is locale-dependent; on Windows, though, it's usually (but not always!) UTF-8. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64260 13f79535-47bb-0310-9956-ffa450edef68
* Update copyright notices to 2003.Thom May2003-01-01
| | | | | | | No functional changes git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64251 13f79535-47bb-0310-9956-ffa450edef68
* Style Police patrolling again.Sander Striker2002-07-26
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@63733 13f79535-47bb-0310-9956-ffa450edef68
* More conservative buffer overflow checking code forBrian Pane2002-06-12
| | | | | | | | | | | apr_filepath_merge(): fail immediately if the sum of the rootpath and addpath lengths is too long, rather than letting long strings pass through and checking for overflow at multiple points throughout the merge code. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@63495 13f79535-47bb-0310-9956-ffa450edef68
* Performance improvement for apr_filepath_merge()Brian Pane2002-03-17
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@63145 13f79535-47bb-0310-9956-ffa450edef68
* Style cleanups onlyBrian Pane2002-03-17
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@63144 13f79535-47bb-0310-9956-ffa450edef68
* Update our copyright for this year.Roy T. Fielding2002-03-13
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@63117 13f79535-47bb-0310-9956-ffa450edef68
* Sorry Justin.Ian Holsman2001-11-27
| | | | | | | (remove 2 blank lines) git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@62566 13f79535-47bb-0310-9956-ffa450edef68
* remove a big nasty strdup for apr_filepath_mergeIan Holsman2001-11-27
| | | | | | | | Submitted by: Brian Pane <bpane@pacbell.net> Reviewed by: Ian Holsman git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@62565 13f79535-47bb-0310-9956-ffa450edef68
* fix breakage caused by last updateIan Holsman2001-09-09
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@62299 13f79535-47bb-0310-9956-ffa450edef68
* Fix the apr_proc_create for win32. In order to do so, this patchWilliam A. Rowe Jr2001-09-09
| | | | | | | | | | | | | | | 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
* Yep, httpd serves pages again.Cliff Woolley2001-08-24
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@62216 13f79535-47bb-0310-9956-ffa450edef68
* The **dir should be advanced over the leading 'root' (/+).William A. Rowe Jr2001-08-24
| | | | | | | Returning a path is APR_SUCCESS git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@62215 13f79535-47bb-0310-9956-ffa450edef68
* While we're tidying up warnings, fix thisBrian Havard2001-07-26
| | | | | | | warning: implicit declaration of function `strncmp' git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@62032 13f79535-47bb-0310-9956-ffa450edef68
* Add the flags argument to apr_filepath_root, to allow finer control ofWilliam A. Rowe Jr2001-06-27
| | | | | | | | canonicalization and os-native formatting. Renamed a bunch of local functions in the win32 implementation so it's clear they are not external. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61805 13f79535-47bb-0310-9956-ffa450edef68
* Per the suggestions of Greg Stein [thanks Greg] although I took some moreWilliam A. Rowe Jr2001-04-02
| | | | | | | liberties with the ideas. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61433 13f79535-47bb-0310-9956-ffa450edef68
* get filepath.c to compile on Linux/FreeBSD/etc. by dropping theJeff Trawick2001-03-31
| | | | | | | | | | | | include of direct.h (a Windows thing as far as google can tell me) fix a warning by changing the name of apr_filepath_parse_root() to match the prototype in apr_file_info.h other trivial tweaks (spelling, adding '\n' to last line) git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61411 13f79535-47bb-0310-9956-ffa450edef68
* First draft implementation of unix apr_filepath_ get, set, merge, andWilliam A. Rowe Jr2001-03-31
parse_root. [William Rowe] git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61403 13f79535-47bb-0310-9956-ffa450edef68