diff options
author | rbb <rbb@13f79535-47bb-0310-9956-ffa450edef68> | 2002-01-08 06:26:09 +0000 |
---|---|---|
committer | rbb <rbb@13f79535-47bb-0310-9956-ffa450edef68> | 2002-01-08 06:26:09 +0000 |
commit | f7e7a3dd159b48be44b4f6b52b78b7bf8f173728 (patch) | |
tree | e783c8b049249af998a4155b13e3b1dfc2925459 /locks | |
parent | 6d270b8236913317f07211bca41d9c53664131d4 (diff) | |
download | libapr-f7e7a3dd159b48be44b4f6b52b78b7bf8f173728.tar.gz |
Add the ability to pass flags to both apr_file_open and apr_mktemp.
The reason for this, is that it is very possible to want a temp
file that isn't deleted when the file is closed. It also makes sense
to have the flags in the apr_file_t if possible.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62716 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'locks')
-rw-r--r-- | locks/unix/locks.c | 2 | ||||
-rw-r--r-- | locks/unix/proc_mutex.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/locks/unix/locks.c b/locks/unix/locks.c index ac2bc0d73..5f876bef5 100644 --- a/locks/unix/locks.c +++ b/locks/unix/locks.c @@ -388,7 +388,7 @@ APR_DECLARE(apr_status_t) apr_os_lock_put(apr_lock_t **lock, apr_os_lock_t *thel (*lock)->pool = pool; } #if APR_HAS_SYSVSEM_SERIALIZE || APR_HAS_FCNTL_SERIALIZE || APR_HAS_FLOCK_SERIALIZE - apr_os_file_put(&(*lock)->interproc, &thelock->crossproc, pool); + apr_os_file_put(&(*lock)->interproc, &thelock->crossproc, 0, pool); #endif #if APR_HAS_PROC_PTHREAD_SERIALIZE (*lock)->pthread_interproc = thelock->pthread_interproc; diff --git a/locks/unix/proc_mutex.c b/locks/unix/proc_mutex.c index a9513506f..08be4ad1c 100644 --- a/locks/unix/proc_mutex.c +++ b/locks/unix/proc_mutex.c @@ -827,7 +827,7 @@ APR_DECLARE(apr_status_t) apr_os_proc_mutex_put(apr_proc_mutex_t **pmutex, (*pmutex)->pool = pool; } #if APR_HAS_SYSVSEM_SERIALIZE || APR_HAS_FCNTL_SERIALIZE || APR_HAS_FLOCK_SERIALIZE - apr_os_file_put(&(*pmutex)->interproc, &ospmutex->crossproc, pool); + apr_os_file_put(&(*pmutex)->interproc, &ospmutex->crossproc, 0, pool); #endif #if APR_HAS_PROC_PTHREAD_SERIALIZE (*pmutex)->pthread_interproc = ospmutex->pthread_interproc; |