Lines Matching defs:pool
53 apr_pool_t *pool)
65 return apr_psprintf(pool, "/ShM.%xH%x", h1, h2);
112 return apr_file_remove(m->filename, m->pool);
118 if (shm_unlink(make_shm_open_safe_name(m->filename, m->pool)) == -1 && errno != ENOENT) {
136 return apr_file_remove(m->filename, m->pool);
147 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);
498 return apr_shm_remove(m->filename, m->pool);
507 return apr_pool_cleanup_run(m->pool, m, shm_cleanup_owner);
537 apr_pool_t *pool)
552 new_m = apr_palloc(pool, sizeof(apr_shm_t));
553 new_m->pool = pool;
554 new_m->filename = apr_pstrdup(pool, filename);
556 const char *shm_name = make_shm_open_safe_name(filename, pool);
566 pool);
574 APR_OS_DEFAULT, pool);
596 apr_file_remove(new_m->filename, new_m->pool);
614 apr_pool_cleanup_register(new_m->pool, new_m, shm_cleanup_attach,
625 new_m = apr_palloc(pool, sizeof(apr_shm_t));
628 APR_FOPEN_READ, APR_OS_DEFAULT, pool);
644 new_m->filename = apr_pstrdup(pool, filename);
645 new_m->pool = pool;
659 apr_pool_cleanup_register(new_m->pool, new_m, shm_cleanup_attach,
672 apr_pool_t *pool,
675 return apr_shm_attach(m, filename, pool);
681 apr_pool_cleanup_kill(m->pool, m, shm_cleanup_attach);
727 apr_pool_t *pool)