From 29b88e1c7431f57ca22fca5d5bf87de73c253993 Mon Sep 17 00:00:00 2001 From: wrowe Date: Thu, 27 Mar 2003 18:39:03 +0000 Subject: Comment what res_name_from_filename is doing git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64451 13f79535-47bb-0310-9956-ffa450edef68 --- shmem/win32/shm.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'shmem') diff --git a/shmem/win32/shm.c b/shmem/win32/shm.c index 2f1ea94df..21a1c4389 100644 --- a/shmem/win32/shm.c +++ b/shmem/win32/shm.c @@ -136,6 +136,11 @@ APR_DECLARE(apr_status_t) apr_shm_create(apr_shm_t **m, return rv; } rv = apr_file_trunc(f, size); + + /* res_name_from_filename turns file into a pseudo-name + * without slashes or backslashes, and prepends the \global + * prefix on Win2K and later + */ mapkey = res_name_from_filename(file, 1, pool); } @@ -208,6 +213,10 @@ APR_DECLARE(apr_status_t) apr_shm_attach(apr_shm_t **m, return APR_EINVAL; } else { + /* res_name_from_filename turns file into a pseudo-name + * without slashes or backslashes, and prepends the \global + * prefix on Win2K and later + */ mapkey = res_name_from_filename(file, 1, pool); } -- cgit v1.2.1