summaryrefslogtreecommitdiff
path: root/shmem
diff options
context:
space:
mode:
authorrbb <rbb@13f79535-47bb-0310-9956-ffa450edef68>2002-01-08 06:26:09 +0000
committerrbb <rbb@13f79535-47bb-0310-9956-ffa450edef68>2002-01-08 06:26:09 +0000
commitf7e7a3dd159b48be44b4f6b52b78b7bf8f173728 (patch)
treee783c8b049249af998a4155b13e3b1dfc2925459 /shmem
parent6d270b8236913317f07211bca41d9c53664131d4 (diff)
downloadlibapr-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 'shmem')
-rw-r--r--shmem/unix/shmem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shmem/unix/shmem.c b/shmem/unix/shmem.c
index c30595d3c..a4b09c82f 100644
--- a/shmem/unix/shmem.c
+++ b/shmem/unix/shmem.c
@@ -153,7 +153,7 @@ APR_DECLARE(apr_status_t) apr_shm_init(apr_shmem_t **m, apr_size_t reqsize,
if (tmpfd == -1)
return errno;
- apr_os_file_put(&new_m->file, &tmpfd, pool);
+ apr_os_file_put(&new_m->file, &tmpfd, O_READ | O_WRITE | O_CREATE, pool);
status = apr_file_trunc(new_m->file, reqsize);
if (status != APR_SUCCESS)
{