diff options
author | rbb <rbb@13f79535-47bb-0310-9956-ffa450edef68> | 2001-09-24 05:41:57 +0000 |
---|---|---|
committer | rbb <rbb@13f79535-47bb-0310-9956-ffa450edef68> | 2001-09-24 05:41:57 +0000 |
commit | 3f30404584064f4837a5cf06459ef504232b5617 (patch) | |
tree | e34e93e845eb991ef8372608a36a01fc2d0dc206 /include/arch/unix | |
parent | 048270c5f60e0c1b6ae9ceded824da40f46d3be8 (diff) | |
download | libapr-3f30404584064f4837a5cf06459ef504232b5617.tar.gz |
Add the apr_file_mktemp function. This creates and opens a
temporary file, for use by the program. This file is created
delete_on_close. The initial implementation only works on
Unix, but Windows is coming soon.
This also modifies all of the process lock functions that need
a temporary file to use the new apr_file_mktemp function.
Submitted by: Ryan Bloom
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62368 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include/arch/unix')
-rw-r--r-- | include/arch/unix/fileio.h | 2 | ||||
-rw-r--r-- | include/arch/unix/locks.h | 2 | ||||
-rw-r--r-- | include/arch/unix/proc_mutex.h | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/include/arch/unix/fileio.h b/include/arch/unix/fileio.h index cd3dd0848..75daacaf5 100644 --- a/include/arch/unix/fileio.h +++ b/include/arch/unix/fileio.h @@ -153,7 +153,5 @@ apr_status_t apr_unix_file_cleanup(void *); mode_t apr_unix_perms2mode(apr_fileperms_t perms); apr_fileperms_t apr_unix_mode2perms(mode_t mode); -int apr_mkstemp(char *template); - #endif /* ! FILE_IO_H */ diff --git a/include/arch/unix/locks.h b/include/arch/unix/locks.h index c83e8d09c..47f089c14 100644 --- a/include/arch/unix/locks.h +++ b/include/arch/unix/locks.h @@ -139,7 +139,7 @@ struct apr_lock_t { int curr_locked; char *fname; #if APR_HAS_SYSVSEM_SERIALIZE || APR_HAS_FCNTL_SERIALIZE || APR_HAS_FLOCK_SERIALIZE - int interproc; + apr_file_t *interproc; #endif #if APR_HAS_PROC_PTHREAD_SERIALIZE pthread_mutex_t *pthread_interproc; diff --git a/include/arch/unix/proc_mutex.h b/include/arch/unix/proc_mutex.h index cff88145a..b401cd9df 100644 --- a/include/arch/unix/proc_mutex.h +++ b/include/arch/unix/proc_mutex.h @@ -62,6 +62,8 @@ #include "apr_proc_mutex.h" #include "apr_pools.h" #include "apr_portable.h" +#include "apr_file_io.h" +#include "fileio.h" /* System headers required by Locks library */ #if APR_HAVE_SYS_TYPES_H @@ -145,7 +147,7 @@ struct apr_proc_mutex_t { int curr_locked; char *fname; #if APR_HAS_SYSVSEM_SERIALIZE || APR_HAS_FCNTL_SERIALIZE || APR_HAS_FLOCK_SERIALIZE - int interproc; + apr_file_t *interproc; #endif #if APR_HAS_PROC_PTHREAD_SERIALIZE pthread_mutex_t *pthread_interproc; |