Lines Matching refs:pool
52 apr_pool_t *pool)
64 return apr_psprintf(pool, "/ShM.%xH%x", h1, h2);
111 return apr_file_remove(m->filename, m->pool);
117 if (shm_unlink(make_shm_open_safe_name(m->filename, m->pool)) == -1 && errno != ENOENT) {
135 return apr_file_remove(m->filename, m->pool);
146 apr_pool_t *pool)
171 new_m = apr_palloc(pool, sizeof(apr_shm_t));
172 new_m->pool = pool;
180 APR_OS_DEFAULT, pool);
205 apr_pool_cleanup_register(new_m->pool, new_m, shm_cleanup_owner,
222 apr_pool_cleanup_register(new_m->pool, new_m, shm_cleanup_owner,
229 new_m = apr_palloc(pool, sizeof(apr_shm_t));
230 new_m->pool = pool;
248 apr_uid_current(&uid, &gid, pool);
263 apr_pool_cleanup_register(new_m->pool, new_m, shm_cleanup_owner,
275 new_m = apr_palloc(pool, sizeof(apr_shm_t));
276 new_m->pool = pool;
278 new_m->filename = apr_pstrdup(pool, filename);
280 const char *shm_name = make_shm_open_safe_name(filename, pool);
286 * status = apr_file_remove(file, pool);*/
293 APR_OS_DEFAULT, pool);
301 apr_file_remove(new_m->filename, new_m->pool);
308 apr_file_remove(new_m->filename, new_m->pool);
330 pool);
356 apr_pool_cleanup_register(new_m->pool, new_m, shm_cleanup_owner,
367 APR_OS_DEFAULT, pool);
396 apr_uid_current(&uid, &gid, pool);
416 apr_pool_cleanup_register(new_m->pool, new_m, shm_cleanup_owner,
437 apr_pool_t *pool)
447 return apr_file_remove(filename, pool);
449 const char *shm_name = make_shm_open_safe_name(filename, pool);
457 APR_OS_DEFAULT, pool);
481 return apr_file_remove(filename, pool);
486 apr_file_remove(filename, pool);
497 return apr_pool_cleanup_run(m->pool, m, shm_cleanup_owner);
527 apr_pool_t *pool)
542 new_m = apr_palloc(pool, sizeof(apr_shm_t));
543 new_m->pool = pool;
544 new_m->filename = apr_pstrdup(pool, filename);
546 const char *shm_name = make_shm_open_safe_name(filename, pool);
556 pool);
564 APR_OS_DEFAULT, pool);
586 apr_file_remove(new_m->filename, new_m->pool);
604 apr_pool_cleanup_register(new_m->pool, new_m, shm_cleanup_attach,
616 new_m = apr_palloc(pool, sizeof(apr_shm_t));
619 APR_FOPEN_READ, APR_OS_DEFAULT, pool);
635 new_m->filename = apr_pstrdup(pool, filename);
636 new_m->pool = pool;
650 apr_pool_cleanup_register(new_m->pool, new_m, shm_cleanup_attach,
663 apr_pool_t *pool,
666 return apr_shm_attach(m, filename, pool);
672 apr_pool_cleanup_kill(m->pool, m, shm_cleanup_attach);
696 apr_pool_t *pool)