summaryrefslogtreecommitdiff
path: root/locks/os2
diff options
context:
space:
mode:
authorJeff Trawick <trawick@apache.org>2003-06-07 19:45:10 +0000
committerJeff Trawick <trawick@apache.org>2003-06-07 19:45:10 +0000
commite989338617c1821ca516d936705fc4b2b5521930 (patch)
tree8c275a9c3aa7fd5ebb74d59bf026dd93cec91693 /locks/os2
parent8337c716185eae5e5dfd9bc9b6caa4bc26bef083 (diff)
downloadapr-e989338617c1821ca516d936705fc4b2b5521930.tar.gz
Add proc_mutex_lockfile() for retrieving the name of the file
associated with a mutex. This is used in Apache to simplify the effort of getting permissions set properly on mutexes that will be created as root but used as non-root. For flock-based mutexes, chown() needs to be performed on the mutex file. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64531 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'locks/os2')
-rw-r--r--locks/os2/proc_mutex.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/locks/os2/proc_mutex.c b/locks/os2/proc_mutex.c
index 23f0bdd69..3a3c848aa 100644
--- a/locks/os2/proc_mutex.c
+++ b/locks/os2/proc_mutex.c
@@ -93,6 +93,11 @@ APR_DECLARE(apr_status_t) apr_proc_mutex_cleanup(void *vmutex)
return apr_proc_mutex_destroy(mutex);
}
+APR_DECLARE(const char *) apr_proc_mutex_lockfile(apr_proc_mutex_t *mutex)
+{
+ return NULL;
+}
+
APR_DECLARE(const char *) apr_proc_mutex_name(apr_proc_mutex_t *mutex)
{
return "os2sem";