From 07705e23a0483208ae81e5dcdc9f4f29bd368afe Mon Sep 17 00:00:00 2001 From: trawick Date: Fri, 23 Feb 2001 20:29:07 +0000 Subject: change mkstemp() to apr_mkstemp() so we don't pollute somebody else's namespace apr_mkstemp() is only intended to be used within the Unix APR implementation; a similar function but with an appropriate APR interface would be nice to support cross-platform git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61287 13f79535-47bb-0310-9956-ffa450edef68 --- locks/unix/crossproc.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'locks') diff --git a/locks/unix/crossproc.c b/locks/unix/crossproc.c index 8720fcca4..ae5b47e30 100644 --- a/locks/unix/crossproc.c +++ b/locks/unix/crossproc.c @@ -55,6 +55,7 @@ #include "apr.h" #include "apr_strings.h" #include "locks.h" +#include "fileio.h" /* for apr_mkstemp() */ #if APR_USE_SYSVSEM_SERIALIZE @@ -305,7 +306,7 @@ apr_status_t apr_unix_create_inter_lock(apr_lock_t *new) } else { new->fname = apr_pstrdup(new->cntxt, "/tmp/aprXXXXXX"); - new->interproc = mkstemp(new->fname); + new->interproc = apr_mkstemp(new->fname); } if (new->interproc < 0) { @@ -387,7 +388,7 @@ apr_status_t apr_unix_create_inter_lock(apr_lock_t *new) } else { new->fname = apr_pstrdup(new->cntxt, "/tmp/aprXXXXXX"); - new->interproc = mkstemp(new->fname); + new->interproc = apr_mkstemp(new->fname); } if (new->interproc < 0) { -- cgit v1.2.1